Lists the external MCP servers the caller's org has registered.
Lists the external MCP servers the caller's org has registered.
GET /v1/tools/mcp/servers
| Address | https://api.hanzo.ai/v1/tools/mcp/servers |
| Method | GET |
| Operation | get_tools_mcp_servers |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Lists the external MCP servers the caller's org has registered. Each record carries the URL and the name of the header its credential is injected into; the credential VALUE lives only in KMS and is never returned, so hasSecret is the whole of what this surface says about it.
Request
GET /v1/tools/mcp/servers takes no parameters and no body — the credential is the whole request.
Response
| Status | Body | Meaning |
|---|---|---|
200 | mcpServerList | ok |
200 body — 10 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
servers | body | MCPServer[] | — | Servers is every external MCP server this org has registered. |
servers[].authHeader | body | string | — | AuthHeader is the request header the KMS-held credential is injected into, e.g. |
servers[].createdAt | body | integer | — | CreatedAt is when the server was registered, Unix seconds. |
servers[].hasSecret | body | boolean | — | HasSecret is whether a credential is sealed in KMS for this server. |
servers[].id | body | string | — | ID is the server's id within the org. |
servers[].listing | body | string | — | Listing is the catalog entry this server was enabled from, when it was. |
servers[].name | body | string | — | Name is the org's label for the server. |
servers[].org | body | string | — | Org is the org that registered the server — the validated caller's. |
servers[].source | body | string | — | Source is where the registration came from: "catalog" when it was enabled off the shelf, "org" when the org registered the URL itself. |
servers[].url | body | string | — | URL is the server's JSON-RPC endpoint. |
Failure carries the platform error shape — see Errors.
Examples
hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.
import { Configuration, ToolsApi } from 'hanzoai';
const api = new ToolsApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getToolsMcpServers();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).get_tools_mcp_servers()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.ToolsAPI.GetToolsMcpServers(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::get_tools_mcp_servers(&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).getToolsMcpServers();The method above is the one at the current release of the document. [email protected] (npm) and [email protected] (PyPI) were generated from an earlier release, where this operation carried a different id, so it spells the method differently — regenerating the clients is what makes the two agree. SDKs →
curl https://api.hanzo.ai/v1/tools/mcp/servers \
-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?