Discover an MCP catalog
Discovery reads the catalog using initialize and tools/list. It uses
the stdio transport and MCP protocol version 2025-06-18. Discovery sends
no tool calls.
The operator chooses the trusted server command before discovery. The server runs as host code with the access granted to that process. Give it only the access it requires. A cloned project cannot start a server automatically.
{
"schema_version": "touba-mcp-discovery-v1",
"targets": [{
"id": "catalogue",
"label": "Local catalog",
"secret_handles": [],
"max_pages": 8,
"max_tools": 128,
"config": {
"mcp_bridge_config_version": "touba-mcp-bridge-config-v1",
"server": {
"transport": "stdio",
"command": "/absolute/path/to/node",
"args": ["/absolute/path/to/mcp-server.mjs"],
"cwd": "/absolute/path/to/work",
"timeout_ms": 5000,
"max_payload_bytes": 1048576,
"env": {}
}
}
}]
}
touba mcp discover mcp-targets.json catalogue --confirm-process
The JSON report contains document.tools, the target, the observation date
and the catalog digest. The digest identifies the received content.
Treat the server's descriptions as untrusted data.
Discovery is limited to 120,000 ms and a 1 MiB response. Each configuration
may allow 1 to 32 pages and up to 256 tools. Touba refuses repeated cursors,
excessive output, deadlines and duplicate definitions. To pass a secret,
use {"from_secret_handle":"SECRET_NAME"} and grant that handle in
secret_handles. Keep credentials out of this file.
The project server accepts --mcp-discovery-config or the
mcp_discovery_config profile setting. A profile path is relative to the
project root. Use the CLI option to select an absolute path for an operator
inventory outside the project. Keep the configuration out of Git. Listing
requires governance.propose. Discovery requires governance.apply, explicit
confirmation and an idle project. Clients cannot supply commands, URLs or
environment values.
Review the tool types and requested permissions before importing selected tools. Configure the execution handler separately after review. Touba can import a saved JSON catalog without starting the server.