Documentation
¶
Overview ¶
Package setup owns local coding-client detection and MCP registration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AllClients = []Client{Codex, Claude}
AllClients lists supported adapters in deterministic application order.
Functions ¶
func CheckRegistration ¶
CheckRegistration reports whether the selected client has a GitContribute MCP entry without changing its configuration.
func ResolveNPMVersion ¶
ResolveNPMVersion returns a registry-safe package version for CLI installation and private runtime directory names. It removes one release-tag "v" prefix and maps empty or development versions to the explicit "latest" tag.
Types ¶
type Launcher ¶
Launcher is the exact process command stored in a coding client's MCP configuration.
func ResolveLauncher ¶
ResolveLauncher returns a durable absolute MCP command. The setup application must first install an ephemeral package-runner executable into a stable product-owned location and pass that path explicitly.
type Operation ¶
type Operation string
Operation identifies whether client-owned MCP entries are configured or removed.
type Options ¶
type Options struct {
Operation Operation
Clients []Client
All bool
DryRun bool
Home string
Executable string
}
Options controls coding-client MCP registration.
type Report ¶
type Report struct {
Operation Operation `json:"operation"`
DryRun bool `json:"dry_run"`
Launcher Launcher `json:"launcher"`
Results []Result `json:"results"`
}
Report contains the resolved launcher and ordered per-client effects.