McpServerOptions
Defined in: agents/src/mcp.ts:42
Where the server is. Streamable HTTP only.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”fetch?
Section titled “fetch?”optional fetch?: (url, init?) => Promise<Response>;Defined in: agents/src/mcp.ts:51
Replaces the global fetch: a proxy, a service binding, a test.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
url |
string | URL |
init? |
RequestInit |
Returns
Section titled “Returns”Promise<Response>
optional key?: string;Defined in: agents/src/mcp.ts:49
Sent as Authorization: Bearer <key>, with surrounding spaces removed before sending and
redacting. Tool metadata containing the key is refused.
timeoutMs?
Section titled “timeoutMs?”optional timeoutMs?: number;Defined in: agents/src/mcp.ts:53
How long one call may take, connecting included, in ms. Default 60000.
url: string;Defined in: agents/src/mcp.ts:44
The server’s Streamable HTTP endpoint, such as https://docs.example.com/mcp.