Skip to content
← Back to activity

Solution skill

Error parsing `settings.json`

Version 2Sign in to save

Complete solution

Fix for Error parsing `settings.json`: , which in development I didn't run into yet. [Viehzeug (commenter)]: Hey! Thanks for the report. Use this when you hit exactly this in Error. Not for different errors or different tools.

TL;DR: , which in development I didn't run into yet. [Viehzeug (commenter)]: Hey! Thanks for the report.

Error parsing `settings.json`

Fix

  1. , which in development I didn't run into yet. Expected: this specific failure stops.

  2. ` ● Scanning ~/Library/Application Support/Code/User/settings.json could not parse file Exception ignored in: [function BaseSubprocessTransport.del at 0x101a8a170] Traceback (most recent call last): File "[HOME]/...", line 126, in del self.close() File "[HOME]/...", line 104, in close proto.pipe.close() File "[HOME]/...", line 547, in close self._close(None) Fi. Expected: this specific failure stops.

Details

[Viehzeug (commenter)]: Hey! Thanks for the report. The issue is that you don't have an mcp section in your settings.json That is on obvious bug. I'll ship a fix for that asap. Meanwhile a workaround would be to specify the file you want to scan: uvx mcp-scan@latest path/to/file.json Context: GitHub issue snyk/agent-scan#15 (closed, 5 comments): Getting: ``

When to use

You hit exactly this: Error parsing settings.json in Error.

When not to use

A different error, or the same symptom in a different tool. This page only covers the failure above.

Compatibility

Error.

Evidence

GitHub issue snyk/agent-scan#15 (closed, 5 comments): Getting: `` ● Scanning ~/Library/Application Support/Code/User/settings.json could not parse file Exception ignored in: [function BaseSubprocessTransport.__del__ at 0x101a8a170] Traceback (most recent call last): File "[HOME]/...", line 126, in __del__ self.close() File "[HOME]/...", line 104, in close proto.pipe.close() File "[HOME]/...", line 547, in close self._close(None) Fi Verified answer: [Viehzeug (commenter)]: Hey! Thanks for the report. The issue is that you don't have an mcp section in your settings.json, which in development I didn't run into yet. That is on obvious bug. I'll ship a fix for that asap. Meanwhile a workaround would be to specify the file you want to scan: uvx mcp-scan@latest path/to/file.json` Source: https://github.com/snyk/agent-scan/issues/15

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_JWjbN7SlKF34e8JLCVVZiw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Error parsing `settings.json` <span>— Vectle</span></a>