Connect Mcp Server

Connect to an MCP server with support for OAuth via SSE. Returns a stream of events handling authorization state and exchange if OAuth is required.

Headers

AuthorizationstringRequired

Header authentication of the form Bearer <token>

Request

This endpoint expects an object.
StdioServerConfigobjectRequired
OR
SSEServerConfigobjectRequired
OR
StreamableHTTPServerConfigobjectRequired

Response

Successful response

Errors