From 30cfaa62a6be6dcc3932e6b8fd25665438d41db3 Mon Sep 17 00:00:00 2001 From: JSONbored <49853598+JSONbored@users.noreply.github.com> Date: Wed, 8 Jul 2026 13:07:45 -0700 Subject: [PATCH] fix(mcp-cli): add the missing gittensory_get_label_audit CLI descriptor #4219 registered the stdio tool with an inline description instead of the shared STDIO_TOOL_DESCRIPTORS + stdioToolDescription(name) pattern every other tool follows, so the `tools --json`/`tools` CLI subcommand (which only reads STDIO_TOOL_DESCRIPTORS) never listed it -- 33 reported vs. 34 actually registered via server.registerTool. --- packages/gittensory-mcp/bin/gittensory-mcp.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/gittensory-mcp/bin/gittensory-mcp.js b/packages/gittensory-mcp/bin/gittensory-mcp.js index f82c8f4849..de6bc1caed 100644 --- a/packages/gittensory-mcp/bin/gittensory-mcp.js +++ b/packages/gittensory-mcp/bin/gittensory-mcp.js @@ -408,6 +408,11 @@ const STDIO_TOOL_DESCRIPTORS = [ name: "gittensory_get_upstream_drift", description: "Return the latest cached Gittensor upstream ruleset drift status (stale/drift warnings) for MCP planning.", }, + { + name: "gittensory_get_label_audit", + description: + "Return the repo's label-policy audit (configured-vs-live labels, missing configured labels, suspicious status/source-style labels, and trusted-label-pipeline readiness) from the private Gittensory API.", + }, { name: "gittensory_preview_local_pr_score", description: "Inspect local diff metadata and request a private Gittensory scoring preview. No source contents are uploaded.", @@ -670,8 +675,7 @@ server.registerTool( server.registerTool( "gittensory_get_label_audit", { - description: - "Return the repo's label-policy audit (configured-vs-live labels, missing configured labels, suspicious status/source-style labels, and trusted-label-pipeline readiness) from the private Gittensory API.", + description: stdioToolDescription("gittensory_get_label_audit"), inputSchema: ownerRepoShape, }, async ({ owner, repo }) => {