Skip to content
providerkit
GitHub

McpServerOptions

Defined in: agents/src/mcp.ts:42

Where the server is. Streamable HTTP only.

optional fetch?: (url, init?) => Promise<Response>;

Defined in: agents/src/mcp.ts:51

Replaces the global fetch: a proxy, a service binding, a test.

Parameter Type
url string | URL
init? RequestInit

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.


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.