cmdmcp

package
v1.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 23 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func Instructions(readOnly bool) string

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.

func Serve

func Serve(cobra *cobra.Command, _ []string) error

Serve speaks MCP on stdin and stdout: nothing else may be printed there.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL