Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseClients ¶
func CloseClients(clients []*Client)
func RawIDKey ¶
func RawIDKey(id json.RawMessage) string
func SanitizeToolName ¶
Types ¶
type Callbacks ¶
type Callbacks struct {
OnNotification func(serverName, method string, params json.RawMessage)
OnSamplingCreateMessage func(ctx context.Context, serverName string, params json.RawMessage) (json.RawMessage, *RPCError)
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func ConnectServers ¶
type RPCRequest ¶
type RPCRequest struct {
JSONRPC string `json:"jsonrpc"`
ID json.RawMessage `json:"id,omitempty"`
Method string `json:"method"`
Params json.RawMessage `json:"params,omitempty"`
Result json.RawMessage `json:"result,omitempty"`
Error json.RawMessage `json:"error,omitempty"`
}
type ServerConfig ¶
func LoadConfiguredServers ¶
func LoadConfiguredServers(cwd string) ([]ServerConfig, error)
LoadConfiguredServers loads usable MCP servers from global and project mcp.json. Missing config files are ignored. Obvious template placeholders are skipped so creating a starter config does not break normal startup.
Click to show internal directories.
Click to hide internal directories.