Documentation
¶
Index ¶
- Constants
- Variables
- func RunAgentSelector() (string, error)
- type Agent
- type AgentSelectorModel
- type ClaudePermissions
- type ClaudeSettingsLocal
- type ConfigurableAgent
- type ConfigureClaude
- type ConfigureCodex
- type ConfigureCursor
- type ConfigureGoose
- type ConfigureQ
- type MCPServer
- type MCPServersConfig
Constants ¶
View Source
const ContainerUseBinary = "container-use"
Variables ¶
View Source
var AgentCmd = &cobra.Command{ Use: "agent [agent]", Short: "Configure MCP server for different agents", Long: `Setup the container-use MCP server according to the specified agent including Claude Code, Goose, Cursor, and others.`, RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { return interactiveConfiguration() } agent, err := selectAgent(args[0]) if err != nil { return err } return configureAgent(agent) }, }
Functions ¶
func RunAgentSelector ¶
RunAgentSelector runs the interactive agent selector and returns the selected agent key
Types ¶
type AgentSelectorModel ¶
type AgentSelectorModel struct {
// contains filtered or unexported fields
}
AgentSelectorModel represents the bubbletea model for agent selection
func InitialModel ¶
func InitialModel() AgentSelectorModel
InitialModel creates the initial model for agent selection
func (AgentSelectorModel) Init ¶
func (m AgentSelectorModel) Init() tea.Cmd
Init initializes the model
func (AgentSelectorModel) View ¶
func (m AgentSelectorModel) View() string
View renders the interface
type ClaudePermissions ¶
type ClaudeSettingsLocal ¶
type ClaudeSettingsLocal struct {
Permissions *ClaudePermissions `json:"permissions,omitempty"`
Env map[string]string `json:"env,omitempty"`
}
type ConfigurableAgent ¶
type ConfigurableAgent interface {
// contains filtered or unexported methods
}
type ConfigureClaude ¶
func NewConfigureClaude ¶
func NewConfigureClaude() *ConfigureClaude
type ConfigureCodex ¶
func NewConfigureCodex ¶
func NewConfigureCodex() *ConfigureCodex
type ConfigureCursor ¶
func NewConfigureCursor ¶
func NewConfigureCursor() *ConfigureCursor
type ConfigureGoose ¶
func NewConfigureGoose ¶
func NewConfigureGoose() *ConfigureGoose
type ConfigureQ ¶
func NewConfigureQ ¶
func NewConfigureQ() *ConfigureQ
type MCPServer ¶
type MCPServer struct {
Command string `json:"command"`
Args []string `json:"args"`
Env map[string]string `json:"env,omitempty"`
Timeout *int `json:"timeout,omitempty"`
Disabled *bool `json:"disabled,omitempty"`
AutoApprove []string `json:"autoApprove,omitempty"`
AlwaysAllow []string `json:"alwaysAllow,omitempty"`
WorkingDir *string `json:"working_directory,omitempty"`
StartOnLaunch *bool `json:"start_on_launch,omitempty"`
}
type MCPServersConfig ¶
Click to show internal directories.
Click to hide internal directories.