create_mcp_integration
Registers an MCP integration by connecting an external server URL to Portkey, returning the new integration ID and slug. Supports HTTP and SSE transports with authentication options.
Instructions
Create an MCP integration from an external server URL. Registers the Portkey-side connection and returns the new id and slug; if auth_type is headers, custom_headers are required, and you usually follow with create_mcp_server and capability updates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the MCP integration | |
| url | Yes | URL endpoint of the MCP server to integrate | |
| auth_type | Yes | Authentication type: 'none', 'headers' (custom headers), or 'oauth_auto' (OAuth) | |
| transport | Yes | MCP transport protocol: 'http' (streamable HTTP) or 'sse' (server-sent events) | |
| slug | No | Custom slug. Auto-generated if omitted | |
| description | No | Description of the MCP integration | |
| custom_headers | No | Custom headers for authentication (e.g. { "Authorization": "Bearer xxx" }). Sent via configurations.custom_headers | |
| workspace_id | No | Workspace ID — required when using organization admin API keys |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |