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 Handler ¶
Handler serves the tools over streamable HTTP to an agent that cannot run tide mcp where it runs (the Claude app calls from Anthropic's cloud): each request acts for the account of its API token, "Authorization: Bearer notes_…", the tools calling api in process with it; an OAuth access token is one too. Without a valid API token, 401 with where to sign in (oauth.Challenge): a session token is refused too, only an API token can be revoked alone and is kept off the account's routes. A read-only token gets the reading tools only.
Types ¶
This section is empty.