Skip to content

fix: keep MCP stdio clean in specmatic-node#324

Open
vedubhat wants to merge 1 commit into
masterfrom
keep_stdout_clean_for_mcp
Open

fix: keep MCP stdio clean in specmatic-node#324
vedubhat wants to merge 1 commit into
masterfrom
keep_stdout_clean_for_mcp

Conversation

@vedubhat

Copy link
Copy Markdown

Reason for change

  • npx -y specmatic mcp server was failing during MCP initialization with a JSON parse error.
  • The root cause was the Node wrapper capturing Java stdout/stderr and re-emitting them through its own output, which mixed logs into the MCP protocol stream.

What changed

  • Special-cased mcp server in specmatic-node.
  • Spawned the JVM process with stdio: 'inherit' for this command.
  • Added regression coverage for:
    • the direct mcp server path
    • mcp server with a leading root flag such as --verbose

@vedubhat vedubhat requested a review from ketan June 22, 2026 13:15
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