Documentation
¶
Overview ¶
Package agentsetup is the optional setup for coding agents: the MCP server registered with Claude Code and Codex, and the agent skill in their skill directories. It checks each item and applies the missing ones, for `setup`, `doctor` and the menu bar app.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Applicable ¶
Applicable reports whether any agent is installed.
func MCPConfig ¶
MCPConfig is the MCP server entry for clients configured by hand, in the common mcpServers shape, with the path agents should start it with and mcpFlags after `mcp`.
func Prompt ¶ added in v0.2.0
func Prompt() string
Prompt is the request a user pastes into a coding agent so it sets up the agents, adds the user's projects and checks they start.
func SharePrompt ¶ added in v0.2.0
func SharePrompt() string
SharePrompt is the request a user pastes into a coding agent so it sets up two computers for each other: Tailscale on both, sharing on the one that runs the projects, and pairing.
Types ¶
type Item ¶
type Item struct {
ID string `json:"id"`
Label string `json:"label"`
State State `json:"state"`
Applicable bool `json:"applicable"`
Command string `json:"command"`
// Detail explains a state that needs the user, such as a foreign file.
Detail string `json:"detail,omitempty"`
// contains filtered or unexported fields
}
Item is one setup step. Applicable is false when its agent is not installed for this account. Command is what applying it runs, or what to run by hand when it cannot be applied.
func Check ¶
Check returns every item, applicable or not, for a daemon on port with its config at cfgPath (the skill names both), registering the MCP server with its default arguments.
func CheckMCP ¶ added in v0.3.0
CheckMCP is Check with mcpFlags after `mcp` in a new MCP registration, such as a mode. An existing registration is recognized by its name whatever its arguments; one in another mode gets a Detail that says how to replace it.
type Result ¶
type Result struct {
ID string `json:"id"`
Label string `json:"label"`
OK bool `json:"ok"`
Changed bool `json:"changed"`
State State `json:"state"`
Error string `json:"error,omitempty"`
// Command is the manual command after a failure.
Command string `json:"command,omitempty"`
}
Result is the outcome of applying one item.