Documentation
¶
Overview ¶
Package mcpserver exposes the app use cases as MCP tools and installs the server entry into the configuration of an MCP harness.
Every tool returns the same JSON the CLI prints, and a failure is a tool error whose text is the error envelope. The envelope carries no secret: the app errors are the ones the transport already redacts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstallResult ¶
type InstallResult struct {
// Target is the harness name.
Target string `json:"target"`
// Path is the configuration file that was written.
Path string `json:"path"`
// Status is installed, updated or unchanged.
Status string `json:"status"`
}
InstallResult is the outcome of installing the server entry into a harness configuration.
func Install ¶
func Install(target, command string, args []string, home string, getenv func(string) string) (InstallResult, error)
Install writes the MCP server entry of the harness target into its configuration, preserving every other entry.
command is the executable a harness must run and args its arguments. home is the user's home directory and getenv reads the environment, so the caller decides where the harness keeps its files. A target this function does not know is a usage error.