Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPHandler ¶ added in v0.2.6
func NewHTTPHandler(options HTTPOptions) (http.Handler, error)
NewHTTPHandler is the embeddable form used by tests and custom servers.
func Serve ¶
Serve runs until stdin reaches EOF, the context is cancelled between messages, or a fatal framing/write error occurs. It never writes diagnostics or logs to the protocol output.
func ServeStreamableHTTP ¶ added in v0.2.6
func ServeStreamableHTTP(ctx context.Context, options HTTPOptions) error
ServeStreamableHTTP exposes the read-only MCP tools over JSON responses on MCP's Streamable HTTP transport. It intentionally does not offer browser CORS or legacy SSE GET streams; clients use POST plus Mcp-Session-Id.
Types ¶
type HTTPOptions ¶ added in v0.2.6
Click to show internal directories.
Click to hide internal directories.