Documentation
¶
Overview ¶
Package mcp provides the MCP server adapter for Prism.
Index ¶
- func Serve(ctx context.Context, runner app.AgentRunner) error
- func StatusSummary(runner app.AgentRunner) string
- type DoctorInput
- type GetConstitutionInput
- type GetPromptInput
- type GetPromptOutput
- type GetResourceInput
- type GetResourceOutput
- type ListAgentsInput
- type ListAgentsOutput
- type ListPromptsInput
- type ListPromptsOutput
- type ListResourcesInput
- type ListResourcesOutput
- type MCPResource
- type PromptTemplate
- type RunAgentInput
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 GetPromptOutput ¶
type GetResourceInput ¶
type GetResourceInput struct {
URI string `json:"uri"`
}
type GetResourceOutput ¶
type ListAgentsInput ¶
type ListAgentsInput struct{}
type ListAgentsOutput ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.