Skip to main content

Module mcp

Module mcp 

Source
Expand description

optimization-mcp: a Model Context Protocol server over one node root.

The server speaks MCP over stdio, one JSON-RPC message per line. It is dual-era: requests that carry io.modelcontextprotocol/protocolVersion in _meta are served statelessly under revision 2026-07-28, with the Tasks extension (io.modelcontextprotocol/tasks); an initialize request selects a legacy revision (2025-11-25 and earlier) for the process. Every tool drives the optimization-run command line, the runner’s documented interface, so the runner’s validation, idempotency, admission and recovery rules apply unchanged. The server registers no workers and initializes no node: that stays with the person who owns the node.

See the guide’s section Agents and MCP for the tools and their mapping onto the runner.

Structs§

Ctx
One request: its era and whether it may be cancelled or report progress.
Permit
One of the MAX_VALIDATIONS validation places, given back on drop.
Server
The MCP server over one node root.

Enums§

Launch
How submit_job starts jobs (--launch).
Reply
The answer to one request.

Functions§

main
The optimization-mcp binary: parses its options and serves MCP on standard input and output until the input ends.