Documentation
¶
Overview ¶
Package cmdmcp serves the applications to an agent over MCP, a client of the API like the rest of the CLI: the rules (statuses, dates, batches) are those of the server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTools ¶
func AddTools(server *mcp.Server, client *apiclient.ClientWithResponses, readOnly bool)
AddTools gives the server the tools acting through client; the reading ones only when readOnly. Each tool call is one request to the API, so a batch is one transaction.
func Instructions ¶
Instructions tells an agent the cheap way through the applications, which its client puts in its system prompt. It holds the recipes once, so the tool descriptions stay one sentence. The writing recipes are left out when readOnly, whose tools cannot write.
Types ¶
This section is empty.