Documentation
¶
Index ¶
- func NewHTTPHandler(document *Document, options Options) (http.Handler, error)
- func NewServer(document *Document, options Options) (*mcp.Server, error)
- func RunHTTP(ctx context.Context, document *Document, options Options, addr string) error
- func RunStdio(ctx context.Context, document *Document, options Options) error
- type Document
- type LoadOptions
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPHandler ¶ added in v0.8.0
NewHTTPHandler creates a bounded, origin-protected MCP Streamable HTTP handler for document. Callers that expose it to an untrusted network must wrap the returned handler with authentication.
Types ¶
type Document ¶
func LoadFileWithOptions ¶ added in v0.11.0
func LoadFileWithOptions(path string, options LoadOptions) (*Document, error)
LoadFileWithOptions loads an OpenAPI document with an explicit reference policy.
type LoadOptions ¶ added in v0.11.0
type LoadOptions = openapi.LoadOptions
Click to show internal directories.
Click to hide internal directories.