McpHttpUpstreamSettings
@tsed/platform-mcp
Usage
typescript
import { McpHttpUpstreamSettings } from "@tsed/platform-mcp";See /packages/platform/platform-mcp/src/common/interfaces/PlatformMcpUpstreamSettings.ts.
Overview
ts
interface McpHttpUpstreamSettings extends McpUpstreamBaseSettings {
type: "http" | "sse";
url: string;
headers?: Record<string, string>;
requestInit?: RequestInit;
}Description
Upstream reached over Streamable HTTP (http) or legacy HTTP+SSE (sse).
type
ts
type: "http" | "sse";url
ts
url: string;headers
ts
headers?: Record<string, string>;Headers sent with every upstream request. Values support the ${OAUTH_TOKEN}, ${OAUTH_CLIENT_ID}, ${OAUTH_SCOPES} and ${OAUTH_SUB} placeholders, replaced with the verified identity of the caller.
requestInit
ts
requestInit?: RequestInit;Extra fetch options sent with every upstream request.