Documentation
¶
Overview ¶
Package mcpprobe is a minimal MCP client for health checks. It starts an MCP server command over stdio, performs the initialize handshake, and lists the server's tools. `vegaload doctor` uses it to prove that the exact command an agent host has configured really starts and answers.
It speaks the same newline-delimited JSON-RPC 2.0 as internal/mcp and knows nothing about what any tool does.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Path string
Args []string
Env map[string]string // added to the current environment
Dir string // working directory; empty for the current one
}
Command is an MCP server launch command, as an agent host would run it.
type Info ¶
Info is what a successful probe learned about the server.
func Handshake ¶
Handshake runs initialize and tools/list over an already-connected stream. It is split from Probe so tests can drive it in process.
func Probe ¶
Probe starts c, runs the handshake, and stops the process. Errors include the tail of the server's stderr, which is where a crashing server explains itself.
func (Info) MissingTools ¶
MissingTools returns the names in want that info does not list.