jsonc-mcp

v1.0.1
io.github.mrfentmen/jsonc-mcp Checked 22 hours ago Published 1 month ago

Work with JSONC offline: strip comments and trailing commas, parse to JSON and locate errors

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

parse_jsonc

Parse JSON with // and /* */ comments (and optional trailing commas) into clean pretty JSON.

ParameterTypeDescription
text *stringJSONC document text
trailingCommasbooleanAlso accept trailing commas in arrays and objects

strip_jsonc

Return the same document with comments and trailing commas removed, nothing else changed.

ParameterTypeDescription
text *stringJSONC document text
trailingCommasbooleanAlso remove trailing commas

validate_jsonc

Check a JSONC document and, when it fails, point at the line with a caret.

ParameterTypeDescription
text *stringJSONC document text