Documentation
¶
Overview ¶
Command audit_metrics generates a comprehensive metrics summary for the gitlab-mcp-server MCP server. It creates in-memory MCP servers to count tools, meta-tools, resources, and prompts at runtime — the only reliable counting method. It also scans the filesystem for Go packages, source files, and test files.
Usage:
go run ./cmd/audit_metrics/
site_stats.go generates the single-sourced statistics file consumed by the Astro Starlight documentation site (site/src/data/stats.json). Every value is derived from the canonical action catalog projection, the in-memory MCP surface, or the repository VERSION file — never hardcoded — so the published numbers cannot drift away from the real server surface.
The same per-surface, per-tier derivations used by the text report drive these counts:
- tools.* individual tool surface via tools.RegisterAll per tier
- meta.* meta-tool surface via tools.RegisterAllMeta
- dynamic the fixed find/execute dynamic surface (2 tools)
- catalog_actions.* dynamic catalog action routes per tier
- catalog_groups.* catalog group count per tier (IncludeMCP)
- resources/prompts registered MCP resource and prompt counts
- tool_packages Go package directories under internal/tools