jsonc-mcp
v1.0.1Work 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.
| Parameter | Type | Description |
|---|---|---|
text * | string | JSONC document text |
trailingCommas | boolean | Also accept trailing commas in arrays and objects |
strip_jsonc
Return the same document with comments and trailing commas removed, nothing else changed.
| Parameter | Type | Description |
|---|---|---|
text * | string | JSONC document text |
trailingCommas | boolean | Also remove trailing commas |
validate_jsonc
Check a JSONC document and, when it fails, point at the line with a caret.
| Parameter | Type | Description |
|---|---|---|
text * | string | JSONC document text |