Signaling APIs
Get generated Python code for the MCP Server
Changed onPre-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 URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Response
Generated Python code for the MCP server
Example response
{
"code": "print(\"Hello MCP\")"
}Changes
- breaking
added to the
/response propertyoneOflist for the response status - warning
added the new
key_invalidenum value to the//////response property for the response status - warning
added the new
uniqueenum value to the//////response property for the response status
- breaking
- info
api tag
Signaling APIsadded - info
api tag
MCP Serversremoved
- info