Update
curl --request PATCH \
--url https://api.klavis.ai/mcp-server/instance/{instanceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"isReadOnly": true
}
'import requests
url = "https://api.klavis.ai/mcp-server/instance/{instanceId}"
payload = { "isReadOnly": True }
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({isReadOnly: true})
};
fetch('https://api.klavis.ai/mcp-server/instance/{instanceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({isReadOnly: true})
};
fetch('https://api.klavis.ai/mcp-server/instance/{instanceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"instanceId": "<string>",
"isReadOnly": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}MCP Server Instance
Update
Updates the settings of a specific server connection instance. Currently supports updating the read-only status of the connection.
PATCH
/
mcp-server
/
instance
/
{instanceId}
Update
curl --request PATCH \
--url https://api.klavis.ai/mcp-server/instance/{instanceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"isReadOnly": true
}
'import requests
url = "https://api.klavis.ai/mcp-server/instance/{instanceId}"
payload = { "isReadOnly": True }
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({isReadOnly: true})
};
fetch('https://api.klavis.ai/mcp-server/instance/{instanceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({isReadOnly: true})
};
fetch('https://api.klavis.ai/mcp-server/instance/{instanceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"instanceId": "<string>",
"isReadOnly": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Your Klavis AI API key.
Path Parameters
The ID of the connection integration instance to update.
Body
application/json
Whether the MCP server connection is read-only. When true, write operations will be restricted.
