mcpprobe

package
v0.152.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mcpprobe checks that a registry MCP server (MCP-06) can be reached from this machine: it starts (stdio) or connects to (http) the server with the declaration's environment and headers, performs the MCP handshake and lists the tools. Secret values are read through lookup — this machine's environment — and never returned.

Index

Constants

View Source
const DefaultTimeout = 30 * time.Second

DefaultTimeout bounds a probe end to end.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	ServerName    string   `json:"server_name,omitempty"`
	ServerVersion string   `json:"server_version,omitempty"`
	Tools         []string `json:"tools"`
	ElapsedMs     int64    `json:"elapsed_ms"`
}

Result is what a probe found.

func Probe

func Probe(ctx context.Context, spec config.MCPServerConfig, lookup func(string) (string, bool), version string) (Result, error)

Probe connects to spec and lists its tools. version is reported as the client version. A secret variable lookup cannot find is an error naming it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL