mcpfixture

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mcpfixture is a stdio MCP server for tests that drive a real agent: a tracker with search_issues (returns ABC-12 and ABC-13) and get_issue (ABC-99 fails). An agent starts the test binary itself as the server; see IsServer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Args

func Args(test string) []string

Args are the arguments that start the test binary as the server, given the name of the test function that calls Serve.

func GooseHome

func GooseHome(home, test, extra string) error

GooseHome writes a Goose configuration under home with the test binary as the extension tracker (started with Args(test)) and Goose in approve mode, which a bridge must override. Extra YAML is appended at top level.

func IsServer

func IsServer() bool

IsServer reports whether this process was started with Args.

func Serve

func Serve(in io.Reader, out io.Writer)

Serve answers MCP requests on in until it closes. Unknown methods, including server/discover, get -32601, so a client falls back to initialize.

Types

This section is empty.

Jump to

Keyboard shortcuts

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