Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '20'
node-version: '22'
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run type-check
- run: npm test
4 changes: 2 additions & 2 deletions .wave/repo.json
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@
[
"`WAVE_BASE_URL`",
"No",
"`https://wave.online`",
"API base URL"
"`https://api.wave.online`",
"API base URL (the WAVE API gateway; do not point at `wave.online`, the marketing site)"
]
]
},
Expand Down
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,30 @@ All notable changes to this project are documented here. The format is based on

### Fixed

- **All 18 tools and both `wave://` resources 404'd against prod (#91).** Every
request was built as `${WAVE_BASE_URL}/api/v1/...` against a default
`WAVE_BASE_URL` of `https://wave.online` (the marketing/docs Next.js site).
`/api/v1/*` is an *internal* path shape within the WAVE platform, not a
path any client should call — and neither `wave.online` nor
`api.wave.online` serve it, so every call returned a prerendered Next.js
404. Fixed the default base URL to `https://api.wave.online` (the gateway)
and every tool/resource to build `/v1/*` paths, matching the public route
shape verified live and scope-gated (402 `PAYMENT_REQUIRED`, zero
credentials, 18/18) for all 18
tools. `WAVE_BASE_URL` still overrides the origin for anyone pointed at a
non-default environment, but the override now composes with the `/v1/*`
paths: the target origin must serve the public `/v1/*` shape, not the
internal `/api/v1/*` one.

- The old `https://wave.online` default was also still advertised in
`MCP-DEBUGGING.md` (shipped in the npm package) and in `.wave/repo.json`
(the source of truth the README is generated from); both now say
`https://api.wave.online`. The regression tests added for #91 are now
type-checked (`tsconfig.test.json`) and run in CI, and the `test` script
now uses single-level globs (`src/*.test.ts src/*/*.test.ts`, which work on
Node 20's shell expansion) so `src/auth.test.ts` is no longer silently
skipped by the npm shell's non-recursive `**`.

- The build now emits the TypeScript declaration files (`dist/index.d.ts`,
`dist/sdk-server.d.ts`) that `package.json` has been advertising via `types`
and the `exports` map. Previously consumers silently resolved to `any`. The
Expand All @@ -20,6 +44,12 @@ All notable changes to this project are documented here. The format is based on

### Changed

- The minimum supported Node version is now 20 (`engines.node: ">=20.0.0"`,
was `">=18.0.0"`). `@modelcontextprotocol/sdk` resolves
`@hono/node-server@2.x` at runtime, which requires Node `>=20`, so the old
`>=18` claim produced `EBADENGINE` warnings for Node 18 installs. Node 18
is end-of-life.

- Releases are now published via npm trusted publishing (OIDC) with signed
provenance attestations, replacing token-based authentication in CI.

Expand Down
2 changes: 1 addition & 1 deletion MCP-DEBUGGING.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ WAVE_BASE_URL=https://staging.wave.online npx @wave-av/mcp-server

| Environment | `WAVE_BASE_URL` | API key prefix |
|------------|----------------|---------------|
| Production | `https://wave.online` (default) | `wave_live_*` |
| Production | `https://api.wave.online` (default) | `wave_live_*` |
| Staging | `https://staging.wave.online` | `wave_test_*` |

Override via environment variable:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Access WAVE entities directly via the `wave://` URI scheme:
| Variable | Required | Default | Description |
| --- | --- | --- | --- |
| `WAVE_API_KEY` | Yes | - | Your WAVE API key |
| `WAVE_BASE_URL` | No | `https://wave.online` | API base URL |
| `WAVE_BASE_URL` | No | `https://api.wave.online` | API base URL (the WAVE API gateway; do not point at `wave.online`, the marketing site) |

## In-process (Claude Agent SDK) mode

Expand Down
Loading
Loading