fixture

command
v0.7.1 Latest Latest
Warning

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

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

Documentation

Overview

Command fixture runs the mcptest fixture MCP server over stdio.

It exists to be built by mcptest.BuildFixture and exec'd by this module's transport tests. It is not shipped, and nothing outside internal/ runs it.

Usage:

fixture [flags]

Flags (all off or empty by default — the bare command is a minimal server with the echo/slow/fail/big tools and nothing else):

-instructions string   server instructions returned at initialize
-prompts               expose the "greet" prompt
-resources             expose the static resource and the echo template
-mutate                expose the "mutate" tool (triggers tools/list_changed)
-crash                 expose the "crash" tool (exits immediately)
-crash-exit-code int   the status "crash" exits with (default 7)
-noise-bytes int       bytes of chatter to write to stderr at startup
-elicit-on-initialize  send an elicitation request once the client is initialized
-legacy-protocol       pin the session to protocol revisions <= mcptest.LegacyProtocolVersion

stdin and stdout are the MCP transport and carry nothing else. Diagnostics go to stderr.

Jump to

Keyboard shortcuts

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