Skip to main content

Interface: HttpTransportConfig

Defined in: packages/mcp/src/types.ts:92

HTTP transport configuration for remote MCP servers

Connects to an MCP server over HTTP using Streamable HTTP or SSE transport.

Example

const transport: HttpTransportConfig = {
type: 'http',
url: 'https://mcp.example.com/v1',
headers: { 'X-API-Key': 'secret' }
};

Properties

auth?

optional auth?: object

Defined in: packages/mcp/src/types.ts:99

Authentication configuration

token?

optional token?: string

Bearer token or basic auth password

type

type: "bearer" | "basic"

username?

optional username?: string

Username for basic auth


headers?

optional headers?: Record<string, string>

Defined in: packages/mcp/src/types.ts:97

Custom headers to send with requests


type

type: "http" | "sse"

Defined in: packages/mcp/src/types.ts:93


url

url: string

Defined in: packages/mcp/src/types.ts:95

Server URL