|
1 | 1 | # cloudflare-ai-gateway-mcp-server |
2 | 2 |
|
| 3 | +## 0.2.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- f625075: Centralize Cloudflare account resolution and remove the account-management tools. |
| 8 | + |
| 9 | + The `accounts_list` and `set_active_account` tools are removed. Account scoping is now |
| 10 | + resolved automatically by an `AccountManager` (via the new `server.accountTool()` |
| 11 | + registration), in priority order: |
| 12 | + |
| 13 | + 1. **Auth-pinned account** — an account-scoped API token's account, or an OAuth token with a |
| 14 | + single account, is used automatically (no `account_id` parameter is exposed). |
| 15 | + 2. **`cf-account-id` request header** — for tokens that can access multiple accounts, set this |
| 16 | + header in your MCP client config to pick an account. |
| 17 | + 3. **`account_id` tool argument** — for multi-account tokens, account-scoped tools expose an |
| 18 | + optional `account_id` parameter; when omitted (and no header is set) the tool returns an |
| 19 | + error listing the accounts you can use. Multi-account credentials also list their accounts |
| 20 | + in the server's `initialize` instructions. |
| 21 | + |
| 22 | + All tool error responses now set `isError: true` so clients can distinguish failures. |
| 23 | + |
| 24 | +### Patch Changes |
| 25 | + |
| 26 | +- a358e69: Upgrade `@cloudflare/workers-oauth-provider` 0.4.0 → 0.7.0. |
| 27 | + |
| 28 | + No tool or behavior changes. The only API change affecting this repo is that |
| 29 | + `TokenExchangeCallbackOptions` now carries a required `grantId` field, which only |
| 30 | + touched a test fixture (the provider supplies it at runtime). |
| 31 | + |
| 32 | +- f625075: Upgrade core dependencies: `agents` 0.2.19 → 0.13.3, `@modelcontextprotocol/sdk` 1.20.2 → |
| 33 | + 1.29.0, `zod` 3 → 4, and `ai` 4 → 6. |
| 34 | + |
| 35 | + No user-facing tool or behavior changes. Internal adjustments for the new versions: |
| 36 | + |
| 37 | + - `zod` 4: `z.record(...)` now takes an explicit key schema; `z.string().ip()` replaced with |
| 38 | + `z.ipv4()`/`z.ipv6()` validation; dropped the removed `objectOutputType` helper. |
| 39 | + - `agents` 0.13: `McpAgent` env generic is constrained to `Cloudflare.Env`. |
| 40 | + - MCP SDK 1.29: tool `annotations` hints must be flat (`{ title, readOnlyHint, ... }`) — fixes a |
| 41 | + latent bug where nested hints were silently ignored. |
| 42 | + - `ai` 6: eval tooling updated (`LanguageModel`, `inputSchema`, `stopWhen`/`stepCountIs`, tool-call `input`). |
| 43 | + |
3 | 44 | ## 0.1.12 |
4 | 45 |
|
5 | 46 | ### Patch Changes |
|
0 commit comments