Create an MCP data source
POST/v1/data_sources/mcp
Saves an MCP server. Without OAuth it connects and discovers the tools right away; with OAuth it returns authorization_url, which a person signed in to the dashboard must open in a browser to finish.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 500
Source created, with the outcome of the connection test.
Body that is not JSON, or a field of the wrong type.
Missing or invalid bearer token.
Token is valid but lacks permission for this operation.
Resource not found in the current organization.
A data source with this name already exists in the workspace.
Request body failed validation.
Rate limit exceeded.
Unexpected server error.