Documentation
¶
Overview ¶
Package roo provides an adapter for Roo Code VS Code extension MCP configuration.
Roo Code uses a format similar to Cline, with config at:
- Global: mcp_settings.json in VS Code globalStorage
- Workspace: .roo/mcp.json
Index ¶
- Constants
- type Adapter
- func (a *Adapter) DefaultPaths() []string
- func (a *Adapter) FromCore(cfg *core.Config) *Config
- func (a *Adapter) Marshal(cfg *core.Config) ([]byte, error)
- func (a *Adapter) Name() string
- func (a *Adapter) Parse(data []byte) (*core.Config, error)
- func (a *Adapter) ReadFile(path string) (*core.Config, error)
- func (a *Adapter) ToCore(rooCfg *Config) *core.Config
- func (a *Adapter) WriteFile(cfg *core.Config, path string) error
- type Config
- type ServerConfig
Constants ¶
View Source
const ( // AdapterName is the identifier for this adapter. AdapterName = "roo" // GlobalConfigFileName is the global config file name. GlobalConfigFileName = "mcp_settings.json" // WorkspaceConfigDir is the workspace config directory. WorkspaceConfigDir = ".roo" // WorkspaceConfigFileName is the workspace config file name. WorkspaceConfigFileName = "mcp.json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct{}
Adapter implements core.Adapter for Roo Code.
func (*Adapter) DefaultPaths ¶
DefaultPaths returns the default config file paths for Roo Code.
type Config ¶
type Config struct {
MCPServers map[string]ServerConfig `json:"mcpServers"`
}
Config represents the Roo Code MCP configuration.
type ServerConfig ¶
type ServerConfig struct {
// Type specifies the transport type.
Type string `json:"type,omitempty"`
// --- STDIO Server Fields ---
Command string `json:"command,omitempty"`
Args []string `json:"args,omitempty"`
Env map[string]string `json:"env,omitempty"`
// --- HTTP/SSE Server Fields ---
URL string `json:"url,omitempty"`
Headers map[string]string `json:"headers,omitempty"`
// --- Roo-specific Fields ---
AlwaysAllow []string `json:"alwaysAllow,omitempty"`
Disabled bool `json:"disabled,omitempty"`
}
ServerConfig represents a Roo Code MCP server configuration.
Click to show internal directories.
Click to hide internal directories.