Documentation
¶
Index ¶
- Variables
- func ResolveToolAlias(name string) string
- type MCPServer
- type Registry
- func (r *Registry) ExecuteTool(ctx context.Context, toolName string, args map[string]any) (any, error)
- func (r *Registry) GetTools(ctx context.Context, allowedTools []string) ([]rt.Tool, error)
- func (r *Registry) HasTool(name string) bool
- func (r *Registry) RegisterHiddenTool(tool mcp.Tool, title string, handler server.ToolHandlerFunc)
- func (r *Registry) RegisterResource(resource mcp.Resource, handler server.ResourceHandlerFunc)
- func (r *Registry) RegisterTool(tool mcp.Tool, title string, handler server.ToolHandlerFunc)
- func (r *Registry) RegisterToolWithAvailability(tool mcp.Tool, title string, handler server.ToolHandlerFunc, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var ToolAliases = map[string]string{
"compose_namespace_list": "compose_namespace_lookup",
"compose_module_list": "compose_module_lookup",
}
ToolAliases maps old tool names to their current equivalents. Add entries here when a tool is renamed so existing agents keep working.
Functions ¶
func ResolveToolAlias ¶
ResolveToolAlias returns the current tool name for a given name, resolving any alias.
Types ¶
type MCPServer ¶
type MCPServer struct {
// contains filtered or unexported fields
}
func NewMCPServer ¶
func (*MCPServer) MountRoutes ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) ExecuteTool ¶
func (*Registry) RegisterHiddenTool ¶
func (*Registry) RegisterResource ¶
func (r *Registry) RegisterResource(resource mcp.Resource, handler server.ResourceHandlerFunc)
func (*Registry) RegisterTool ¶
func (*Registry) RegisterToolWithAvailability ¶
Click to show internal directories.
Click to hide internal directories.