zuplo 7.14.8 → 7.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/articles/logging.mdx +8 -1
- package/docs/articles/opentelemetry.mdx +269 -0
- package/docs/handlers/mcp-server.mdx +82 -2
- package/docs/mcp-gateway/auth/upstream-oauth.mdx +50 -8
- package/docs/mcp-gateway/code-config/compatibility-dates.mdx +96 -0
- package/docs/mcp-gateway/code-config/mcp-proxy-handler.mdx +22 -0
- package/docs/mcp-gateway/how-it-works.mdx +21 -2
- package/docs/mcp-gateway/observability/logging.mdx +25 -1
- package/docs/mcp-gateway/reference.mdx +86 -5
- package/docs/mcp-gateway/troubleshooting.mdx +5 -1
- package/docs/mcp-server/flat-tool-input.mdx +578 -0
- package/docs/mcp-server/prompts.mdx +10 -0
- package/docs/mcp-server/resources.mdx +58 -1
- package/docs/mcp-server/tools.mdx +132 -93
- package/docs/mcp-server/troubleshooting.mdx +184 -13
- package/docs/programmable-api/compatibility-dates.mdx +258 -0
- package/package.json +5 -5
|
@@ -15,6 +15,264 @@ project. The `zuplo.jsonc` file is created by default for new projects and
|
|
|
15
15
|
contains the default configuration. For more information on the `zuplo.jsonc`
|
|
16
16
|
file, see the [Zuplo Project Configuration](./zuplo-json.mdx) documentation.
|
|
17
17
|
|
|
18
|
+
## 2026-11-06
|
|
19
|
+
|
|
20
|
+
:::note
|
|
21
|
+
|
|
22
|
+
New projects don't use this compatibility date by default. To adopt it, set
|
|
23
|
+
`"compatibilityDate": "2026-11-06"` in `zuplo.jsonc`, then test the change in a
|
|
24
|
+
preview environment before you deploy to production. For examples and migration
|
|
25
|
+
steps for each change, see the
|
|
26
|
+
[2026-11-06 changelog entry](https://zuplo.com/changelog/2026/11/06/compatibility-date-2026-11-06).
|
|
27
|
+
|
|
28
|
+
:::
|
|
29
|
+
|
|
30
|
+
This compatibility date makes request validation, the MCP Server handler, and
|
|
31
|
+
the MCP Gateway follow the OpenAPI, JSON Schema, and MCP specifications more
|
|
32
|
+
closely, and adds MCP protocol revision `2026-07-28` support to the MCP Gateway
|
|
33
|
+
and the MCP Server handler. The date turns on every change below together. To
|
|
34
|
+
keep the previous behavior for any of them, keep your project on `2026-03-01` or
|
|
35
|
+
earlier.
|
|
36
|
+
|
|
37
|
+
### Schema Validation Follows the Declared Specification
|
|
38
|
+
|
|
39
|
+
This compatibility date changes how the
|
|
40
|
+
[Request Validation policy](../policies/request-validation-inbound.mdx) and the
|
|
41
|
+
[MCP Server handler](../handlers/mcp-server.mdx) validate against your OpenAPI
|
|
42
|
+
schemas.
|
|
43
|
+
|
|
44
|
+
**Before this date:** The MCP Server handler converts each tool and prompt
|
|
45
|
+
schema at startup. It inserts `default` values into arguments, drops undeclared
|
|
46
|
+
arguments, and keeps `readOnly` properties in the tool input. A tool whose
|
|
47
|
+
`toolInputStyle` is `flat` but whose input can't be fully flattened stays
|
|
48
|
+
nested, or keeps its request body under a `body` argument, and the MCP server
|
|
49
|
+
logs why. The Request Validation policy can't validate path parameters declared
|
|
50
|
+
on the path item instead of the operation, and fails those requests with
|
|
51
|
+
`Validator not found` when it validates that location.
|
|
52
|
+
|
|
53
|
+
**After this date:** The build generates every tool and prompt schema from your
|
|
54
|
+
OpenAPI document and validates it against the JSON Schema dialect and OpenAPI
|
|
55
|
+
version the document declares. A schema problem, such as an invalid `pattern` or
|
|
56
|
+
a `$ref` that doesn't resolve, fails the build and names the operation. Tools no
|
|
57
|
+
longer insert `default` values, reject undeclared arguments, and leave
|
|
58
|
+
`readOnly` properties out of the input. Patterns use Unicode (`u` flag) regular
|
|
59
|
+
expressions. The Request Validation policy uses the same dialect, `format`, and
|
|
60
|
+
`pattern` rules, keeps its parameter type coercion, and validates path item
|
|
61
|
+
parameters. [Flat tool input](../mcp-server/flat-tool-input.mdx) can also
|
|
62
|
+
flatten some request bodies built from `allOf` and bodies that use
|
|
63
|
+
`dependentRequired`. A tool whose `toolInputStyle` is `flat` but that can't be
|
|
64
|
+
fully flattened, because two input channels declare the same name or its request
|
|
65
|
+
body would stay under `body`, fails the build. The error names the tool, the
|
|
66
|
+
operation, and the cause, and suggests both fixes: change the schema, or set
|
|
67
|
+
`"toolInputStyle": "nested"` on that tool. See
|
|
68
|
+
[When a tool stays nested](../mcp-server/flat-tool-input.mdx#when-a-tool-stays-nested).
|
|
69
|
+
|
|
70
|
+
### OpenAPI Path Parameters End at the Closing Brace
|
|
71
|
+
|
|
72
|
+
This compatibility date changes how routes match a path parameter that's
|
|
73
|
+
followed by literal text in the same segment, such as `/items/{id}_details`.
|
|
74
|
+
|
|
75
|
+
**Before this date:** Letters, digits, `_`, or `$` after the `}` become part of
|
|
76
|
+
the parameter name. `/x/{id}abc` matches `/x/<anything>` and sets
|
|
77
|
+
`request.params.idabc`, never `request.params.id`. The build warns about each
|
|
78
|
+
such path.
|
|
79
|
+
|
|
80
|
+
**After this date:** The parameter ends at its `}`. `/x/{id}abc` matches
|
|
81
|
+
`/x/fooabc` with `id` set to `foo`, and no longer matches `/x/foo`. Other paths
|
|
82
|
+
match exactly as before.
|
|
83
|
+
|
|
84
|
+
### Blank Policy Options Are Treated as Unset or Rejected
|
|
85
|
+
|
|
86
|
+
This compatibility date changes how built-in policies handle an empty or
|
|
87
|
+
whitespace-only value, such as `"$env(MY_VAR)"` when `MY_VAR` is empty, for a
|
|
88
|
+
string option.
|
|
89
|
+
|
|
90
|
+
**Before this date:** Many policies reject the empty value for an optional
|
|
91
|
+
option. Some fail every request with a configuration error, for example an empty
|
|
92
|
+
`link` on the HTTP Deprecation policy. Each policy handles an empty required
|
|
93
|
+
option in its own way, so any error that follows doesn't name the option.
|
|
94
|
+
|
|
95
|
+
**After this date:** For an optional option, the policy behaves as if the option
|
|
96
|
+
were left out and applies its default. Secrets, options where an empty value has
|
|
97
|
+
a meaning, and options whose default would grant more access keep their current
|
|
98
|
+
behavior.
|
|
99
|
+
|
|
100
|
+
For a required option, the policy isn't created. Requests to routes that use it
|
|
101
|
+
fail with a configuration error that names each empty required option:
|
|
102
|
+
|
|
103
|
+
```text
|
|
104
|
+
Policy 'my-oauth-policy': the required option 'clientSecret' is empty. Set it to a value, or check that the environment variable it reads is set.
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Required options where an empty value has a meaning keep their current behavior:
|
|
108
|
+
`match` and `replaceWith` on the
|
|
109
|
+
[Replace String policy](../policies/replace-string-outbound.mdx), and `body` on
|
|
110
|
+
the [Set Body policy](../policies/set-body-inbound.mdx). This check applies to
|
|
111
|
+
policies configured in `policies.json`, not to built-in policies that custom
|
|
112
|
+
code creates directly.
|
|
113
|
+
|
|
114
|
+
### MCP Tool Parameters Use Their OpenAPI Serialization Style
|
|
115
|
+
|
|
116
|
+
This compatibility date changes how the MCP Server handler writes a tool's path,
|
|
117
|
+
query, and header arguments into the request it sends to the route.
|
|
118
|
+
|
|
119
|
+
**Before this date:** The handler ignores `style`, `explode`, `allowReserved`,
|
|
120
|
+
and `content`. Query arrays repeat the parameter name, query objects are sent as
|
|
121
|
+
JSON text, and an object in a path or header becomes `[object Object]`.
|
|
122
|
+
|
|
123
|
+
**After this date:** Each parameter is serialized as its OpenAPI definition
|
|
124
|
+
says. For example, a `deepObject` query parameter becomes
|
|
125
|
+
`rgb[R]=100&rgb[G]=200`, and a `label` path parameter becomes
|
|
126
|
+
`.blue.black.brown`.
|
|
127
|
+
|
|
128
|
+
### MCP Tool Names Follow the MCP Naming Rule
|
|
129
|
+
|
|
130
|
+
This compatibility date changes the names that the MCP Server handler advertises
|
|
131
|
+
for [tools](../mcp-server/tools.mdx).
|
|
132
|
+
|
|
133
|
+
**Before this date:** Each tool uses its configured name as is, including
|
|
134
|
+
spaces, `/`, and names over 128 characters. When two tools share a name, the
|
|
135
|
+
later one replaces the earlier one.
|
|
136
|
+
|
|
137
|
+
**After this date:** Any character other than `A-Z`, `a-z`, `0-9`, `_`, `-`, and
|
|
138
|
+
`.` becomes `_`, and names are cut to 128 characters. A name that's already
|
|
139
|
+
taken gets a `_2`, `_3`, and so on suffix, so both tools stay available. Clients
|
|
140
|
+
list and call tools by the new name. Names that already follow the rule don't
|
|
141
|
+
change. Set `x-zuplo-route.mcp.name` to choose a stable name.
|
|
142
|
+
|
|
143
|
+
### MCP Responses Match the Negotiated Protocol Version
|
|
144
|
+
|
|
145
|
+
This compatibility date changes which fields the MCP Server handler sends to
|
|
146
|
+
clients on older MCP protocol versions.
|
|
147
|
+
|
|
148
|
+
**Before this date:** Every response includes every field, so a `2025-03-26`
|
|
149
|
+
client receives `outputSchema`, `structuredContent`, and `title`, which that
|
|
150
|
+
revision doesn't define.
|
|
151
|
+
|
|
152
|
+
**After this date:** The request's `MCP-Protocol-Version` header, or
|
|
153
|
+
`2025-03-26` when it's missing, decides which fields the handler sends. Fields
|
|
154
|
+
added in a later revision are left out. When a `tools/call` result has
|
|
155
|
+
`structuredContent` but no text block, older clients receive its JSON as a text
|
|
156
|
+
block.
|
|
157
|
+
|
|
158
|
+
### MCP Resource Reads Fail on Error Responses
|
|
159
|
+
|
|
160
|
+
This compatibility date changes how the MCP Server handler answers
|
|
161
|
+
`resources/read` when the [resource](../mcp-server/resources.mdx) route returns
|
|
162
|
+
an error.
|
|
163
|
+
|
|
164
|
+
**Before this date:** The route's response body is returned as the resource's
|
|
165
|
+
contents whatever the status code, so a `403` error body reaches the client as a
|
|
166
|
+
successful read.
|
|
167
|
+
|
|
168
|
+
**After this date:** A status outside `200`-`299` returns a JSON-RPC error
|
|
169
|
+
(`-32603`) that names the resource, its URI, and the status. The route's body
|
|
170
|
+
isn't sent.
|
|
171
|
+
|
|
172
|
+
### Invalid MCP Resource URIs Fail the Build
|
|
173
|
+
|
|
174
|
+
This compatibility date changes how the build handles a resource URI set in
|
|
175
|
+
`x-zuplo-route.mcp.uri` that isn't an absolute
|
|
176
|
+
[RFC 3986](https://www.rfc-editor.org/rfc/rfc3986) URI, such as
|
|
177
|
+
`audit doc with spaces`.
|
|
178
|
+
|
|
179
|
+
**Before this date:** The build warns and the handler advertises the URI as
|
|
180
|
+
written.
|
|
181
|
+
|
|
182
|
+
**After this date:** The build fails and names the operation and the URI. The
|
|
183
|
+
default URI (`mcp://resources/<name>`) is always valid.
|
|
184
|
+
|
|
185
|
+
### MCP Protocol `2026-07-28` in the MCP Gateway and MCP Server Handler
|
|
186
|
+
|
|
187
|
+
This compatibility date turns on support for MCP protocol revision `2026-07-28`
|
|
188
|
+
in the [MCP Gateway](../mcp-gateway/overview.mdx) and the
|
|
189
|
+
[MCP Server handler](../handlers/mcp-server.mdx#mcp-protocol-2026-07-28).
|
|
190
|
+
|
|
191
|
+
**Before this date:** The MCP Gateway relays `2026-07-28` traffic without
|
|
192
|
+
handling it as that revision. Upstream servers that answer only
|
|
193
|
+
`server/discover` are reported as unavailable. The MCP Server handler answers a
|
|
194
|
+
request with `MCP-Protocol-Version: 2026-07-28` with HTTP `400` and JSON-RPC
|
|
195
|
+
error `-32000`.
|
|
196
|
+
|
|
197
|
+
**After this date:** The MCP Gateway handles `2026-07-28` requests as the
|
|
198
|
+
revision requires, including `server/discover` and `subscriptions/listen`. A
|
|
199
|
+
caller that hasn't connected the upstream gets an `input_required` result with a
|
|
200
|
+
connect link for a tool call, prompt, or resource read, and an empty list for a
|
|
201
|
+
list method. Requests on `2025-11-25` and earlier also get the changes in
|
|
202
|
+
[MCP Gateway Answers Follow the MCP Specification](#mcp-gateway-answers-follow-the-mcp-specification),
|
|
203
|
+
and these project-wide changes:
|
|
204
|
+
|
|
205
|
+
- Upstream readiness checks fall back to `server/discover` when an upstream
|
|
206
|
+
refuses `initialize`.
|
|
207
|
+
- The gateway's OAuth authorization responses include the RFC 9207 `iss`
|
|
208
|
+
parameter.
|
|
209
|
+
- The configured server icons are also added to an `initialize` reply that the
|
|
210
|
+
upstream sends as an event stream.
|
|
211
|
+
- On Managed Edge and in local development, `request.signal` aborts when the
|
|
212
|
+
client disconnects, for all code in the project.
|
|
213
|
+
|
|
214
|
+
The MCP Server handler serves a request whose `MCP-Protocol-Version` header is
|
|
215
|
+
`2026-07-28` on that revision: it answers `server/discover`, returns HTTP `404`
|
|
216
|
+
for the methods `2026-07-28` removed (such as `initialize` and `ping`), adds
|
|
217
|
+
`resultType` and the server's name and version to its results, and adds `ttlMs`
|
|
218
|
+
and `cacheScope` to discovery, list, and read results. A request that names
|
|
219
|
+
`2026-07-28` only in its `params._meta` envelope, without the header, returns
|
|
220
|
+
HTTP `400` with JSON-RPC error `-32020`, because `2026-07-28` requires the
|
|
221
|
+
header. Requests on `2025-11-25` and earlier get the same answers as before,
|
|
222
|
+
apart from the changes in
|
|
223
|
+
[MCP Server Handler Checks Prompt Messages and Batch Answers](#mcp-server-handler-checks-prompt-messages-and-batch-answers).
|
|
224
|
+
The handler doesn't serve tools that ask the client for input (`input_required`
|
|
225
|
+
results, elicitation, sampling, and roots), `subscriptions/listen`
|
|
226
|
+
notifications, logging, or tasks.
|
|
227
|
+
|
|
228
|
+
See
|
|
229
|
+
[MCP Gateway compatibility dates](../mcp-gateway/code-config/compatibility-dates.mdx)
|
|
230
|
+
and
|
|
231
|
+
[MCP protocol `2026-07-28` in the MCP Server handler](../handlers/mcp-server.mdx#mcp-protocol-2026-07-28)
|
|
232
|
+
for details.
|
|
233
|
+
|
|
234
|
+
### MCP Gateway Answers Follow the MCP Specification
|
|
235
|
+
|
|
236
|
+
This compatibility date changes the answers the
|
|
237
|
+
[MCP Gateway](../mcp-gateway/overview.mdx) builds itself in several error and
|
|
238
|
+
edge cases, mostly for a caller that hasn't connected the upstream yet.
|
|
239
|
+
|
|
240
|
+
**Before this date:** A caller that hasn't connected the upstream gets the
|
|
241
|
+
`-32042` URL-elicitation error with HTTP `200` for every message, including
|
|
242
|
+
notifications, `ping`, malformed bodies, and clients that never declared URL
|
|
243
|
+
elicitation. When the upstream rejects the credential the gateway sent, the
|
|
244
|
+
client gets the upstream's `401` or `403` and its `WWW-Authenticate` challenge.
|
|
245
|
+
|
|
246
|
+
**After this date:** Only an `initialize` on `2025-11-25` that declares URL
|
|
247
|
+
elicitation gets `-32042`. Other requests get JSON-RPC error `-32603` with the
|
|
248
|
+
connect link in `data.connectRequired`. Notifications get HTTP `202` with no
|
|
249
|
+
body, `ping` gets an empty result, malformed bodies and unsupported
|
|
250
|
+
`MCP-Protocol-Version` values get HTTP `400`, and a `GET` or `DELETE` gets HTTP
|
|
251
|
+
`405`. When the upstream rejects the gateway's credential on a route with the
|
|
252
|
+
`mcp-token-exchange-inbound` policy, the client gets JSON-RPC error `-32603`
|
|
253
|
+
with the upstream's status in `data.upstreamStatus`. See
|
|
254
|
+
[Gateway answers follow the MCP specification](../mcp-gateway/code-config/compatibility-dates.mdx#gateway-answers-follow-the-mcp-specification)
|
|
255
|
+
for every change.
|
|
256
|
+
|
|
257
|
+
### MCP Server Handler Checks Prompt Messages and Batch Answers
|
|
258
|
+
|
|
259
|
+
This compatibility date changes how the
|
|
260
|
+
[MCP Server handler](../handlers/mcp-server.mdx) answers `prompts/get` and
|
|
261
|
+
JSON-RPC batches.
|
|
262
|
+
|
|
263
|
+
**Before this date:** `prompts/get` returns the
|
|
264
|
+
[prompt](../mcp-server/prompts.mdx) route's messages as the route sends them,
|
|
265
|
+
including a `role` such as `system` or a content block MCP doesn't define. A
|
|
266
|
+
batch whose answer holds one response gets a bare object. A tool from the
|
|
267
|
+
deprecated `files` option with a blank `x-zuplo-mcp-tool` name is registered
|
|
268
|
+
with an empty name.
|
|
269
|
+
|
|
270
|
+
**After this date:** `prompts/get` returns JSON-RPC error `-32603` naming the
|
|
271
|
+
prompt and the first invalid message when a message's `role` isn't `user` or
|
|
272
|
+
`assistant`, or its content isn't a block the client's protocol version defines.
|
|
273
|
+
The answer to a batch is always an array. A blank tool name falls back to the
|
|
274
|
+
operation's `operationId`.
|
|
275
|
+
|
|
18
276
|
## 2026-03-01
|
|
19
277
|
|
|
20
278
|
:::note
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zuplo",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The official Zuplo CLI for local development and platform management",
|
|
6
6
|
"homepage": "https://zuplo.com/docs/cli/overview",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"zuplo": "zuplo.js"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@zuplo/cli": "7.
|
|
36
|
-
"@zuplo/core": "7.
|
|
37
|
-
"@zuplo/runtime": "7.
|
|
38
|
-
"@zuplo/test": "7.
|
|
35
|
+
"@zuplo/cli": "7.15.0",
|
|
36
|
+
"@zuplo/core": "7.15.0",
|
|
37
|
+
"@zuplo/runtime": "7.15.0",
|
|
38
|
+
"@zuplo/test": "7.15.0"
|
|
39
39
|
}
|
|
40
40
|
}
|