Update an MCP server
Replaces an MCP server’s connection config: every field is required
(not a partial merge). Submitting the masked placeholder value for
static_auth.header_value (as returned by GET/list) preserves the
currently stored secret instead of overwriting it.
curl --request PUT \
--url https://app.eclatira.com/api/v1/mcp-servers/{mcp_server_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"url": "<string>",
"description": "",
"auth_type": "none",
"static_auth": {
"header_value": "<string>",
"header_name": "Authorization"
},
"oauth_config": {
"client_id": "<string>",
"client_secret": "<string>",
"authorization_url": "<string>",
"token_url": "<string>",
"scopes": []
}
}
'import requests
url = "https://app.eclatira.com/api/v1/mcp-servers/{mcp_server_id}"
payload = {
"name": "<string>",
"url": "<string>",
"description": "",
"auth_type": "none",
"static_auth": {
"header_value": "<string>",
"header_name": "Authorization"
},
"oauth_config": {
"client_id": "<string>",
"client_secret": "<string>",
"authorization_url": "<string>",
"token_url": "<string>",
"scopes": []
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
url: '<string>',
description: '',
auth_type: 'none',
static_auth: {header_value: '<string>', header_name: 'Authorization'},
oauth_config: {
client_id: '<string>',
client_secret: '<string>',
authorization_url: '<string>',
token_url: '<string>',
scopes: []
}
})
};
fetch('https://app.eclatira.com/api/v1/mcp-servers/{mcp_server_id}', 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://app.eclatira.com/api/v1/mcp-servers/{mcp_server_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'url' => '<string>',
'description' => '',
'auth_type' => 'none',
'static_auth' => [
'header_value' => '<string>',
'header_name' => 'Authorization'
],
'oauth_config' => [
'client_id' => '<string>',
'client_secret' => '<string>',
'authorization_url' => '<string>',
'token_url' => '<string>',
'scopes' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://app.eclatira.com/api/v1/mcp-servers/{mcp_server_id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"description\": \"\",\n \"auth_type\": \"none\",\n \"static_auth\": {\n \"header_value\": \"<string>\",\n \"header_name\": \"Authorization\"\n },\n \"oauth_config\": {\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"authorization_url\": \"<string>\",\n \"token_url\": \"<string>\",\n \"scopes\": []\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://app.eclatira.com/api/v1/mcp-servers/{mcp_server_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"description\": \"\",\n \"auth_type\": \"none\",\n \"static_auth\": {\n \"header_value\": \"<string>\",\n \"header_name\": \"Authorization\"\n },\n \"oauth_config\": {\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"authorization_url\": \"<string>\",\n \"token_url\": \"<string>\",\n \"scopes\": []\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.eclatira.com/api/v1/mcp-servers/{mcp_server_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"description\": \"\",\n \"auth_type\": \"none\",\n \"static_auth\": {\n \"header_value\": \"<string>\",\n \"header_name\": \"Authorization\"\n },\n \"oauth_config\": {\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"authorization_url\": \"<string>\",\n \"token_url\": \"<string>\",\n \"scopes\": []\n }\n}"
response = http.request(request)
puts response.read_body{
"mcp_server_id": "<string>",
"name": "<string>",
"description": "<string>",
"transport": "<string>",
"url": "<string>",
"auth_type": "<string>",
"enabled": true,
"static_auth": {},
"oauth_config": {},
"created_at": "<string>",
"last_tested_at": "<string>",
"last_test_status": "ok",
"last_test_error": "<string>",
"last_test_tool_count": 123,
"last_test_tool_names": []
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
A long-lived, privileged API key (ek_... prefix), minted once from the dashboard. Intended for trusted server-side use only; never expose it in client-side code. Send as Authorization: Bearer ek_.... Required by every Calls, Batches, Agents, Tools, MCP Servers, Documents, and Realtime route.
Path Parameters
Body
sse, streamable_http none, static, oauth2 Show child attributes
Show child attributes
Only the pre-authorization fields a dev supplies to connect an OAuth2 MCP server. access_token/refresh_token/expires_at are never client input — they're populated by the /oauth/authorize + /oauth/callback flow (see api/v1/_mcp_servers.py) and preserved across a later update.
Show child attributes
Show child attributes
Response
Successful Response
ok, error curl --request PUT \
--url https://app.eclatira.com/api/v1/mcp-servers/{mcp_server_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"url": "<string>",
"description": "",
"auth_type": "none",
"static_auth": {
"header_value": "<string>",
"header_name": "Authorization"
},
"oauth_config": {
"client_id": "<string>",
"client_secret": "<string>",
"authorization_url": "<string>",
"token_url": "<string>",
"scopes": []
}
}
'import requests
url = "https://app.eclatira.com/api/v1/mcp-servers/{mcp_server_id}"
payload = {
"name": "<string>",
"url": "<string>",
"description": "",
"auth_type": "none",
"static_auth": {
"header_value": "<string>",
"header_name": "Authorization"
},
"oauth_config": {
"client_id": "<string>",
"client_secret": "<string>",
"authorization_url": "<string>",
"token_url": "<string>",
"scopes": []
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
url: '<string>',
description: '',
auth_type: 'none',
static_auth: {header_value: '<string>', header_name: 'Authorization'},
oauth_config: {
client_id: '<string>',
client_secret: '<string>',
authorization_url: '<string>',
token_url: '<string>',
scopes: []
}
})
};
fetch('https://app.eclatira.com/api/v1/mcp-servers/{mcp_server_id}', 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://app.eclatira.com/api/v1/mcp-servers/{mcp_server_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'url' => '<string>',
'description' => '',
'auth_type' => 'none',
'static_auth' => [
'header_value' => '<string>',
'header_name' => 'Authorization'
],
'oauth_config' => [
'client_id' => '<string>',
'client_secret' => '<string>',
'authorization_url' => '<string>',
'token_url' => '<string>',
'scopes' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://app.eclatira.com/api/v1/mcp-servers/{mcp_server_id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"description\": \"\",\n \"auth_type\": \"none\",\n \"static_auth\": {\n \"header_value\": \"<string>\",\n \"header_name\": \"Authorization\"\n },\n \"oauth_config\": {\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"authorization_url\": \"<string>\",\n \"token_url\": \"<string>\",\n \"scopes\": []\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://app.eclatira.com/api/v1/mcp-servers/{mcp_server_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"description\": \"\",\n \"auth_type\": \"none\",\n \"static_auth\": {\n \"header_value\": \"<string>\",\n \"header_name\": \"Authorization\"\n },\n \"oauth_config\": {\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"authorization_url\": \"<string>\",\n \"token_url\": \"<string>\",\n \"scopes\": []\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.eclatira.com/api/v1/mcp-servers/{mcp_server_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"description\": \"\",\n \"auth_type\": \"none\",\n \"static_auth\": {\n \"header_value\": \"<string>\",\n \"header_name\": \"Authorization\"\n },\n \"oauth_config\": {\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"authorization_url\": \"<string>\",\n \"token_url\": \"<string>\",\n \"scopes\": []\n }\n}"
response = http.request(request)
puts response.read_body{
"mcp_server_id": "<string>",
"name": "<string>",
"description": "<string>",
"transport": "<string>",
"url": "<string>",
"auth_type": "<string>",
"enabled": true,
"static_auth": {},
"oauth_config": {},
"created_at": "<string>",
"last_tested_at": "<string>",
"last_test_status": "ok",
"last_test_error": "<string>",
"last_test_tool_count": 123,
"last_test_tool_names": []
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}