@mukundakatta/json5-mcp
v0.1.1
Published
MCP server: parse and stringify JSON5 — relaxed JSON with comments and trailing commas.
Maintainers
Readme
json5-mcp
MCP server: parse and stringify JSON5. Use this when you've got a config file with comments, trailing commas, or unquoted keys that plain JSON would choke on.
Tools
parse
{ "text": "{ /* settings */ retries: 3, hosts: ['a', 'b'], }" }→ { "value": { "retries": 3, "hosts": ["a", "b"] } }
Accepts the full JSON5 grammar: block + line comments, unquoted keys,
single-quoted strings, trailing commas, hex numbers, leading/trailing
decimal points, +Infinity, NaN.
stringify
{ "value": { "a": 1, "b": [2, 3] }, "indent": 2 }→ JSON5 output (still valid JSON when indent=0).
Configure
{ "mcpServers": { "json5": { "command": "npx", "args": ["-y", "@mukundakatta/json5-mcp"] } } }License
MIT.
