MCPAPI Reference

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

LibTmux.Mcp.ServerInstructions

API reference · Markdown

class LibTmux.Mcp.ServerInstructions
classstatic [source]

What the client is told this server is for, before any tool is called.

Description#

A tool description says what one tool does. These instructions say when this server is the right one at all, which is the question a model answers first and cannot answer from a tool list. They carry the two things a tool description has no room for: what must never route here, and which of two overlapping tools to reach for.

The budget is real. Instructions are sent on every connection and sit in context for the whole conversation, so a paragraph added here is paid for by every call that follows.

Members

Compose

Compose ( policy : ServerPolicy , callerPaneId : string? ) → string
methodstatic [source]

Composes the instructions for a running server.

Parameters
  • policy ( ServerPolicy ) – What this server will do.

  • callerPaneId ( string? ) – The pane this server runs in, when it runs in one.

Returns

The instructions.

Raises
  • InvalidOperationException – The fixed guidance no longer fits the budget. That is a bug in this file rather than a condition to degrade around: silently dropping a segment would leave a model without the rule it was dropped from.

Esc

Type to search.