Documentation
¶
Overview ¶
Package mcp connects the CubePath MCP server to the AI agents on this machine. Each agent runs the OAuth authorization itself on first use, so no credential is ever written by cubecli.
Index ¶
Constants ¶
const DefaultURL = "https://mcp.cubepath.com/mcp"
DefaultURL is the production MCP endpoint.
const ServerName = "cubepath"
ServerName is the name the server is registered under in every agent.
Variables ¶
var Clients = []Client{ { ID: "claude", Name: "Claude Code", NextStep: "In Claude Code, run /mcp and choose cubepath to authorize it in the browser.", // contains filtered or unexported fields }, { ID: "codex", Name: "Codex", NextStep: "Run 'codex mcp login cubepath' to authorize it in the browser.", // contains filtered or unexported fields }, { ID: "gemini", Name: "Gemini CLI", NextStep: "In Gemini CLI, run /mcp auth cubepath to authorize it in the browser.", // contains filtered or unexported fields }, { ID: "cursor", Name: "Cursor", NextStep: "Reload Cursor; it opens the browser to authorize cubepath.", // contains filtered or unexported fields }, { ID: "vscode", Name: "VS Code", NextStep: "In VS Code, start the cubepath server from the MCP view; it opens the browser to authorize it.", // contains filtered or unexported fields }, }
Clients lists the supported agents.
Functions ¶
Types ¶
type Client ¶
type Client struct {
ID string // value of --agent
Name string
// NextStep tells the user how to finish the authorization in the agent.
NextStep string
// contains filtered or unexported fields
}
Client is an AI agent the MCP server can be added to.
func ClientByID ¶
ClientByID returns the client with the given --agent value.
func (Client) Configured ¶
Configured reports whether the CubePath server is already set up.