mcptest

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package mcptest builds the stdio MCP test server and returns a tool/mcp provider for smoke tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(t *testing.T) (agentkit.ToolProvider, string)

NewProvider wires tool/mcp against a temp mcp.json that launches the test stdio server. The returned root is the MCP server's allowed filesystem root.

func ServerBinaryAndRoot

func ServerBinaryAndRoot(t *testing.T) (bin string, root string)

ServerBinaryAndRoot returns the built test MCP server binary and a fresh allowed root directory.

func ToolBySuffix

func ToolBySuffix(t *testing.T, tools []agentkit.Tool, suffix string) agentkit.Tool

ToolBySuffix returns the first tool whose name ends with suffix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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