Create a new MCP server from an existing API specification.
This endpoint locates the API by name, fetches its details, and creates a valid MCP server of APIGENE type with the API’s information. The MCP server name is automatically set to the API title, enabled is set to true, and global_spec is derived from the API data.
Args: request: The request containing only the API name current_user: The current authenticated user tenant: The tenant database
Returns: dict: The created MCP server information
Raises: HTTPException(404): If the API specification is not found HTTPException(409): If an MCP server with the same name already exists HTTPException(500): If an error occurs during creation
JWT Authorization header using the Bearer scheme. Example: 'Authorization: Bearer {token}'
Request model for creating an MCP server from an API name.
The name of the API to create MCP server from
Successful Response