create_mcp_integration
Register a new MCP integration from an external server URL with authentication type and transport protocol. Returns the integration ID and slug for further setup.
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 |