Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
New builds an HTTP server that routes connect RPC requests under rpcPath to rpcHandler and serves the embedded React SPA for everything else. allowedHosts is the set of Host-header hostnames (no port) accepted for both request admission and CORS — the DNS-rebinding / cross-origin defense.
func (*Server) SetMCPHandler ¶ added in v1.8.0
SetMCPHandler mounts an MCP handler at /mcp (in-process). It is served behind the same Host-header allowlist and security middleware as everything else, plus an Origin guard, and without any permissive CORS.
Click to show internal directories.
Click to hide internal directories.