local-stdio-server

command
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Mock MCP Server for testing local process (stdio) MCP server support. This server communicates via stdin/stdout using JSON-RPC.

Build:

go build -o mock-stdio-server .

The server reads JSON-RPC requests from stdin (one per line) and writes JSON-RPC responses to stdout. Each request/response is a single line of JSON.

Supports (legacy handshake mode, the default):

  • initialize - MCP handshake
  • notifications/initialized - Notification acknowledgment
  • tools/list - Returns sample tools
  • tools/call - Execute tools (echo, add, get_time)
  • ping - Health check

With -protocol 2026-07-28 the server speaks the stateless generation instead: server/discover replaces the handshake and ping, results carry resultType and cache metadata, and the removed legacy methods answer -32601 (mirroring mock-mcp-server's -protocol flag).

Jump to

Keyboard shortcuts

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