Documentation
¶
Overview ¶
Package mcp provides a stateless streamable-HTTP MCP server for integration tests. It exposes the required provider surface through the official MCP SDK.
Index ¶
Constants ¶
const LegacyPort = 3014
LegacyPort is the container port used by the testbench for the handshake-era server.
const Path = "/mcp"
Path is the MCP endpoint path.
const Port = 3009
Port is the container port used by the testbench.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LegacyService ¶
type LegacyService struct {
// contains filtered or unexported fields
}
LegacyService is a handshake-era MCP server: stateful, and without server/discover.
func NewLegacy ¶
func NewLegacy() *LegacyService
NewLegacy builds an MCP service that behaves as a server predating 2026-07-28.
func (*LegacyService) Handler ¶
func (s *LegacyService) Handler() http.Handler
Handler serves the partitioned routes.
func (*LegacyService) Name ¶
func (s *LegacyService) Name() string
Name returns the service registration name.
func (*LegacyService) PartitionKey ¶
func (s *LegacyService) PartitionKey() string
PartitionKey returns the partitioning strategy used by this stateful service.
func (*LegacyService) Port ¶
func (s *LegacyService) Port() int
Port returns the service's listening port.
func (*LegacyService) Stateful ¶
func (s *LegacyService) Stateful() bool
Stateful reports whether the service keeps request-specific state. It does, and that is the point of it: a session opened by one request is read by the next.