Documentation
¶
Overview ¶
Package cmdmcp serves the account's notes to an agent over MCP, a client of the API like the rest of the CLI: the rules (titles, tags, links, trash, encryption) 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, for the account of its session; the reading ones only when readOnly.
func Instructions ¶ added in v1.4.0
Instructions tells an agent the cheap way through a big account, which its client puts in its system prompt: in the benchmark of #198, reading whole notes and rewriting them to tag them made most of the cost. It holds the recipes once, so the tool descriptions stay one sentence (#225). The writing tips are left out when readOnly, whose tools cannot write.
Types ¶
This section is empty.