Documentation
¶
Overview ¶
Package mcpclient connects to outbound MCP servers for RocketCode code mode.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry holds configured MCP server specs for a workspace.
func New ¶
func New(workspace string, servers map[string]ServerConfig) (*Registry, error)
New builds a registry. servers is copied; later mutation is ignored.
type ServerConfig ¶
type ServerConfig struct {
Command string
Args []string
Env map[string]string
Cwd string
URL string
Headers map[string]string
}
ServerConfig describes one outbound MCP server transport.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session is one execute tool-call lifetime.
func (*Session) CallTool ¶
func (s *Session) CallTool(ctx context.Context, server, tool string, args map[string]any) (string, error)
CallTool invokes tool on server and flattens the result to a string.
Click to show internal directories.
Click to hide internal directories.