Portkey · Capability

Portkey API — MCP Integrations

Portkey API — MCP Integrations. 5 operations. Lead operation: Create MCP Integration. Self-contained Naftiko capability covering one Portkey business surface.

Run with Naftiko PortkeyMCP Integrations

What You Can Do

POST
Mcpintegrationscreate — Create MCP Integration
/v1/mcp-integrations
GET
Mcpintegrationslist — List MCP Integrations
/v1/mcp-integrations
GET
Mcpintegrationsretrieve — Get MCP Integration
/v1/mcp-integrations/{mcpintegrationid}
PUT
Mcpintegrationsupdate — Update MCP Integration
/v1/mcp-integrations/{mcpintegrationid}
DELETE
Mcpintegrationsdelete — Delete MCP Integration
/v1/mcp-integrations/{mcpintegrationid}

MCP Tools

create-mcp-integration

Create MCP Integration

list-mcp-integrations

List MCP Integrations

read-only idempotent
get-mcp-integration

Get MCP Integration

read-only idempotent
update-mcp-integration

Update MCP Integration

idempotent
delete-mcp-integration

Delete MCP Integration

idempotent

Capability Spec

portkey-mcp-integrations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Portkey API — MCP Integrations
  description: 'Portkey API — MCP Integrations. 5 operations. Lead operation: Create MCP Integration. Self-contained Naftiko
    capability covering one Portkey business surface.'
  tags:
  - Portkey
  - MCP Integrations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PORTKEY_API_KEY: PORTKEY_API_KEY
capability:
  consumes:
  - type: http
    namespace: portkey-mcp-integrations
    baseUri: https://api.portkey.ai/v1
    description: Portkey API — MCP Integrations business capability. Self-contained, no shared references.
    resources:
    - name: mcp-integrations
      path: /mcp-integrations
      operations:
      - name: mcpintegrationscreate
        method: POST
        description: Create MCP Integration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: mcpintegrationslist
        method: GET
        description: List MCP Integrations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organisation_id
          in: query
          type: string
          description: Organisation ID (required when using org admin API key)
        - name: type
          in: query
          type: string
        - name: workspace_id
          in: query
          type: string
        - name: page_size
          in: query
          type: integer
        - name: current_page
          in: query
          type: integer
        - name: search
          in: query
          type: string
    - name: mcp-integrations-mcpIntegrationId
      path: /mcp-integrations/{mcpIntegrationId}
      operations:
      - name: mcpintegrationsretrieve
        method: GET
        description: Get MCP Integration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: mcpintegrationsupdate
        method: PUT
        description: Update MCP Integration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: mcpintegrationsdelete
        method: DELETE
        description: Delete MCP Integration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.PORTKEY_API_KEY}}'
  exposes:
  - type: rest
    namespace: portkey-mcp-integrations-rest
    port: 8080
    description: REST adapter for Portkey API — MCP Integrations. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/mcp-integrations
      name: mcp-integrations
      description: REST surface for mcp-integrations.
      operations:
      - method: POST
        name: mcpintegrationscreate
        description: Create MCP Integration
        call: portkey-mcp-integrations.mcpintegrationscreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: mcpintegrationslist
        description: List MCP Integrations
        call: portkey-mcp-integrations.mcpintegrationslist
        with:
          organisation_id: rest.organisation_id
          type: rest.type
          workspace_id: rest.workspace_id
          page_size: rest.page_size
          current_page: rest.current_page
          search: rest.search
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/mcp-integrations/{mcpintegrationid}
      name: mcp-integrations-mcpintegrationid
      description: REST surface for mcp-integrations-mcpIntegrationId.
      operations:
      - method: GET
        name: mcpintegrationsretrieve
        description: Get MCP Integration
        call: portkey-mcp-integrations.mcpintegrationsretrieve
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: mcpintegrationsupdate
        description: Update MCP Integration
        call: portkey-mcp-integrations.mcpintegrationsupdate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: mcpintegrationsdelete
        description: Delete MCP Integration
        call: portkey-mcp-integrations.mcpintegrationsdelete
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: portkey-mcp-integrations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Portkey API — MCP Integrations. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: create-mcp-integration
      description: Create MCP Integration
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: portkey-mcp-integrations.mcpintegrationscreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-mcp-integrations
      description: List MCP Integrations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portkey-mcp-integrations.mcpintegrationslist
      with:
        organisation_id: tools.organisation_id
        type: tools.type
        workspace_id: tools.workspace_id
        page_size: tools.page_size
        current_page: tools.current_page
        search: tools.search
      outputParameters:
      - type: object
        mapping: $.
    - name: get-mcp-integration
      description: Get MCP Integration
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portkey-mcp-integrations.mcpintegrationsretrieve
      outputParameters:
      - type: object
        mapping: $.
    - name: update-mcp-integration
      description: Update MCP Integration
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: portkey-mcp-integrations.mcpintegrationsupdate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-mcp-integration
      description: Delete MCP Integration
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: portkey-mcp-integrations.mcpintegrationsdelete
      outputParameters:
      - type: object
        mapping: $.