configure

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand added in v0.4.0

func NewCommand(deps cliruntime.Deps) *cobra.Command

Types

type ClaudeCodeConfigurer

type ClaudeCodeConfigurer struct{}

ClaudeCodeConfigurer handles Claude Code MCP configuration

func (*ClaudeCodeConfigurer) CreateConfig

func (c *ClaudeCodeConfigurer) CreateConfig(opts CreateOptions, configPath string) (any, error)

func (*ClaudeCodeConfigurer) GetClientName

func (c *ClaudeCodeConfigurer) GetClientName() string

func (*ClaudeCodeConfigurer) GetConfigPath

func (c *ClaudeCodeConfigurer) GetConfigPath() (string, error)

type ClientConfigurer

type ClientConfigurer interface {
	// GetConfigPath returns the path where the config file should be written
	GetConfigPath() (string, error)

	// CreateConfig creates or updates the MCP configuration for the client.
	// It reads any existing config at configPath, replaces only the arctl
	// server entry, and returns the updated config with all other content
	// preserved to avoid breaking existing configurations.
	CreateConfig(opts CreateOptions, configPath string) (any, error)

	// GetClientName returns the display name of the client
	GetClientName() string
}

ClientConfigurer defines the interface for client-specific MCP configuration

type CreateOptions added in v0.4.0

type CreateOptions struct {
	// URL is the MCP server endpoint written into the client config.
	URL string
	// TokenEnv, when set, is the name of the environment variable holding the
	// bearer token. It is written into the config as a client-side reference
	// expanded by the client at connect time.
	TokenEnv string
}

CreateOptions carries the inputs for building a client's arctl MCP server entry.

type CursorConfigurer

type CursorConfigurer struct{}

CursorConfigurer handles Cursor MCP configuration

func (*CursorConfigurer) CreateConfig

func (c *CursorConfigurer) CreateConfig(opts CreateOptions, configPath string) (any, error)

func (*CursorConfigurer) GetClientName

func (c *CursorConfigurer) GetClientName() string

func (*CursorConfigurer) GetConfigPath

func (c *CursorConfigurer) GetConfigPath() (string, error)

type KiroConfigurer added in v0.4.0

type KiroConfigurer struct{}

KiroConfigurer handles Kiro MCP configuration

func (*KiroConfigurer) CreateConfig added in v0.4.0

func (c *KiroConfigurer) CreateConfig(opts CreateOptions, configPath string) (any, error)

func (*KiroConfigurer) GetClientName added in v0.4.0

func (c *KiroConfigurer) GetClientName() string

func (*KiroConfigurer) GetConfigPath added in v0.4.0

func (c *KiroConfigurer) GetConfigPath() (string, error)

type VSCodeConfigurer

type VSCodeConfigurer struct{}

VSCodeConfigurer handles VS Code MCP configuration

func (*VSCodeConfigurer) CreateConfig

func (v *VSCodeConfigurer) CreateConfig(opts CreateOptions, configPath string) (any, error)

func (*VSCodeConfigurer) GetClientName

func (v *VSCodeConfigurer) GetClientName() string

func (*VSCodeConfigurer) GetConfigPath

func (v *VSCodeConfigurer) GetConfigPath() (string, error)

Jump to

Keyboard shortcuts

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