mcp

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 10 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 mcp provides the MCP server adapter for Prism.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, runner app.AgentRunner) error

Serve starts the MCP server over stdio until the client disconnects.

func StatusSummary

func StatusSummary(runner app.AgentRunner) string

StatusSummary returns a one-line startup message for logging.

Types

type DoctorInput

type DoctorInput struct{}

type GetConstitutionInput

type GetConstitutionInput struct {
	AgentID string `json:"agent_id"`
}

type GetPromptInput

type GetPromptInput struct {
	PromptID  string            `json:"prompt_id"`
	Variables map[string]string `json:"variables,omitempty"`
}

type GetPromptOutput

type GetPromptOutput struct {
	PromptID string `json:"prompt_id"`
	Title    string `json:"title"`
	Prompt   string `json:"prompt"`
}

type GetResourceInput

type GetResourceInput struct {
	URI string `json:"uri"`
}

type GetResourceOutput

type GetResourceOutput struct {
	URI      string `json:"uri"`
	Name     string `json:"name"`
	MimeType string `json:"mime_type"`
	Content  string `json:"content"`
}

type ListAgentsInput

type ListAgentsInput struct{}

type ListAgentsOutput

type ListAgentsOutput struct {
	Agents []agent.Summary `json:"agents"`
	Count  int             `json:"count"`
}

type ListPromptsInput

type ListPromptsInput struct{}

type ListPromptsOutput

type ListPromptsOutput struct {
	Prompts []PromptTemplate `json:"prompts"`
	Count   int              `json:"count"`
}

type ListResourcesInput

type ListResourcesInput struct{}

type ListResourcesOutput

type ListResourcesOutput struct {
	Resources []MCPResource `json:"resources"`
	Count     int           `json:"count"`
}

type MCPResource

type MCPResource struct {
	URI         string `json:"uri"`
	Name        string `json:"name"`
	Description string `json:"description"`
	MimeType    string `json:"mime_type"`
}

type PromptTemplate

type PromptTemplate struct {
	ID          string   `json:"id"`
	Title       string   `json:"title"`
	Description string   `json:"description"`
	Variables   []string `json:"variables,omitempty"`
}

PromptTemplate describes an LLM-callable prompt helper exposed as an MCP tool.

type RunAgentInput

type RunAgentInput struct {
	AgentID    string   `json:"agent_id"`
	Task       string   `json:"task"`
	SkillNames []string `json:"skill_names"`
	Format     string   `json:"format"`
}

Jump to

Keyboard shortcuts

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