Versions in this module Expand all Collapse all v0 v0.2.21 Sep 9, 2026 v0.2.20 Sep 5, 2026 Changes in this version + type ApprovalManager struct + func NewApprovalManager(ttl time.Duration) *ApprovalManager + func (m *ApprovalManager) Clear() + func (m *ApprovalManager) ClearServer(server mcpServer.ServerID) + func (m *ApprovalManager) Create(ctx context.Context, summary mcpServer.MCPApprovalSummary) (string, error) + func (m *ApprovalManager) LookupDecision(summary mcpServer.MCPApprovalSummary) (mcpServer.MCPApprovalResolution, bool) + func (m *ApprovalManager) Resolve(ctx context.Context, id string, resolution mcpServer.MCPApprovalResolution) (mcpServer.MCPApprovalResolutionResult, error) + func (m *ApprovalManager) VerifyAndConsumeToken(ctx context.Context, token string, expected mcpServer.MCPApprovalSummary) (string, error) + type Runtime interface + CallTool func(ctx context.Context, server mcpServer.ServerID, ...) (*mcpServer.InvokeMCPToolResponseBody, error) + CallToolDryRun func(ctx context.Context, server mcpServer.ServerID, ...) (mcpServer.RuntimeConfig, mcpServer.MCPToolCapability, error) + SetSessionLifecycleCleaner func(cleaner mcpConnection.SessionLifecycleCleaner) + type ToolBridge struct + func NewToolBridge(runtime *mcpConnection.MCPRuntimeManager, approvals *ApprovalManager) *ToolBridge + func (b *ToolBridge) Evaluate(ctx context.Context, serverRef mcpServer.ServerID, ...) (*mcpServer.MCPApprovalEvaluation, error) + func (b *ToolBridge) EvaluateMapped(ctx context.Context, mapping mcpConversation.MCPProviderToolMapping, ...) (*mcpServer.MCPApprovalEvaluation, error) + func (b *ToolBridge) Invoke(ctx context.Context, serverRef mcpServer.ServerID, ...) (*mcpServer.InvokeMCPToolResponseBody, error) + func (b *ToolBridge) InvokeMapped(ctx context.Context, mapping mcpConversation.MCPProviderToolMapping, ...) (*mcpServer.InvokeMCPToolResponseBody, error) + func (b *ToolBridge) ResolveApproval(ctx context.Context, approvalID string, ...) (mcpServer.MCPApprovalResolutionResult, error)