Skip to content

Ignore commented-out entries when checking for existing MCP servers - #933

Open
lazerg wants to merge 1 commit into
laravel:mainfrom
lazerg:fix/issue-932-commented-server-key
Open

Ignore commented-out entries when checking for existing MCP servers#933
lazerg wants to merge 1 commit into
laravel:mainfrom
lazerg:fix/issue-932-commented-server-key

Conversation

@lazerg

@lazerg lazerg commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

boost:install --mcp reports success but writes nothing when the server key only shows up in a commented-out line inside mcpServers. That happens when you disable a server and later run install to bring it back.

serverExistsInContent() matches against the raw slice between the mcpServers braces, so // "laravel-boost": {...} counts as an existing entry and the server is filtered out before injection. The check now runs on the content with comments removed, and quoted strings are left alone so a // inside a value like "url": "https://example.com" still reads as real config rather than a comment.

Fixes #932

@lazerg
lazerg force-pushed the fix/issue-932-commented-server-key branch from 1523992 to 26cc1b5 Compare August 11, 2026 12:24
@lazerg
lazerg force-pushed the fix/issue-932-commented-server-key branch from 26cc1b5 to 2630525 Compare August 11, 2026 12:50
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.

boost:install --mcp reports success without installing when the server key appears in a comment

1 participant