mcp-tools-export

command
v0.0.0-...-8b65ef4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Command mcp-tools-export introspects the per-agent MCP catalog (internal/mcphost.NewServer) over an in-memory MCP transport and exports the full tool list as a structured JS data island consumed by the sites docs page (sites/dev/<ver>/mcp-tools.gen.js → window.__MCP_TOOLS__).

The tool NAMES, one-line SUMMARIES and PARAMETERS come straight from the live registry (ListTools → Name/Description/InputSchema), so the docs never drift from code — re-run after changing a tool and the page updates. The only curated bit is the domain grouping (toolDomain below); a tool missing from it lands in "Uncategorized" and prints a warning so a newly-added tool is noticed.

go run ./cmd/mcp-tools-export -out sites/dev/v2.10.3/mcp-tools.gen.js

or via `make gen-mcp-docs`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL