
Json5 Mcp
io.github.MukundaKatta由 GitHub 账号 MukundaKatta 发布v0.1.0更新于 Nov 3, 2026
Parse JSON5 (comments, trailing commas, unquoted keys) and emit strict JSON.
概览
本地 MCP 服务器,解析 JSON5(注释、尾随逗号、无引号键)并转换为严格 JSON 供助手使用。
- 可以做什么
- 宽松解析 JSON5 文本为实际值,支持注释、尾随逗号、无引号键、十六进制、NaN 与 Infinity
- 把值序列化为 JSON5,便于人工编辑的配置文件
- 将 JSON5 输入转换为严格 JSON 输出,可选缩进
- 适用场景
- 当助手输出带注释的 JSON,或需要读取 tsconfig、.babelrc、mcp.json 等实为 JSON5 的配置文件,且结果必须能被严格 JSON 解析器接受时适用。
- 运行要求
- 以本地 stdio 进程运行,通常通过 npx 启动 npm 包 @mukundakatta/json5-mcp,因此需要 Node.js,首次安装还需网络访问。未声明任何认证、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Json5 Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@mukundakatta/json5-mcp
MCP server for JSON5: parse JSON-with-comments, trailing commas, unquoted keys, hex / NaN / Infinity. Round-trip to strict JSON when downstream tools require it.
Tools
parse_json5(text)— loose parse to a real valueto_json5(value, indent?)— serialize for human-edited configto_strict_json(text, indent?)— JSON5 in, strict JSON out
Why this exists
LLMs frequently emit JSON-with-comments thinking it's JSON. They also see config files (tsconfig, .babelrc, mcp.json) that are JSON5 in disguise. This server is the loose-parse + strict-emit round trip — feed it whatever the LLM produced, get back something JSON.parse accepts.
Install — Claude Desktop
Same shape for Cursor / Cline / Windsurf / Zed.
License
MIT OR Apache-2.0.
来源:packages/json5-mcp/README.md,提交 6fad5bb
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
