Documentation
¶
Overview ¶
testserver is a minimal MCP server for manual testing and conformance validation. It registers three tools (echo, add, fail) and serves MCP transports on :8787.
By default, serves SSE transport. Set STREAMABLE=1 for Streamable HTTP, BOTH=1 for both transports simultaneously, or STDIO=1 for stdio transport (Content-Length framed JSON-RPC over stdin/stdout).
Usage:
go run ./cmd/testserver STREAMABLE=1 go run ./cmd/testserver STDIO=1 go run ./cmd/testserver
Click to show internal directories.
Click to hide internal directories.