Update a directory server to the revision its preview showed
curl --request POST \
--url https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"revision": "<string>"
}
'import requests
url = "https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update"
payload = { "revision": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({revision: '<string>'})
};
fetch('https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update', 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.runaether.dev/mcp-servers/{mcpServerID}/directory-update",
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([
'revision' => '<string>'
]),
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://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update"
payload := strings.NewReader("{\n \"revision\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"revision\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"revision\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"auth": "none",
"connection_kind": "static_secret",
"created_at": "2023-11-07T05:31:56Z",
"default_credential_policy": "creator",
"display_name": "<string>",
"enabled_by_default": true,
"headers": {},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"kind": "http",
"required": true,
"secret_names": [
"<string>"
],
"source": {
"kind": "manual"
},
"updated_at": "2023-11-07T05:31:56Z",
"url": "<string>"
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "mcp_server_key_invalid",
"error": "<string>"
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}MCP Servers
Update a directory server to the revision its preview showed
Moves an MCP server installed from Aether's integration directory to its entry as it is now, which must be the revision previewDirectoryMcpServerUpdate showed, and answers with the server.
Use this tool when you need to:
- Apply a directory server's update after previewing it
- Bring a directory server's display name, homepage, URL, headers and auth up to its entry
Examples:
- POST /mcp-servers/{mcpServerID}/directory-update {"revision": "3b4f0c2a9d1e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b7c6d5e4f3a"}
Hints:
- mcpServerID is the server's uuid; revision is required, the to_revision the preview showed, a lowercase 64-character hex digest (422 otherwise).
- The entry is read and probed again: one resolving to another revision than previewed is refused with 409 mcp_server_directory_moved (preview again); a server already at that revision is left as it is.
- A new URL or auth deletes the server's connections.
- Use previewDirectoryMcpServerUpdate first, updateMcpServer instead to change only whether a directory server is required, and updatePlugin for an integration installed as a plugin.
- Owners and admins of the server's organization; a member is refused with 403 control_forbidden, a viewer or billing member with 403 org_role_insufficient, and a server the caller cannot see is 404; 503 when the membership check is unavailable.
- Refused as previewDirectoryMcpServerUpdate is: 409 mcp_server_not_from_directory, 422 integration_not_in_directory, 409 integration_shape_changed, and 422 with an mcp_server_ code when the probe fails.
- An agent host's grant is refused with 403 agent_host_route_not_allowed.
- A suspended organization is refused with 403 org_suspended.
POST
/
mcp-servers
/
{mcpServerID}
/
directory-update
Update a directory server to the revision its preview showed
curl --request POST \
--url https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"revision": "<string>"
}
'import requests
url = "https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update"
payload = { "revision": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({revision: '<string>'})
};
fetch('https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update', 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.runaether.dev/mcp-servers/{mcpServerID}/directory-update",
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([
'revision' => '<string>'
]),
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://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update"
payload := strings.NewReader("{\n \"revision\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"revision\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"revision\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"auth": "none",
"connection_kind": "static_secret",
"created_at": "2023-11-07T05:31:56Z",
"default_credential_policy": "creator",
"display_name": "<string>",
"enabled_by_default": true,
"headers": {},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"kind": "http",
"required": true,
"secret_names": [
"<string>"
],
"source": {
"kind": "manual"
},
"updated_at": "2023-11-07T05:31:56Z",
"url": "<string>"
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "mcp_server_key_invalid",
"error": "<string>"
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Authorizations
Body
application/json
Response
OK
- Option 1
- Option 2