Skip to content

Fixed MCP config not working on Windows due to quote stripping (https://github.com/nbclaudecodegui/NetbeansClaudeCodeGui/issues/13) - #17

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/mcp-win
Apr 11, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/mcp-win

Conversation

@oleg68

@oleg68 oleg68 commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator

Resolves: #13

Write --mcp-config JSON to a temp file instead of passing inline JSON, avoiding Windows CreateProcess quote-stripping. The temp file is deleted when the session stops.

Also fixed error panel cleanup: hang detection now calls killOnly() instead of stop(), so settings.local.json and the temp MCP config file are preserved until the error panel is dismissed (stopProcess() on panel close triggers full file cleanup).

…ateProcess (nbplugins#13)

Resolves: nbplugins#13
Write --mcp-config JSON to a temp file instead of passing inline JSON,
avoiding Windows CreateProcess quote-stripping. The temp file is deleted
when the session stops.

Also fixed error panel cleanup: hang detection now calls killOnly() instead
of stop(), so settings.local.json and the temp MCP config file are preserved
until the error panel is dismissed (stopProcess() on panel close triggers
full file cleanup).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit 275c04a into nbplugins:main Apr 11, 2026
3 checks passed
@oleg68
oleg68 deleted the bugfix/mcp-win branch April 11, 2026 21:29
oleg68 added a commit to oleg68/NetbeansPluginClaudeCodeGui that referenced this pull request Apr 13, 2026
…gins#13) (nbplugins#17)

Resolves: nbplugins#13

Write --mcp-config JSON to a temp file instead of passing inline JSON,
avoiding Windows CreateProcess quote-stripping. The temp file is deleted
when the session stops.

Also fixed error panel cleanup: hang detection now calls killOnly()
instead of stop(), so settings.local.json and the temp MCP config file
are preserved until the error panel is dismissed (stopProcess() on panel
close triggers full file cleanup).

Co-authored-by: Oleg Samarin <osamarin@openintegration.inc>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
oleg68 added a commit that referenced this pull request Apr 13, 2026
…17) (#32)

Resolves:
#13

Write --mcp-config JSON to a temp file instead of passing inline JSON,
avoiding Windows CreateProcess quote-stripping. The temp file is deleted
when the session stops.

Also fixed error panel cleanup: hang detection now calls killOnly()
instead of stop(), so settings.local.json and the temp MCP config file
are preserved until the error panel is dismissed (stopProcess() on panel
close triggers full file cleanup).

Co-authored-by: Oleg Samarin <osamarin@openintegration.inc>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Oleg Samarin <osamarin@openintegration.inc>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

Windows: --mcp-config inline JSON loses double quotes, claude CLI treats it as file path

1 participant