Documentation
¶
Overview ¶
Package mcptools adapts the official MCP Go SDK to the tool-source contract. Sources: https://modelcontextprotocol.io/specification/2025-11-25/server/tools https://github.com/modelcontextprotocol/go-sdk/blob/v1.8.0/docs/protocol.md
Index ¶
- func Configured(servers []Server, project string, warn func(error)) api.Plugin
- func Name(server, tool string) string
- func Plugin(servers []Server, project string) api.Plugin
- type Manager
- func (m *Manager) Add(ctx context.Context, id string, specs []Server) error
- func (m *Manager) AddConfigured(ctx context.Context, id string, spec Server) error
- func (m *Manager) Close() error
- func (m *Manager) Remove(id string)
- func (m *Manager) Run(ctx context.Context, s api.Session, call api.Call, progress func(string)) api.ToolResult
- func (m *Manager) Tools(s api.Session) []api.Tool
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configured ¶
Configured starts each configured server independently when warn is set.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) Add ¶
Add prepares an entire group before publishing it. A failed connection leaves no partial tools or child processes. Client-provided groups are never saved.
func (*Manager) AddConfigured ¶
AddConfigured adds one configured server to a session's existing attachment.