Configure a new MCP server for an agent.
Args: agent_id: The ID of the agent server_data: MCP server configuration data user_id: The user ID of the current user organization_id: The organization ID of the current user
Returns: Created MCP server
Raises: HTTPException: If agent not found, server invalid, or access denied
Model for creating an MCP server configuration.
Display name of the MCP server
URL of the MCP server
ID of the agent
Authentication configuration for the MCP server
The endpoint path for tool discovery, defaults to /tools
URL for health check endpoint
Successful Response
Model for an MCP server configuration.
Display name of the MCP server
URL of the MCP server
Unique identifier for the MCP server
ID of the agent this MCP server belongs to
When the MCP server was configured
When the MCP server was last updated
Authentication configuration for the MCP server
The endpoint path for tool discovery, defaults to /tools
URL for health check endpoint
Connection status: 'connected', 'disconnected', 'error'
Timestamp of the last health check
Whether the MCP server is enabled for use by the agent
Timestamp when the server was soft-deleted
The timestamp when the OAuth access token expires