JSONShelf
Deterministic JSON repair, validate, example-gen, schema-coerce for agents. Zero LLM, sub-10ms.
我该使用它吗
质量与安全性
B
发现(2)
- LOW在 jsonshelf_repair 中
- LOW在 jsonshelf_coerce 中
基于对工具定义和协议合规性的自动分析。
上下文开销
~262token 数(工具定义)
~424 B典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.20%)
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"jsonshelf": {
"url": "https://jsonshelf.vercel.app/mcp"
}
}
}远程端点
https://jsonshelf.vercel.app/mcpstreamable-http它能做什么
工具清单
工具(4)
🟢 只读🟡 写入🔴 删除⚪ 未知
⚪jsonshelf_repair(input, schema, mode)
Repair malformed JSON. Returns valid JSON plus a diff of what was fixed.
输入模式
{
"type": "object",
"properties": {
"input": {
"type": "string",
"description": "Malformed JSON as a string."
},
"schema": {
"type": "object",
"description": "Optional JSON Schema to conform the output to."
},
"mode": {
"type": "string",
"enum": [
"strict",
"coerce"
],
"default": "strict"
}
},
"required": [
"input"
]
}⚪jsonshelf_validate(input, schema)
Validate JSON against a schema. Returns structured errors with JSON Pointer paths and remedies.
输入模式
{
"type": "object",
"properties": {
"input": {},
"schema": {
"type": "object"
}
},
"required": [
"input",
"schema"
]
}⚪jsonshelf_example(schema)
Generate a minimal valid example matching a JSON schema.
输入模式
{
"type": "object",
"properties": {
"schema": {
"type": "object"
}
},
"required": [
"schema"
]
}⚪jsonshelf_coerce(input, schema)
Soft-cast values to match a schema (string "42" → 42 for integer fields, etc.).
输入模式
{
"type": "object",
"properties": {
"input": {},
"schema": {
"type": "object"
}
},
"required": [
"input",
"schema"
]
}社区
证据
最近观测
已验证未记录版本4 个工具
已验证未记录版本4 个工具
已验证未记录版本4 个工具