v61

latestOpenAPI 3.1.0Apache 2.0raw.githubusercontent.com2026-08-018131,3812.6 MB
MCP Servers

Get generated Python code for the MCP Server

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

Response

Generated Python code for the MCP server

codestring required

Generated Python code for the MCP server implementation

Example response

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