Documentation / @interstellar-tools/mcp / HttpServerOptionsInterface
Interface: HttpServerOptionsInterface
Defined in: http.ts:12
Properties
allowedHosts?
ts
optional allowedHosts?: string[];Defined in: http.ts:25
Host names a request's Host header may name. Defaults to the loopback names when bound to loopback, which blocks DNS rebinding: a web page that points its own domain at 127.0.0.1 still sends that domain as Host. Required to restrict hosts when binding to another interface.
host?
ts
optional host?: string;Defined in: http.ts:16
Interface to bind to. Defaults to loopback only.
path?
ts
optional path?: string;Defined in: http.ts:18
Path that serves MCP requests.
port
ts
port: number;Defined in: http.ts:14
Port to listen on. Use 0 for a random free port.