testserver

command
v0.2.27 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

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