Documentation
¶
Overview ¶
Package mcp installs a CDP browser driver and generates the MCP client config that points it at cuttle's browser for a given context and profile seed.
Index ¶
Constants ¶
const DefaultDriver = "browser-use"
DefaultDriver is used when `cuttle mcp` is invoked without a driver argument.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigPath ¶
DefaultConfigPath is where a driver's MCP config is written when no explicit path is given: $XDG_CONFIG_HOME/cuttle/mcp/<driver>.json.
func EnsureInstalled ¶
EnsureInstalled installs the driver via its install command when it is not already on PATH. It is a no-op when the driver is present.
func WriteConfig ¶
WriteConfig writes the rendered config to path, creating parent dirs.
Types ¶
type Config ¶
type Config struct {
MCPServers map[string]serverConfig `json:"mcpServers"`
}
Config is the MCP client config: a map of server name to its launch spec.
func BuildConfig ¶
BuildConfig produces the MCP config for a driver pointed at cdpURL (which already carries any ?fingerprint=<seed>).