mcp

package
v1.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const DefaultURL = "https://mcp.cubepath.com/mcp"

DefaultURL is the production MCP endpoint.

View Source
const ServerName = "cubepath"

ServerName is the name the server is registered under in every agent.

Variables

View Source
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

func ResolveURL

func ResolveURL(ctx context.Context, apiURL string) string

ResolveURL returns the MCP endpoint that belongs to the API at apiURL, read from its protected resource metadata, or DefaultURL.

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

func ClientByID(id string) (Client, bool)

ClientByID returns the client with the given --agent value.

func Detected

func Detected() []Client

Detected returns the clients installed on this machine.

func (Client) Configured

func (c Client) Configured(url string) (bool, error)

Configured reports whether the CubePath server is already set up.

func (Client) Detected

func (c Client) Detected() bool

Detected reports whether the agent seems to be installed.

func (Client) Install

func (c Client) Install(ctx context.Context, url string) error

Install adds the CubePath server to the agent.

func (Client) Uninstall

func (c Client) Uninstall(ctx context.Context, url string) error

Uninstall removes the CubePath server from the agent.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL