Documentation
¶
Overview ¶
Package mcp wraps the Pulse library facade in the Model Context Protocol surface. The library has no dependency on this package; the CLI invokes New() and ServeStdio() to expose Pulse over stdio for MCP clients.
Tool names are defined in tools.go and exported via RegisteredTools so the skills coverage gate can verify documentation parity.
Index ¶
Constants ¶
const ( ToolInspect = "pulse_inspect" ToolPredict = "pulse_predict" ToolProcess = "pulse_process" ToolCompose = "pulse_compose" ToolSample = "pulse_sample" ToolFacet = "pulse_facet" ToolSkillsList = "pulse_skills_list" ToolSkillsGet = "pulse_skills_get" )
Tool name constants. Source of truth for the documentation coverage gate (TestSkillsCoverAllMCPTools).
const CohortURIScheme = "pulse://"
CohortURIScheme is the URI scheme for .pulse cohort resources.
const ServerName = "pulse"
ServerName is the MCP server identity reported during initialize.
const SkillURIScheme = "pulse-skill://"
SkillURIScheme is the URI scheme for embedded skill resources.
const SpecVersion = "1.0.0"
SpecVersion pins the supported MCP spec. Bump deliberately when upgrading mark3labs/mcp-go and confirming the wire format still works for our clients.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New constructs an MCP server bound to the given Pulse instance. Tools and resources are registered eagerly. The caller is responsible for serving the returned server (typically via server.ServeStdio).
func RegisteredTools ¶
func RegisteredTools() []string
RegisteredTools returns the canonical list of MCP tool names exposed by this server. Order is stable for deterministic documentation scans.
func ServeStdio ¶
ServeStdio runs the given MCP server over stdio. Blocks until the client disconnects or an error occurs.
Types ¶
This section is empty.