mcptest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mcptest drives a server over the SDK's in-memory transport for tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSession

func NewSession(tb testing.TB, s *mcp.Server) *mcp.ClientSession

NewSession connects an in-memory client to s, advertising no elicitation.

func NewSessionWithElicitation

func NewSessionWithElicitation(
	tb testing.TB,
	s *mcp.Server,
	handler func(
		context.Context, *mcp.ElicitRequest,
	) (*mcp.ElicitResult, error),
) *mcp.ClientSession

NewSessionWithElicitation is like NewSession but wires an elicit handler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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