Update an MCP server configuration.
Args: agent_id: The ID of the agent server_id: The ID of the MCP server server_update: Updated server data user_id: The user ID of the current user organization_id: The organization ID of the current user
Returns: Updated MCP server
Raises: HTTPException: If server not found or access denied
Model for updating an MCP server configuration.
Updated name
Updated URL
Updated auth configuration
Updated health check URL
Updated tool discovery endpoint
Updated status
Whether the MCP server should be enabled
The timestamp when the OAuth access token expires
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