Documentation
¶
Overview ¶
Package servertest provides test helpers for the server package. It isolates net/http/httptest so production binaries do not link it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestServer ¶
NewTestServer creates a test SSE server. Replaces server.NewTestServer.
func NewTestStreamableHTTPServer ¶
func NewTestStreamableHTTPServer(srv *server.MCPServer, opts ...server.StreamableHTTPOption) *httptest.Server
NewTestStreamableHTTPServer creates a test Streamable HTTP server. Replaces server.NewTestStreamableHTTPServer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.