Commit 6661467
committed
feat(json)!: bump MCP_JSON_FORMAT_VERSION to '2'
All 9 tools now emit structured McpErrorEnvelope for failures instead
of ad-hoc {error:string,...} shapes. The format version bump signals
the breaking contract change to clients.
Envelope shape:
{ error: { code, message, retryable, suggestedFix? } }
Migration path for v1 consumers:
before: if (r.error === 'not_found') ...
after: if (r.error?.code === 'NOT_FOUND') ...
Docs + idempotency follow in the next commit.1 parent 4489423 commit 6661467
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments