cmdmcp

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 8 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 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

func Instructions(readOnly bool) string

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.

func NewServer

func NewServer(client *apiclient.ClientWithResponses, readOnly bool, version string) *mcp.Server

NewServer is the MCP server of the tools acting through client, the reading ones only when readOnly.

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