fix(mcp): advertise JSON values without recursive schemas (#995)

`z.json()` projects a self-referential `$defs/__schema0` entry. Twenty
tool input schemas and 123 output schemas carried it, and clients or
model APIs that reject recursive JSON Schemas refuse the whole tool
list. Every JSON value satisfies `{}`, so the shared JSON value schema
now advertises that. Runtime parsing still admits only JSON values.

Refs #919

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: N0zoM1z0 <1705004398@qq.com>
This commit is contained in:
Kaoru0822
2026-10-08 11:48:57 +08:00
committed by GitHub
co-authored by Claude Opus 5.5 N0zoM1z0
parent 28f10cf2bc
commit 7425f70fd0
9 changed files with 147 additions and 41 deletions
@@ -1,5 +1,5 @@
{
"manifest_id": "ecm_0615df0eb6f041eb2d145edbca9c4068a7dc9cbe53801dd237c7dd9394a2fa40",
"manifest_id": "ecm_6c5378cbeb0a0d0c0b127b1961f2b5e50d6541601a5f36ad7f5fb292e17ff203",
"verifier": {
"id": "rea-managed-conformance",
"version": "1"
@@ -13,7 +13,7 @@
"skill_digests": [
{
"skill_id": "reverse-engineer-anything",
"sha256": "49845719d9ea2d229fb954ba92203921e843908b2f116c94ecb94636812edc42"
"sha256": "7777298dede63ed91211af502a4779850bfe451a11758349150d5a3df4261a93"
}
],
"claims": [