Preview updating a directory server from its entry
curl --request POST \
--url https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update-preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update-preview"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update-preview', 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-preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update-preview"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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-preview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update-preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"drops_connections": true,
"from": {
"auth": "none",
"display_name": "<string>",
"headers": {},
"homepage": "<string>",
"url": "<string>"
},
"revision": "<string>",
"to": {
"auth": "none",
"display_name": "<string>",
"headers": {},
"homepage": "<string>",
"url": "<string>"
},
"to_revision": "<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": "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
Preview updating a directory server from its entry
Previews updating an MCP server installed from Aether’s integration directory to its directory entry as it is now; it writes nothing.
Use this tool when you need to:
- Check whether a directory server is up to date: revision equal to to_revision
- See what an update would change, and whether the server’s connections would go, before updateDirectoryMcpServer
- Get the to_revision that updateDirectoryMcpServer requires
Examples:
- POST /mcp-servers//directory-update-preview
Hints:
- mcpServerID is the server’s uuid; takes no body.
- Reads the server’s integration directory entry again and probes its URL. Answers 200 with the preview itself: revision and to_revision, from and to (the display name, homepage, URL, headers and auth the server has, and those the update would move it to), and drops_connections, true when a new URL or auth would delete the server’s connections.
- Use updateDirectoryMcpServer instead to apply the update, and previewPluginUpdate 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 with 409 mcp_server_not_from_directory for a server not installed from the directory, 422 integration_not_in_directory when the directory lists it no more, and 409 integration_shape_changed when the directory installs it as a plugin now (delete it with deleteMcpServer and install it again); a failed probe is 422 with its mcp_server_ code, such as mcp_server_unreachable.
- 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-preview
Preview updating a directory server from its entry
curl --request POST \
--url https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update-preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update-preview"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update-preview', 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-preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update-preview"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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-preview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/mcp-servers/{mcpServerID}/directory-update-preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"drops_connections": true,
"from": {
"auth": "none",
"display_name": "<string>",
"headers": {},
"homepage": "<string>",
"url": "<string>"
},
"revision": "<string>",
"to": {
"auth": "none",
"display_name": "<string>",
"headers": {},
"homepage": "<string>",
"url": "<string>"
},
"to_revision": "<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": "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
Response
OK