Documentation
¶
Overview ¶
Package httpapi provides the HTTP surface of vellum: health endpoint, the /mcp mount, and later the JSON REST API for the SPA (/api/*).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶ added in v0.1.0
type Options struct {
// MCPHandler, when set, is mounted at /mcp behind the origin check.
MCPHandler http.Handler
// AllowedOrigins are the browser origins allowed to call /mcp.
// Requests without an Origin header (CLI clients) always pass.
AllowedOrigins []string
// Auth, when set, mounts the OAuth endpoints and guards /mcp with
// bearer verification. Nil = auth disabled, everything open.
Auth *auth.Provider
// CORSOrigins get CORS response headers (browser clients).
CORSOrigins []string
}
Options configure the router.
Click to show internal directories.
Click to hide internal directories.