Pulls the public MCP registry into our canonical copy and reports what changed.
Pulls the public MCP registry into our canonical copy and reports what changed. SuperAdmin only; every other caller is refused.
POST /v1/tools/catalog/sync
| Address | https://api.hanzo.ai/v1/tools/catalog/sync |
| Method | POST |
| Operation | post_tools_catalog_sync |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Pulls the public MCP registry into our canonical copy and reports what changed. SuperAdmin only; every other caller is refused.
It is IDEMPOTENT: a listing is keyed by the publisher's own reverse-DNS name, so a second pass over an unchanged registry rewrites the same rows and reports added=0, updated=0. It never deletes — a listing that vanishes upstream may be one an org has already enabled, and dropping its description would not drop its server. And it never touches CURATION: hidden, featured, an admin-set official and a logo survive every sync, because the write does not name those columns.
Request
The document declares no body for POST /v1/tools/catalog/sync. The handler is typed in cloud but its shape is not yet emitted, so the fields are not listed here — ask the MCP door's describe for post_tools_catalog_sync, which answers from the running route.
Response
| Status | Body | Meaning |
|---|---|---|
200 | mcpCatalogSync | ok |
200 body — 4 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
added | body | integer | — | Added is how many listings the catalog did not have before. |
registry | body | string | — | Registry is the upstream this pass read. |
total | body | integer | — | Total is how many listings the catalog holds now. |
updated | body | integer | — | Updated is how many the publisher has changed since we last looked. |
Failure carries the platform error shape — see Errors.
Examples
hanzo tools catalog syncimport { Configuration, ToolsApi } from 'hanzoai';
const api = new ToolsApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.postToolsCatalogSync();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import ToolsApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = ToolsApi(client).post_tools_catalog_sync()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.ToolsAPI.PostToolsCatalogSync(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, tools_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = tools_api::post_tools_catalog_sync(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.ToolsApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new ToolsApi(client).postToolsCatalogSync();curl -X POST https://api.hanzo.ai/v1/tools/catalog/sync \
-H "Authorization: Bearer $HANZO_API_KEY"The door reaches tools through the tools tool, which names its 19 operations with its own verbs — this one among them, under a name only the door declares. describe explains any of them:
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "describe",
"arguments": {
"op": "list_mcp_servers"
}
}
}'How is this guide?