Versions in this module Expand all Collapse all v0 v0.0.2 Dec 19, 2025 v0.0.1 Dec 17, 2025 Changes in this version + var AddReceivingMiddlewareHook func(name string) + var NewRegistrationServerHook func(bus interface{}) (*RegistrationServer, error) + type MethodHandler func(ctx context.Context, req mcp.Request) (mcp.Result, error) + type RegistrationServer struct + func NewRegistrationServer(bus *bus.Provider) (*RegistrationServer, error) + func (s *RegistrationServer) GetServiceStatus(_ context.Context, _ *v1.GetServiceStatusRequest) (*v1.GetServiceStatusResponse, error) + func (s *RegistrationServer) InitiateOAuth2Flow(_ context.Context, _ *v1.InitiateOAuth2FlowRequest) (*v1.InitiateOAuth2FlowResponse, error) + func (s *RegistrationServer) ListServices(ctx context.Context, _ *v1.ListServicesRequest) (*v1.ListServicesResponse, error) + func (s *RegistrationServer) RegisterService(ctx context.Context, req *v1.RegisterServiceRequest) (*v1.RegisterServiceResponse, error) + func (s *RegistrationServer) RegisterTools(_ context.Context, _ *v1.RegisterToolsRequest) (*v1.RegisterToolsResponse, error) + func (s *RegistrationServer) UnregisterService(_ context.Context, _ *v1.UnregisterServiceRequest) (*v1.UnregisterServiceResponse, error) + type Router struct + func NewRouter() *Router + func (r *Router) GetHandler(method string) (MethodHandler, bool) + func (r *Router) Register(method string, handler MethodHandler) + type Server struct + func NewServer(_ context.Context, toolManager tool.ManagerInterface, ...) (*Server, error) + func (s *Server) AddServiceInfo(serviceID string, info *tool.ServiceInfo) + func (s *Server) AddTool(t tool.Tool) error + func (s *Server) AuthManager() *auth.Manager + func (s *Server) CallTool(ctx context.Context, req *tool.ExecutionRequest) (any, error) + func (s *Server) ClearToolsForService(serviceKey string) + func (s *Server) GetPrompt(ctx context.Context, req *mcp.GetPromptRequest) (*mcp.GetPromptResult, error) + func (s *Server) GetServiceInfo(serviceID string) (*tool.ServiceInfo, bool) + func (s *Server) GetTool(toolName string) (tool.Tool, bool) + func (s *Server) ListPrompts(_ context.Context, _ *mcp.ListPromptsRequest) (*mcp.ListPromptsResult, error) + func (s *Server) ListResources(_ context.Context, _ *mcp.ListResourcesRequest) (*mcp.ListResourcesResult, error) + func (s *Server) ListTools() []tool.Tool + func (s *Server) PromptManager() prompt.ManagerInterface + func (s *Server) ReadResource(ctx context.Context, req *mcp.ReadResourceRequest) (*mcp.ReadResourceResult, error) + func (s *Server) Reload() error + func (s *Server) ResourceManager() resource.ManagerInterface + func (s *Server) Server() *mcp.Server + func (s *Server) ServiceRegistry() *serviceregistry.ServiceRegistry + func (s *Server) SetMCPServer(mcpServer tool.MCPServerProvider) + func (s *Server) SetReloadFunc(f func() error) + func (s *Server) ToolManager() tool.ManagerInterface