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.
Path Parameters
The UUID of your control plane. This variable is available in the Konnect manager.
Example:9524ec7d-36d9-465d-a8c5-83a3c9390458
The ID of the MCP server.
Response
application/json
Response
Generated Python code for the MCP server
MCPServerCodeResponse
Generated Python code for the MCP server implementation
Example:print("Hello MCP")
Authentication
Path Parameters
MCPServerPodsStatus
objectNumber of pods in the ready state.
>= 0
Example:2
Number of pods in the starting state.
>= 0
Number of pods in the failing state.
>= 0
MCPServerVersionStatus
objectThe version identifier of the MCP server deployment.
Example:v1
The desired number of replicas for this version.
>= 0
Example:2
The number of replicas that have been created for this version.
>= 0
Example:2
Show Child Parameters
MCPServerStatusRequest
arrayList of per-version deployment statuses for the MCP server.
The version identifier of the MCP server deployment.
Example:v1
The desired number of replicas for this version.
>= 0
Example:2
The number of replicas that have been created for this version.
>= 0
Example:2
Show Child Parameters
MCPServerStatusResponse
objectAggregated deployment status of the MCP server.
deploying— single version with desired replicas not yet fully ready.healthy— single version running with no failing pods.pending— no deployment status has been reported yet.unhealthy— one or more failing pods across any version.upgrading— multiple versions running with no failing pods.
Allowed values:deployinghealthypendingunhealthyupgrading
Example:healthy