feat: probe stdio MCP servers with an initialize handshake - #7
Closed
feiler0 wants to merge 1 commit into
Closed
Conversation
Extends the one-shot mcp_probe tool, the panel probe action, /mcp <server> probe, and the optional passive probe to stdio MCP servers: the probe spawns the configured command and completes one MCP initialize handshake over stdio, recording sanitized server info or failure detail in the panel. A new ProbeTarget union and service.probeSpec() resolve either an HTTP endpoint or a stdio launch spec per mcp-client row.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Extends connectivity probing to stdio MCP servers. Previously
mcp_probe, the panel probe action,/mcp <server> probe, and the optional passive probe only supported streamable-http endpoints and rejected stdio rows outright (stdio servers have no HTTP endpoint to probe).Now a probe on a stdio row:
command/argswith the scrubbed parent env + configuredenv(samescrubbedParentEnvpolicy as the mcp-client bridge) and optionalcwd,initializehandshake over stdin/stdout,Changes
src/probe.ts— newProbeTargetunion (http|stdio),probeStdio(),probeJob()dispatch on transport;mcp_probetool copy updated for both transports.src/service.ts— newprobeSpec()that resolves either the raw HTTP endpoint or the stdio launch spec per mcp-client row;probe(), the passive sweep, and tool targeting all share it.tests/probe.spec.ts— stdio handshake + child-exit cases (real spawned node child, no network).CHANGELOG.md—[Unreleased]entry.Notes
lib/) is generated bytsdownand is not tracked in this repository, so no build artifacts are included.serverInfo).