cmd

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 37 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRootCmd

func BuildRootCmd() (*cobra.Command, error)

BuildRootCmd exposes the root command for tools like doc generators.

func Execute

func Execute(ctx context.Context) error

func InstallMCPForClient

func InstallMCPForClient(opts InstallOptions) error

InstallMCPForClient installs an MCP server configuration for the specified client. This is a generic, configurable function exported for use by external projects via pkg/mcpinstall. Required options: ServerName, Command, Args must all be provided.

Types

type ApiKeyCreateOutput

type ApiKeyCreateOutput struct {
	ApiKey string `json:"api_key"`
}

ApiKeyCreateOutput represents the output format for the api-key create command.

type ApiKeyOutput

type ApiKeyOutput struct {
	Prefix    string `json:"prefix"`
	Name      string `json:"name"`
	CreatedAt string `json:"created_at"`
}

ApiKeyOutput represents the output format for a single API key.

type ClientInfo

type ClientInfo struct {
	// Name is the human-readable display name (e.g., "Claude Code", "Cursor")
	Name string
	// ClientName is the identifier to use in InstallOptions.ClientName (e.g., "claude-code", "cursor")
	ClientName string
}

ClientInfo contains information about a supported MCP client.

func SupportedClients

func SupportedClients() []ClientInfo

SupportedClients returns information about all supported MCP clients.

type ClientOption

type ClientOption struct {
	Name       string // Display name
	ClientName string // Client name to pass to installMCPForClient
}

ClientOption represents a client choice for interactive selection

type DatabaseCreateOutput

type DatabaseCreateOutput struct {
	Name       string           `json:"name"`
	ID         string           `json:"id"`
	Size       string           `json:"size,omitempty"`
	Connection string           `json:"connection"`
	Type       api.DatabaseType `json:"-"`
}

DatabaseCreateOutput represents the output format for the create command

type DatabaseForkOutput

type DatabaseForkOutput struct {
	SourceName string           `json:"source_name"`
	Name       string           `json:"name"`
	ID         string           `json:"id"`
	Size       string           `json:"size,omitempty"`
	Connection string           `json:"connection"`
	Type       api.DatabaseType `json:"-"`
}

DatabaseForkOutput represents the output format for the fork command

type DatabaseListItem

type DatabaseListItem struct {
	ID         string             `json:"id"`
	Name       string             `json:"name"`
	Type       api.DatabaseType   `json:"type"`
	Size       *api.DatabaseSize  `json:"size,omitempty"`
	Status     api.DatabaseStatus `json:"status"`
	StorageMib *int               `json:"storage_mib"`
}

DatabaseListItem represents a database in the list command output

type InstallOptions

type InstallOptions struct {
	// ClientName is the name of the client to configure (required)
	ClientName string
	// ServerName is the name to register the MCP server as (required)
	ServerName string
	// Command is the path to the MCP server binary (required)
	Command string
	// Args are the arguments to pass to the MCP server binary (required)
	Args []string
	// CreateBackup creates a backup of existing config files before modification
	CreateBackup bool
	// CustomConfigPath overrides the default config file location
	CustomConfigPath string
}

InstallOptions configures the MCP server installation behavior

type MCPClient

type MCPClient string

MCPClient represents our internal client types

const (
	ClaudeCode  MCPClient = "claude-code"
	Cursor      MCPClient = "cursor" // Both the IDE and the CLI
	Windsurf    MCPClient = "windsurf"
	Codex       MCPClient = "codex"
	Gemini      MCPClient = "gemini"
	VSCode      MCPClient = "vscode"
	Antigravity MCPClient = "antigravity"
	KiroCLI     MCPClient = "kiro-cli"
)

type MCPServerConfig

type MCPServerConfig struct {
	Command string   `json:"command"`
	Args    []string `json:"args"`
}

MCPServerConfig represents the MCP server configuration

type PaymentMethodOutput

type PaymentMethodOutput struct {
	ID              string `json:"id"`
	Brand           string `json:"brand"`
	Last4           string `json:"last4"`
	ExpMonth        int    `json:"exp_month"`
	ExpYear         int    `json:"exp_year"`
	Primary         bool   `json:"is_primary"`
	PendingDeletion bool   `json:"pending_deletion"`
}

PaymentMethodOutput represents the output format for a payment method

type VersionOutput

type VersionOutput struct {
	Version   string `json:"version"`
	BuildTime string `json:"build_time"`
	GitCommit string `json:"git_commit"`
	GoVersion string `json:"go_version"`
	Platform  string `json:"platform"`
}

Jump to

Keyboard shortcuts

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