Documentation
¶
Overview ¶
Package mcp provides the MCP server adapter for Prism.
Index ¶
- func Serve(ctx context.Context, runner app.AgentRunner) error
- func ServeWithConfig(ctx context.Context, runner app.AgentRunner, cfg Config) error
- func StatusSummary(runner app.AgentRunner) string
- type CallMCPToolInput
- type Config
- type DoctorInput
- type ExplainPolicyInput
- type GetConstitutionInput
- type GetPromptInput
- type GetPromptOutput
- type GetResourceInput
- type GetResourceOutput
- type InstallBundleInput
- type ListAgentsInput
- type ListAgentsOutput
- type ListBundlesInput
- type ListMCPServerToolsInput
- type ListMCPServerToolsOutput
- type ListMCPServersInput
- type ListMCPServersOutput
- type ListPoliciesInput
- type ListPoliciesOutput
- type ListPromptsInput
- type ListPromptsOutput
- type ListResourcesInput
- type ListResourcesOutput
- type MCPResource
- type PromptTemplate
- type RunAgentInput
- type RunGraphInput
- type SkillHealth
- type SkillHealthInput
- type SkillHealthOutput
- type SuggestRouteInput
- type UsageSummaryInput
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 ServeWithConfig ¶ added in v0.1.14
func StatusSummary ¶
func StatusSummary(runner app.AgentRunner) string
StatusSummary returns a one-line startup message for logging.
Types ¶
type CallMCPToolInput ¶ added in v0.1.14
type Config ¶ added in v0.1.14
type Config struct {
Policy *internalpolicy.Engine
EventSink observe.Sink
DownstreamMCP *downstreammcp.Client
BundleStatePath string
EventStorePath string
RootDir string
SkillsDir string
}
type DoctorInput ¶
type DoctorInput struct{}
type ExplainPolicyInput ¶ added in v0.1.14
type GetConstitutionInput ¶
type GetConstitutionInput struct {
AgentID string `json:"agent_id"`
}
type GetPromptInput ¶
type GetPromptOutput ¶
type GetResourceInput ¶
type GetResourceInput struct {
URI string `json:"uri"`
}
type GetResourceOutput ¶
type InstallBundleInput ¶ added in v0.1.14
type ListAgentsInput ¶
type ListAgentsInput struct{}
type ListAgentsOutput ¶
type ListBundlesInput ¶ added in v0.1.14
type ListBundlesInput struct{}
type ListMCPServerToolsInput ¶ added in v0.1.14
type ListMCPServerToolsOutput ¶ added in v0.1.14
type ListMCPServerToolsOutput struct {
Server string `json:"server"`
Tools []downstreammcp.ToolSummary `json:"tools"`
Count int `json:"count"`
}
type ListMCPServersInput ¶ added in v0.1.14
type ListMCPServersInput struct{}
type ListMCPServersOutput ¶ added in v0.1.14
type ListMCPServersOutput struct {
Configured bool `json:"configured"`
Servers []downstreammcp.Server `json:"servers"`
}
type ListPoliciesInput ¶ added in v0.1.14
type ListPoliciesInput struct{}
type ListPoliciesOutput ¶ added in v0.1.14
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 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 RunGraphInput ¶ added in v0.1.14
type RunGraphInput struct {
Graph graphpkg.Definition `json:"graph"`
}
type SkillHealth ¶ added in v0.1.14
type SkillHealthInput ¶ added in v0.1.14
type SkillHealthInput struct {
SkillName string `json:"skill_name,omitempty"`
}
type SkillHealthOutput ¶ added in v0.1.14
type SkillHealthOutput struct {
Skills []SkillHealth `json:"skills"`
Count int `json:"count"`
}
type SuggestRouteInput ¶ added in v0.1.14
type UsageSummaryInput ¶ added in v0.1.14
type UsageSummaryInput struct{}