cmdmcp

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 25 Imported by: ? modules, 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, and the skills; the reading ones only when readOnly.

func Instructions

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 keeps the essentials and points to the skills for each task (#300), so it stays short at every request and the tool descriptions one sentence (#225). The writing tip is left out when readOnly, whose tools cannot write.

func Options

func Options(readOnly bool) *mcp.ServerOptions

Options are the server's: the instructions, and the Skills over MCP extension that addSkills serves.

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.

Directories

Path Synopsis
Package skills holds the skills shipped with Tide, one SKILL.md per folder in the Agent Skills format: how to use the tools for a task, served to agents by the Skills over MCP extension (#300).
Package skills holds the skills shipped with Tide, one SKILL.md per folder in the Agent Skills format: how to use the tools for a task, served to agents by the Skills over MCP extension (#300).

Jump to

Keyboard shortcuts

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