What happened
The shared endpoint lists tools available to a key across registered servers, named <label>__<tool>; clients can instead use a server-specific URL when they work with one server at a time. (ngrok.com) Upstream authentication can be absent, supplied from a stored header or query-parameter secret, forwarded from client headers, or passed through as the client’s OAuth token. The AI Gateway key itself is not sent upstream. (ngrok.com)
Key configuration can allow selected servers and tools—for example, docs/search or docs/*. Disallowed tools are omitted from tools/list, and attempts to call them return JSON-RPC error -32003. (ngrok.com) Enable mcpSearchEnabled to expose ngrok-gateway__search_tools rather than the full tool list. Activity’s MCP calls view records the key, server, tool and outcome, including denials; request capture can also retain bodies when enabled. (ngrok.com)
The feature works on every AI Gateway account without a plan upgrade. (ngrok.com) Usage comes from AI Gateway credits at $10 per million billable operations. (ngrok.com) An answered tools/call costs one operation even if the tool reports an error, and each tool search costs one. (ngrok.com) initialize, tools/list and denied calls are free. (ngrok.com) When credits run out, billable calls return 402 until you top up; agents can still list tools. (ngrok.com)
Trend signal
This fits the runtime-boundary pattern: permissions are enforced by the gateway rather than left to the agent’s instructions, and call records make those controls inspectable.
Why it matters
For a team, issue keys scoped to the tools each agent needs, then use the call log to review both successful use and denials. That makes least-privilege tool access easier to operate than sharing a broad server catalog.
Limits and uncertainty
Every upstream MCP server must have a public HTTPS URL. (ngrok.com)
Skill to build now
In MCP Gateway → Servers, choose Register server and enter a label, upstream URL and authentication mode. (ngrok.com) Then open Keys, create an access-key configuration that allows only docs/search under MCP tools, and create a key with that configuration. (ngrok.com)
For Claude Code, the example adds the shared endpoint over HTTP with a bearer key:
claude mcp add --transport http ngrok-mcp-gateway https://mcp.ngrok.ai/ \
--header "Authorization: Bearer $MCP_GATEWAY_API_KEY"Reader takeaway
Register public HTTPS MCP servers, then give an agent the AI Gateway key and limit it to named tools. Calls and searches consume credits, while listing tools and denied calls do not. The key distinction is operational: permissions are enforced at the gateway and requests are visible in Activity.