Versions in this module Expand all Collapse all v0 v0.4.0 Feb 2, 2026 Changes in this version + const ErrInternalError + const ErrInvalidParams + const ErrInvalidRequest + const ErrMethodNotFound + const ErrParseError + const ProtocolVersion + type CallToolParams struct + Arguments map[string]interface{} + Name string + type CallToolResult struct + Content []ContentBlock + IsError bool + type Capabilities struct + Prompts *PromptsCapability + Resources *ResourcesCapability + Tools *ToolsCapability + type ClientInfo struct + Name string + Version string + type ContentBlock struct + Data string + MimeType string + Text string + Type string + func NewErrorContent(err error) ContentBlock + func NewTextContent(text string) ContentBlock + type ErrorResponse struct + Code int + Data interface{} + Message string + type GetPromptParams struct + Arguments map[string]string + Name string + type GetPromptResult struct + Description string + Messages []PromptMessage + type InitializeParams struct + Capabilities Capabilities + ClientInfo ClientInfo + ProtocolVersion string + type InitializeResult struct + Capabilities Capabilities + ProtocolVersion string + ServerInfo ServerInfo + type InputSchema struct + Properties map[string]Property + Required []string + Type string + type ListPromptsResult struct + Prompts []PromptInfo + type ListResourcesResult struct + Resources []ResourceInfo + type ListToolsResult struct + Tools []ToolInfo + type Notification struct + JSONRPC string + Method string + Params json.RawMessage + type ProgressParams struct + Progress float64 + ProgressToken interface{} + Total float64 + type PromptArgument struct + Description string + Name string + Required bool + type PromptInfo struct + Arguments []PromptArgument + Description string + Name string + type PromptMessage struct + Content ContentBlock + Role string + type PromptsCapability struct + ListChanged bool + type Property struct + Description string + Enum []string + Type string + type ReadResourceParams struct + URI string + type ReadResourceResult struct + Contents []ResourceContent + type Request struct + ID json.RawMessage + JSONRPC string + Method string + Params json.RawMessage + type ResourceContent struct + Blob string + MimeType string + Text string + URI string + type ResourceInfo struct + Description string + MimeType string + Name string + URI string + type ResourcesCapability struct + ListChanged bool + Subscribe bool + type Response struct + Error *ErrorResponse + ID json.RawMessage + JSONRPC string + Result interface{} + type Server struct + func NewServer(runner *local.Runner, name, version string) *Server + func (s *Server) ServeStdio(ctx context.Context) error + type ServerInfo struct + Name string + Version string + type ToolInfo struct + Description string + InputSchema InputSchema + Name string + type ToolsCapability struct + ListChanged bool