docs(mcp): show authenticated Loom tool discovery

ZL
4d ago
+39-0

What is the current behavior?

The MCP client guide describes authenticated Streamable HTTP and tool discovery in separate examples.

What is the new behavior?

Add a model-free discovery example for a self-hosted ClickHouse Loom server. It reads the endpoint and bearer from environment variables, explains viewer scope and server-name prefixes, and disconnects the client on exit.

Validation

  • Ran the snippet with released @voltagent/core 2.11.1 against a loopback Streamable HTTP fixture. The fixture checked the bearer header, MCP initialization and tool listing. The snippet displayed the expected prefixed tool name.
  • Prettier and git diff --check passed on the documentation change.
  • This is a documentation-only change. No live Loom server or model provider was used.

https://github.com/ClickHouse/loom


Summary by cubic

Adds a documentation example for discovering tools from a self-hosted ClickHouse Loom server over authenticated Streamable HTTP, without making a model call.

  • Reads the MCP endpoint and bearer token from LOOM_MCP_URL and LOOM_TOKEN environment variables.
  • Notes viewer token scope for read-only agents, tool-name prefixing with the server name, and client disconnection on exit.

Summary by CodeRabbit

  • Documentation
    • Added instructions for connecting to a self-hosted ClickHouse Loom server, including URL and token configuration.
    • Included an example for connecting over HTTP, checking available tools, and closing the connection.
    • Clarified how server-name prefixes appear in tool names and linked to the Loom MCP reference.