cli

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRootDir

func GetRootDir() string

GetRootDir returns the project root directory.

func NewInitCmd

func NewInitCmd() *cobra.Command

NewInitCmd creates the ctx init command.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates the root ctx command.

Types

type BrowserLoginResult

type BrowserLoginResult struct {
	Token string
	Name  string
	Email string
}

BrowserLoginResult is what the loopback callback hands back when the dashboard finishes minting a PAT. Name and Email are populated from the dashboard's authenticated session (Google identity) and may be empty if that information wasn't available.

type MCPError

type MCPError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

MCPError is a JSON-RPC 2.0 error object.

type MCPRequest

type MCPRequest struct {
	JSONRPC string          `json:"jsonrpc"`
	ID      interface{}     `json:"id"`
	Method  string          `json:"method"`
	Params  json.RawMessage `json:"params,omitempty"`
}

MCPRequest is a JSON-RPC 2.0 request.

type MCPResponse

type MCPResponse struct {
	JSONRPC string      `json:"jsonrpc"`
	ID      interface{} `json:"id"`
	Result  interface{} `json:"result,omitempty"`
	Error   *MCPError   `json:"error,omitempty"`
}

MCPResponse is a JSON-RPC 2.0 response.

Directories

Path Synopsis
Package agentwire wires the Contexo MCP server (`ctx mcp`) into the configuration of the AI coding agents that support MCP — Claude Code, Cursor, and Codex.
Package agentwire wires the Contexo MCP server (`ctx mcp`) into the configuration of the AI coding agents that support MCP — Claude Code, Cursor, and Codex.

Jump to

Keyboard shortcuts

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