mcp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 11 Imported by: 0

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

View Source
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).

View Source
const CohortURIScheme = "pulse://"

CohortURIScheme is the URI scheme for .pulse cohort resources.

View Source
const ServerName = "pulse"

ServerName is the MCP server identity reported during initialize.

View Source
const SkillURIScheme = "pulse-skill://"

SkillURIScheme is the URI scheme for embedded skill resources.

View Source
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

func New(p *pulse.Pulse) *server.MCPServer

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

func ServeStdio(s *server.MCPServer) error

ServeStdio runs the given MCP server over stdio. Blocks until the client disconnects or an error occurs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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