Signaling APIs

Get generated Python code for the MCP Server

Changed on

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

Generates MCP server Python code from the OpenAPI specifications associated with the MCP server.

get/v1/mcp-cp/{controlPlaneId}/mcp-servers/{mcpServerId}/code

Request

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

Response

Generated Python code for the MCP server

codestring required

Generated code for the Context Interface

Example response

{
  "code": "print(\"Hello MCP\")"
}

Changes

    • breaking

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

    • warning

      added the new key_invalid enum value to the ////// response property for the response status

    • warning

      added the new unique enum value to the ////// response property for the response status

    • info

      api tag Signaling APIs added

    • info

      api tag MCP Servers removed