McpRemoteServerConfig<THeaders>
ts
type McpRemoteServerConfig<THeaders> = object;An MCP server reached over HTTP (Streamable HTTP or SSE).
Type Parameters
THeaders
THeaders = McpHeaders
Properties
name
ts
name: string;Unique per investigation; letters, digits, _ and -. Tools are exposed to the AI as <name>__<tool>.
type
ts
type: "http" | "sse";'http' for Streamable HTTP, 'sse' for the older SSE transport.
url
ts
url: string;Must not contain credentials; pass them in headers.
headers?
ts
optional headers?: THeaders;Sent with every request, e.g. Authorization; a function is called once per investigation.
allowedTools?
ts
optional allowedTools?: string[];Tools the AI may call. Omitted means every tool the server exposes. Not supported by cursor.
fetch?
ts
optional fetch?: typeof fetch;Custom fetch implementation for requests to this server. Ignored by cursor.