Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientCmd = &cobra.Command{
Use: "client",
Short: "AgentAPI Client CLI",
Long: "Command line client for interacting with AgentAPI endpoints",
}
View Source
var HelpersCmd = &cobra.Command{ Use: "helpers", Short: "Helper utilities for agentapi-proxy", Long: "Collection of helper utilities and tools for working with agentapi-proxy", Run: func(cmd *cobra.Command, args []string) { fmt.Println("Available helpers:") fmt.Println(" setup-claude-code - Setup Claude Code configuration") fmt.Println(" generate-token - Generate API keys for agentapi-proxy authentication") fmt.Println(" init - Initialize Claude configuration (alias for setup-claude-code)") fmt.Println(" setup-gh - Setup GitHub authentication using gh CLI") fmt.Println(" send-notification - Send push notifications to registered subscriptions") fmt.Println("Use 'agentapi-proxy helpers --help' for more information about available subcommands.") }, }
View Source
var MCPCmd = &cobra.Command{
Use: "mcp",
Short: "Model Context Protocol Server",
Long: "Start an MCP server that exposes agentapi-proxy functionality",
Run: runMCPServer,
}
View Source
var ServerCmd = &cobra.Command{
Use: "server",
Short: "Start the AgentAPI Proxy Server",
Long: "Start the reverse proxy server for AgentAPI that routes requests based on configuration",
Run: runProxy,
}
Functions ¶
func RunAddMcpServers ¶ added in v1.41.3
RunAddMcpServers is exported for use in other packages
func RunInitGitHubRepo ¶ added in v1.41.3
RunInitGitHubRepo is exported for use in other packages
func RunSetupClaudeCode ¶ added in v1.41.3
func RunSetupClaudeCode() error
RunSetupClaudeCode is exported for use in other packages
Types ¶
type APIKeysFile ¶ added in v0.14.0
type AgentAPIServer ¶ added in v1.0.0
type AgentAPIServer struct {
// contains filtered or unexported fields
}
type GitHubAppConfig ¶ added in v0.5.0
type MCPServerConfig ¶ added in v1.9.1
type MCPServerConfig struct {
ID string `json:"id"`
Name string `json:"name"`
Endpoint string `json:"endpoint"`
Enabled bool `json:"enabled"`
Transport string `json:"transport"`
Command string `json:"command,omitempty"`
Args []string `json:"args,omitempty"`
Env map[string]string `json:"env,omitempty"`
Timeout int `json:"timeout,omitempty"`
}
MCP Server configuration structure
Click to show internal directories.
Click to hide internal directories.