Update an existing MCP server.
Args: server_id: The ID of the MCP server to update mcp_server_data: The updated MCP server data current_user: The current authenticated user tenant: The tenant database
Returns: MCPServer: The updated MCP server
Raises: HTTPException(400): If input validation fails HTTPException(404): If MCP server not found HTTPException(403): If trying to change to public server without APIGENE tier HTTPException(409): If new name conflicts with existing server HTTPException(500): If database operation fails or other error occurs
JWT Authorization header using the Bearer scheme. Example: 'Authorization: Bearer {token}'
Request model for updating an MCP server
Name of the MCP server
MCP server configuration
Whether the MCP server is enabled
Type of MCP server (public/private)
apigene, public Icon URL of the MCP server for display
Successful Response
Response model for MCP server
Unique identifier for the MCP server
Name of the MCP server
MCP server configuration
Whether the MCP server is enabled
Type of MCP server (public/private)
apigene, public When the MCP server was created
When the MCP server was last updated
Email of the user who created the MCP server
Icon URL of the MCP server for display
API name for APIGENE type servers
Whether this is a global spec for APIGENE type servers