Skip to content

Fix invalid JSON in financial-analysis/.mcp.json (+ validate .mcp.json in check.py)#277

Open
varjoranta wants to merge 2 commits into
anthropics:mainfrom
varjoranta:fix-financial-analysis-mcp-json
Open

Fix invalid JSON in financial-analysis/.mcp.json (+ validate .mcp.json in check.py)#277
varjoranta wants to merge 2 commits into
anthropics:mainfrom
varjoranta:fix-financial-analysis-mcp-json

Conversation

@varjoranta

Copy link
Copy Markdown

Problem

plugins/vertical-plugins/financial-analysis/.mcp.json — the core connector config shared across the suite — is not valid JSON and fails to parse:

$ python3 -m json.tool plugins/vertical-plugins/financial-analysis/.mcp.json
Expecting ',' delimiter: line 47 column 5 (char 1100)

Two issues at the end of the file: a missing comma after the egnyte entry, and the box entry left the top-level object unclosed.

Changes

  1. .mcp.json — add the comma and close the box object. All 12 connectors parse again: daloopa, morningstar, sp-global, factset, moodys, mtnewswire, aiera, lseg, pitchbook, chronograph, egnyte, box.
  2. check.py — it validated plugin.json / marketplace.json / steering-examples.json but not .mcp.json, so this slipped through. Added plugins/**/.mcp.json to the JSON-parse globs.

Verification

$ python3 scripts/check.py
OK — 85 file(s) checked, 0 issues.

Reverting just the .mcp.json fix makes the new check fail as intended:

✗ JSON parse: plugins/vertical-plugins/financial-analysis/.mcp.json: Expecting ',' delimiter: line 47 column 5

The core connector config fails to parse (python3 -m json.tool errors at
line 47): a missing comma after the `egnyte` entry, and the `box` entry's
object left the root object unclosed. Add the comma and close `box` so the
file is valid JSON and all 12 connectors load.
check.py validated plugin.json / marketplace.json / steering-examples.json but
not .mcp.json, so the malformed connector config slipped through. Add
plugins/**/.mcp.json to the JSON-parse globs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant