Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMCPServer ¶
NewMCPServer returns the raw MCPServer with tools registered, for use when wrapping with custom middleware (e.g. OAuth). The serverCtx controls the lifetime of background goroutines; it should be cancelled during server shutdown.
func NewServer ¶
NewServer returns a StreamableHTTPServer that serves MCP at /mcp. The serverCtx controls the lifetime of background goroutines; it should be cancelled during server shutdown.
func RegisterTools ¶
RegisterTools registers all MCP tools on the given server. The serverCtx controls the lifetime of background drain goroutines spawned by non-blocking prompt submissions; it should be cancelled during server shutdown to ensure goroutines are not orphaned.
Types ¶
This section is empty.