Create a new MCP server.
Args: mcp_server_data: The MCP server data to create current_user: The current authenticated user tenant: The tenant database
Returns: MCPServer: The created MCP server
Raises: HTTPException(400): If input validation fails HTTPException(403): If trying to create public server without APIGENE tier HTTPException(409): If MCP server with same name already exists HTTPException(500): If database operation fails or other error occurs
JWT Authorization header using the Bearer scheme. Example: 'Authorization: Bearer {token}'
Request model for creating an MCP server
Name of the MCP server
MCP server configuration
Whether the MCP server is enabled
Type of MCP server (apigene/public)
apigene, public icon URL of the MCP server for display
API name for APIGENE type servers
Whether this is a global spec for APIGENE type servers
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