Update MCP server
curl --request POST \
--url 'https://api.flashcat.cloud/safari/mcp/server/update?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"server_id": "mcp_4kP9wQ2nLceRtY7uVb3xA1",
"description": "Query Prometheus metrics, alerts, and rules."
}
'import requests
url = "https://api.flashcat.cloud/safari/mcp/server/update?app_key="
payload = {
"server_id": "mcp_4kP9wQ2nLceRtY7uVb3xA1",
"description": "Query Prometheus metrics, alerts, and rules."
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
server_id: 'mcp_4kP9wQ2nLceRtY7uVb3xA1',
description: 'Query Prometheus metrics, alerts, and rules.'
})
};
fetch('https://api.flashcat.cloud/safari/mcp/server/update?app_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flashcat.cloud/safari/mcp/server/update?app_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'server_id' => 'mcp_4kP9wQ2nLceRtY7uVb3xA1',
'description' => 'Query Prometheus metrics, alerts, and rules.'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flashcat.cloud/safari/mcp/server/update?app_key="
payload := strings.NewReader("{\n \"server_id\": \"mcp_4kP9wQ2nLceRtY7uVb3xA1\",\n \"description\": \"Query Prometheus metrics, alerts, and rules.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flashcat.cloud/safari/mcp/server/update?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"server_id\": \"mcp_4kP9wQ2nLceRtY7uVb3xA1\",\n \"description\": \"Query Prometheus metrics, alerts, and rules.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/safari/mcp/server/update?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"server_id\": \"mcp_4kP9wQ2nLceRtY7uVb3xA1\",\n \"description\": \"Query Prometheus metrics, alerts, and rules.\"\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"server_id": "mcp_4kP9wQ2nLceRtY7uVb3xA1",
"account_id": 10023,
"team_id": 0,
"can_edit": true,
"environments": [],
"server_name": "prometheus",
"description": "Query Prometheus metrics, alerts, and rules.",
"transport": "streamable-http",
"url": "https://mcp.example.com/prometheus",
"headers": {
"Authorization": "Bear****f2c1"
},
"status": "enabled",
"connect_timeout": 0,
"call_timeout": 0,
"auth_mode": "shared",
"created_by": 80011,
"created_at": 1716960000000,
"updated_at": 1717046400000
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter skill_id is not valid."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "AccessDenied",
"message": "Access Denied."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}MCP servers
Update MCP server
Update an MCP server’s configuration. Omit a field to leave it unchanged.
POST
/
safari
/
mcp
/
server
/
update
Update MCP server
curl --request POST \
--url 'https://api.flashcat.cloud/safari/mcp/server/update?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"server_id": "mcp_4kP9wQ2nLceRtY7uVb3xA1",
"description": "Query Prometheus metrics, alerts, and rules."
}
'import requests
url = "https://api.flashcat.cloud/safari/mcp/server/update?app_key="
payload = {
"server_id": "mcp_4kP9wQ2nLceRtY7uVb3xA1",
"description": "Query Prometheus metrics, alerts, and rules."
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
server_id: 'mcp_4kP9wQ2nLceRtY7uVb3xA1',
description: 'Query Prometheus metrics, alerts, and rules.'
})
};
fetch('https://api.flashcat.cloud/safari/mcp/server/update?app_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flashcat.cloud/safari/mcp/server/update?app_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'server_id' => 'mcp_4kP9wQ2nLceRtY7uVb3xA1',
'description' => 'Query Prometheus metrics, alerts, and rules.'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flashcat.cloud/safari/mcp/server/update?app_key="
payload := strings.NewReader("{\n \"server_id\": \"mcp_4kP9wQ2nLceRtY7uVb3xA1\",\n \"description\": \"Query Prometheus metrics, alerts, and rules.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flashcat.cloud/safari/mcp/server/update?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"server_id\": \"mcp_4kP9wQ2nLceRtY7uVb3xA1\",\n \"description\": \"Query Prometheus metrics, alerts, and rules.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/safari/mcp/server/update?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"server_id\": \"mcp_4kP9wQ2nLceRtY7uVb3xA1\",\n \"description\": \"Query Prometheus metrics, alerts, and rules.\"\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"server_id": "mcp_4kP9wQ2nLceRtY7uVb3xA1",
"account_id": 10023,
"team_id": 0,
"can_edit": true,
"environments": [],
"server_name": "prometheus",
"description": "Query Prometheus metrics, alerts, and rules.",
"transport": "streamable-http",
"url": "https://mcp.example.com/prometheus",
"headers": {
"Authorization": "Bear****f2c1"
},
"status": "enabled",
"connect_timeout": 0,
"call_timeout": 0,
"auth_mode": "shared",
"created_by": 80011,
"created_at": 1716960000000,
"updated_at": 1717046400000
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter skill_id is not valid."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "AccessDenied",
"message": "Access Denied."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}Restrictions
| Aspect | Value |
|---|---|
| Rate limits | 300 requests/minute; 20 requests/second per account |
| Permissions | MCP Manage (ai-sre) |
Usage
- Requires edit rights on the server’s current team: an account-scoped server (
team_id=0) can be changed only by the account owner or an admin, a team server only by members of that team (owners and admins included only if they belong to it). server_name,description,transport,command,url, andauth_modechange only when non-empty, andconnect_timeout/call_timeoutonly when non-zero, so these cannot be cleared through this endpoint.args,env, andheadersreplace the whole value when sent: a key left out ofenv/headersis removed. For a protectedenv/headerskey, sending the masked value or an empty string keeps the stored secret.- When
auth_modeis sent,secret_schemais overwritten with the value sent alongside it (empty if omitted).oauth_metadatais cleared whenauth_modeorurlactually changes, unless a non-emptyoauth_metadatais sent. - Moving to another team (
team_id > 0) requires membership in the destination team and is refused for servers installed from the marketplace; moving to account scope (team_id=0) requires the account owner or an admin. Ifenvironmentsis not sent with a team change, the current runner entries must still be selectable by the caller or the update is rejected. environments: omit (ornull) to leave unchanged; send a list to replace it — an empty list clears the restriction back to all environments.- The response is the updated server. If a connection field changed, the cached tool list is dropped and fetched again in the background.
- Every call is recorded in the account audit log.
Authorizations
Body
application/json
Partial update of an MCP server. Omit a field to leave it unchanged.
New auth mode; omitted or empty leaves it unchanged. Who supplies the credential:
shared(default; an empty value behaves the same): one credential stored on the server (env/headers) is used for every caller.per_user_secret: each user stores their own secret, sent in the header named bysecret_schema.header_name.per_user_oauth: each user completes their own OAuth authorization; discovery and client registration run on first use.
per_user_secret requires secret_schema with a non-empty header_name; any other value returns InvalidParameter.
Available options:
shared, per_user_secret, per_user_oauth Response
Success
Standard response envelope used by every Flashduty public API. On success data contains the endpoint-specific payload and error is absent. On failure error is present and data is absent. request_id is always present and is also mirrored in the Flashcat-Request-Id response header.
Was this page helpful?