Agent♥︎Age
Catalog

io.github.MukundaKatta/json5-mcp

Official

by MukundaKatta · JavaScript

Parse JSON5 (comments, trailing commas, unquoted keys) and emit strict JSON.

@mukundakatta/json5-mcp (MCP) Server

This MCP server parses JSON5—supporting comments, trailing commas, and unquoted keys—then emits strict JSON for downstream tools. It also handles JSON5 values such as hex, NaN, and Infinity, and supports round-tripping so strict JSON can be produced when required.

🛠️ Key Features

  • JSON5 parsing (“JSON with comments”) into real values
  • JSON5 serialization, including human-edited configuration use cases
  • Conversion from JSON5 input to strict JSON output
  • Supports hex, NaN, and Infinity

🚀 Use Cases

  • Converting LLM-produced “JSON-with-comments” into strict JSON
  • Reading configuration files that are JSON5 “in disguise” (e.g., tsconfig, .babelrc, mcp.json)
  • Normalizing inputs for tools that require strict JSON

⚡ Developer Benefits

  • Tools provided: parse_json5(text), to_json5(value, indent?), to_strict_json(text, indent?)
  • Consistent strict-JSON output for integrations

⚠️ Limitations

  • Described behavior focuses on transforming JSON5 to strict JSON; additional capabilities beyond the listed tools are not specified.