Context Interface Capability Controls

Create Interface-Source Capability Controls

Changed on

Pre-release Endpoint This endpoint is currently in beta and is subject to change.

Create the capability controls for a context interface-source mapping.

post/v1/context-interfaces/{interfaceId}/context-source-mappings/{mappingId}/capability-controls

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

interfaceId, string uuid required

The ID of the Context Interface.

mappingId, string uuid required

The ID of the Context Interface Source Mapping.

Request body

union required

The capabilities of a mapped MCP resource that the MCP server does not expose.

APICapabilityControls required

Capability controls for a mapping to an API MCP resource.

OR
MCPCapabilityControls required

Capability controls for a mapping to an MCP server MCP resource.

Example request

{
  "type": "api",
  "deny": {
    "operations": [
      {
        "path": "/library/{id}/books",
        "methods": [
          "GET"
        ]
      }
    ]
  }
}

Response

A response to creating the capability controls for a Context Interface-Source mapping.

union required

The capabilities of a mapped MCP resource that the MCP server does not expose.

APICapabilityControls required

Capability controls for a mapping to an API MCP resource.

OR
MCPCapabilityControls required

Capability controls for a mapping to an MCP server MCP resource.

Example response

{
  "type": "api",
  "deny": {
    "operations": [
      {
        "path": "/library/{id}/books",
        "methods": [
          "GET"
        ]
      }
    ]
  }
}

Changes

    • breaking

      added to the invalid_parameters/items response property oneOf list for the response status

    • warning

      added the new key_invalid enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status

    • warning

      added the new unique enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status