Update an external MCP server (admin)
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/mcp-servers/{id}/"
payload = {
"name": "<string>",
"is_enabled": True,
"enabled_for_chat": True,
"enabled_for_tasks": True,
"enabled_for_work_with_clara": True,
"enabled_tools": ["<string>"],
"oauth_client_id": "<string>",
"oauth_client_secret": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
is_enabled: true,
enabled_for_chat: true,
enabled_for_tasks: true,
enabled_for_work_with_clara: true,
enabled_tools: ['<string>'],
oauth_client_id: '<string>',
oauth_client_secret: '<string>'
})
};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/mcp-servers/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/mcp-servers/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"is_enabled": true,
"enabled_for_chat": true,
"enabled_for_tasks": true,
"enabled_for_work_with_clara": true,
"enabled_tools": [
"<string>"
],
"oauth_client_id": "<string>",
"oauth_client_secret": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"url": "<string>",
"auth_mode": "oauth",
"is_enabled": true,
"enabled_for_chat": true,
"enabled_for_tasks": true,
"enabled_for_work_with_clara": true,
"tool_catalog": [
{}
],
"enabled_tools": [
"<string>"
],
"oauth_client_id": "<string>",
"last_synced_at": "2023-11-07T05:31:56Z",
"last_sync_error": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "You do not have permission to perform this action."
}{
"error": "Not found."
}External MCP
Update an external MCP server (admin)
Edit name, enable/disable, tool allowlist, or rotate the OAuth client secret. url and auth_mode are immutable.
PATCH
/
projects
/
{project_id}
/
mcp-servers
/
{id}
/
Update an external MCP server (admin)
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/mcp-servers/{id}/"
payload = {
"name": "<string>",
"is_enabled": True,
"enabled_for_chat": True,
"enabled_for_tasks": True,
"enabled_for_work_with_clara": True,
"enabled_tools": ["<string>"],
"oauth_client_id": "<string>",
"oauth_client_secret": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
is_enabled: true,
enabled_for_chat: true,
enabled_for_tasks: true,
enabled_for_work_with_clara: true,
enabled_tools: ['<string>'],
oauth_client_id: '<string>',
oauth_client_secret: '<string>'
})
};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/mcp-servers/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/mcp-servers/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"is_enabled": true,
"enabled_for_chat": true,
"enabled_for_tasks": true,
"enabled_for_work_with_clara": true,
"enabled_tools": [
"<string>"
],
"oauth_client_id": "<string>",
"oauth_client_secret": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"url": "<string>",
"auth_mode": "oauth",
"is_enabled": true,
"enabled_for_chat": true,
"enabled_for_tasks": true,
"enabled_for_work_with_clara": true,
"tool_catalog": [
{}
],
"enabled_tools": [
"<string>"
],
"oauth_client_id": "<string>",
"last_synced_at": "2023-11-07T05:31:56Z",
"last_sync_error": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "You do not have permission to perform this action."
}{
"error": "Not found."
}Authorizations
BearerAuthTokenAuth
Use Authorization: Bearer
Body
application/json
Editable fields for a server. url and auth_mode are immutable and cannot be changed after creation. The client secret is write-only.
Response
Updated
A knowledge-store-level external MCP server registration. Secrets are never returned.
Immutable after creation.
Available options:
oauth, api_key, none Available to internal playground chat agents (default true).
Available to CMA Task agents (default true).
Available to Work-with-Clara agents (default true).
Synced tools; each is {name, description, annotations, input_schema}.
Allowlist of tool names exposed to agents (all disabled by default).