Documentation
¶
Overview ¶
Package mcpserver exposes exponential over the Model Context Protocol so AI agents can manage issues with structured tool calls instead of shelling out to the CLI. Tool handlers are thin adapters: every mutation goes through the same internal/exponential Client methods the CLI uses, so business logic is not duplicated across transports.
Index ¶
Constants ¶
const EnvAgentIdentity = "XPO_AGENT_IDENTITY"
EnvAgentIdentity is the env var consulted first to determine the calling agent's identity. Format: "Name <email>" or any free-form string.
Variables ¶
This section is empty.
Functions ¶
func RegisterTools ¶
func RegisterTools(srv *mcp.Server, cfg *config.Config, httpReq *http.Request, onEvent func(eventType, issueID string))
RegisterTools registers all xpo MCP tools on the given server. When httpReq is non-nil (HTTP transport), the authenticated user identity from the request context is used for event attribution.
Types ¶
This section is empty.