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?
optionalauth?:object
Defined in: packages/mcp/src/types.ts:99
Authentication configuration
token?
optionaltoken?:string
Bearer token or basic auth password
type
type:
"bearer"|"basic"
username?
optionalusername?:string
Username for basic auth
headers?
optionalheaders?: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