Versions in this module Expand all Collapse all v0 v0.2.22 Sep 12, 2026 v0.2.21 Sep 9, 2026 Changes in this version type Digest + func (value Digest) Validate() error v0.2.20 Sep 5, 2026 Changes in this version + const DefaultConnectionTimeoutMS + const DefaultMCPPageSize + const MaxConnectionTimeoutMS + const MaxDescriptionBytes + const MaxDiscoveryCandidates + const MaxDisplayNameBytes + const MaxFingerprintBytes + const MaxKindBytes + const MaxLocatorBytes + const MaxMCPServerPageSize + const MaxURIBytes + const NotificationRefreshDebounce + var ErrClosed = errors.New("MCP runtime is closed") + var ErrConflict = errors.New("MCP runtime conflict") + var ErrDigestMismatch = errors.New("MCP runtime digest mismatch") + var ErrInvalid = errors.New("invalid MCP runtime specification") + var ErrMCPApprovalNeeded = errors.New("mcp approval required") + var ErrMCPInvalidRuntimeRequest = errors.New("invalid mcp runtime request") + var ErrMCPPolicyDenied = errors.New("mcp policy denied request") + var ErrMCPRuntimeNotReady = errors.New("mcp runtime is not ready") + var ErrMCPStaleReference = errors.New("mcp stale reference") + var ErrReferenceUnresolved = errors.New("MCP runtime reference unresolved") + func ValidateDigest(value Digest) error + func ValidateOptionalText(subject, value string, maximum int) error + func ValidateRequiredText(subject, value string, maximum int) error + type CatalogID string + func (id CatalogID) Validate() error + type ClientInfo struct + Name string + Version string + func (value ClientInfo) Validate() error + type ClientNotification struct + Kind ClientNotificationKind + LogData any + LoggerName string + LoggingLevel string + Message string + Progress float64 + ResourceURI string + Server ServerID + Total float64 + type ClientNotificationKind string + const ClientNotificationProgress + const ClientNotificationPromptListChanged + const ClientNotificationResourceListChanged + const ClientNotificationResourceUpdated + const ClientNotificationToolListChanged + type ClientNotificationSink interface + OnClientNotification func(ctx context.Context, event ClientNotification) + type Digest string + func DigestBytes(value []byte) Digest + type InvokeMCPToolRequest struct + Body *InvokeMCPToolRequestBody + Server ServerID + type InvokeMCPToolRequestBody struct + AppInstanceID string + ApprovalID string + ApprovalToken string + Arguments map[string]any + ChoiceID string + ConversationID string + MessageID string + ProviderToolName string + Source MCPInvocationSource + ToolDigest string + ToolName string + ToolUseID string + type InvokeMCPToolResponse struct + Body *InvokeMCPToolResponseBody + type InvokeMCPToolResponseBody struct + App *MCPToolAppRenderInfo + Content []MCPContent + IsError bool + Provenance MCPToolCallProvenance + ProviderToolName string + Server ServerID + StructuredContent any + ToolName string + type MCPApprovalDecision string + const MCPApprovalDecisionAllowed + const MCPApprovalDecisionApprovalRequired + const MCPApprovalDecisionDenied + type MCPApprovalEvaluation struct + ApprovalID string + Decision MCPApprovalDecision + Reason string + Summary *MCPApprovalSummary + type MCPApprovalResolution string + const MCPApprovalResolutionAllowAlways + const MCPApprovalResolutionAllowOnce + const MCPApprovalResolutionDenyAlways + const MCPApprovalResolutionDenyOnce + type MCPApprovalResolutionResult struct + ApprovalID string + Decision MCPApprovalDecision + ExpiresAt string + RememberedForSession bool + Resolution MCPApprovalResolution + Token string + type MCPApprovalSummary struct + AppInstanceID string + Arguments jsonutil.JSONRawString + Risk MCPToolRisk + Server ServerID + ServerDisplayName string + Source MCPInvocationSource + ToolDigest string + ToolName string + type MCPArgumentDefinition struct + Description string + Name string + Required bool + Title string + type MCPCompleteArgumentRequest struct + Body *MCPCompleteArgumentRequestBody + Server ServerID + type MCPCompleteArgumentRequestBody struct + ArgumentName string + ArgumentValue string + Context map[string]string + Name string + RefType string + type MCPCompletionResult struct + HasMore bool + Total int + Values []string + type MCPContent struct + Annotations map[string]any + Data []byte + Description string + Icons []MCPIcon + MIMEType string + Meta map[string]any + Name string + Resource *MCPResourceContents + Size *int64 + Text string + Title string + Type MCPContentType + URI string + type MCPContentType string + const MCPContentTypeAudio + const MCPContentTypeImage + const MCPContentTypeResource + const MCPContentTypeResourceLink + const MCPContentTypeText + type MCPDiscoveryPageToken struct + Index int + Kind string + PageSize int + Server ServerID + SnapshotDigest string + type MCPDiscoverySnapshot struct + Digest string + Instructions string + NegotiatedProtocolVersion string + Prompts []MCPPromptRef + ResourceTemplates []MCPResourceTemplateRef + Resources []MCPResourceRef + Server ServerID + ServerCapabilities *MCPServerCapabilitiesSummary + ServerInfo *MCPImplementationInfo + SyncedAt string + Tools []MCPToolCapability + type MCPGetPromptRequest struct + Body *MCPGetPromptRequestBody + Server ServerID + type MCPGetPromptRequestBody struct + Arguments map[string]string + PromptName string + type MCPGetPromptResponse struct + Body *MCPGetPromptResponseBody + type MCPGetPromptResponseBody struct + Description string + Messages []MCPPromptMessage + PromptName string + Server ServerID + type MCPHTTPAuthMode string + const MCPHTTPAuthAPIKey + const MCPHTTPAuthClientCredentials + const MCPHTTPAuthNone + const MCPHTTPAuthOAuth + type MCPIcon struct + MIMEType string + Sizes []string + Source string + Theme string + type MCPImplementationInfo struct + Name string + Version string + type MCPInvocationSource string + const MCPInvocationSourceApp + const MCPInvocationSourceModel + const MCPInvocationSourceUser + type MCPPromptMessage struct + Content MCPContent + Role string + type MCPPromptRef struct + Arguments map[string]MCPArgumentDefinition + Description string + Digest string + DisplayName string + PromptName string + Server ServerID + Title string + type MCPReadResourceRequest struct + Body *MCPReadResourceRequestBody + Server ServerID + type MCPReadResourceRequestBody struct + URI string + type MCPReadResourceResponse struct + Body *MCPReadResourceResponseBody + type MCPReadResourceResponseBody struct + Contents []MCPContent + Server ServerID + URI string + type MCPResourceContents struct + Blob []byte + MIMEType string + Meta map[string]any + Text string + URI string + type MCPResourceRef struct + Annotations map[string]any + Description string + Digest string + DisplayName string + MimeType string + Name string + Server ServerID + Size int64 + Title string + URI string + type MCPResourceTemplateRef struct + Annotations map[string]any + Arguments map[string]MCPArgumentDefinition + Description string + Digest string + DisplayName string + MimeType string + Name string + Server ServerID + Title string + URITemplate string + type MCPRuntimeStdioConfig struct + Args []string + Command string + Env map[string]string + StartupTimeoutMS int + type MCPRuntimeStreamableHTTPConfig struct + AuthMode MCPHTTPAuthMode + ClientCredentialRef string + ClientIDMetadataDocumentURL string + Headers map[string]string + TimeoutMS int + URL string + type MCPServerCapabilitiesSummary struct + Completions bool + Experimental map[string]any + Extensions map[string]any + Prompts bool + PromptsListChanged bool + Resources bool + ResourcesListChanged bool + ResourcesSubscribe bool + Tools bool + ToolsListChanged bool + type MCPServerRuntimeSnapshot struct + Collection CatalogID + Instructions string + LastConnectedAt string + LastError string + LastSyncedAt string + NegotiatedProtocolVersion string + PromptCount int + ResourceCount int + ResourceTemplateCount int + Server ServerID + ServerCapabilities *MCPServerCapabilitiesSummary + ServerInfo *MCPImplementationInfo + SnapshotDigest string + Status MCPServerStatus + ToolCount int + type MCPServerStatus string + const MCPServerStatusConnecting + const MCPServerStatusDisabled + const MCPServerStatusDisconnected + const MCPServerStatusError + const MCPServerStatusReady + type MCPTaskSupport string + const MCPTaskSupportForbidden + const MCPTaskSupportOptional + const MCPTaskSupportRequired + type MCPToolAnnotations struct + DestructiveHint *bool + IdempotentHint bool + OpenWorldHint *bool + ReadOnlyHint bool + Title string + type MCPToolAppInfo struct + ResourceURI string + Visibility []string + type MCPToolAppRenderInfo struct + Content []MCPContent + IsError bool + MimeType string + ResourceURI string + StructuredContent any + type MCPToolCallProvenance struct + AppInstanceID string + AppResourceURI string + ApprovalID string + ChoiceID string + Collection CatalogID + ProviderToolName string + Server ServerID + ServerDisplayName string + ToolDigest string + ToolName string + ToolUseID string + type MCPToolCapability struct + Annotations *MCPToolAnnotations + App *MCPToolAppInfo + ApprovalRule mcpPolicy.MCPApprovalRule + ChoiceID string + Description string + Digest string + DisplayName string + Enabled bool + ExecutionMode mcpPolicy.MCPExecutionMode + InferredRisk MCPToolRisk + InputSchema map[string]any + OutputSchema map[string]any + ProviderToolName string + Server ServerID + Stale bool + TaskSupport MCPTaskSupport + Title string + ToolName string + type MCPToolRisk string + const MCPToolRiskDestructive + const MCPToolRiskOpenWorld + const MCPToolRiskRead + const MCPToolRiskUnknown + const MCPToolRiskWrite + type MCPTransportType string + const MCPTransportStdio + const MCPTransportStreamableHTTP + type ResolvedServer struct + Catalog CatalogID + Config RuntimeConfig + Server ServerID + Version Digest + func (value ResolvedServer) Validate() error + type RuntimeConfig struct + Catalog CatalogID + DisplayName string + LogicalName string + OAuthClientSecretRequired bool + Policy mcpPolicy.MCPPolicy + SensitiveValues []string + Server ServerID + Stdio *MCPRuntimeStdioConfig + StreamableHTTP *MCPRuntimeStreamableHTTPConfig + Transport MCPTransportType + func (config RuntimeConfig) Validate() error + type ServerID string + func (id ServerID) Validate() error + type ServerSource interface + ResolveServer func(ctx context.Context, server ServerID) (ResolvedServer, error)