From 37758d18bf4fcdbff9b83399e79110ca6622a084 Mon Sep 17 00:00:00 2001 From: Nathan Burg Date: Mon, 2 Mar 2026 14:36:20 -0600 Subject: [PATCH] Surface support info via help text and error messages Removes the contact_support MCP tool (which proved unreliable for directing AI assistants) and instead surfaces support information where users naturally look: in the CLI help footer and authentication error messages. Updated version to 0.1.3 to reflect this refinement. Changes: - Removed contact_support MCP tool and its registrations - Added docs link and support email to CLI help footer - Added support email to auth error output - Updated tests to verify support email in error messages --- package.json | 2 +- src/cli.ts | 4 +++- src/shared/require-auth.test.ts | 1 + src/shared/require-auth.ts | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2e23cdd2..c04797fd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "githits", "description": "CLI companion for GitHits - code examples from global open source for developers and AI assistants", - "version": "0.1.2", + "version": "0.1.3", "type": "module", "files": [ "dist", diff --git a/src/cli.ts b/src/cli.ts index b3b38829..4d9ad04c 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -31,7 +31,9 @@ Getting started: githits mcp Start MCP server for your AI assistant githits search "query" --lang python Search for code examples -Learn more at https://githits.com`, +Learn more at https://githits.com +Docs: https://app.githits.com/docs/ +Support: support@githits.com`, ); // Auth commands diff --git a/src/shared/require-auth.test.ts b/src/shared/require-auth.test.ts index 811b410d..61ecfe8e 100644 --- a/src/shared/require-auth.test.ts +++ b/src/shared/require-auth.test.ts @@ -19,6 +19,7 @@ describe("requireAuth", () => { const output = consoleSpy.mock.calls.map((c) => c[0]).join("\n"); expect(output).toContain("Authentication required"); expect(output).toContain("githits login"); + expect(output).toContain("support@githits.com"); consoleSpy.mockRestore(); }); diff --git a/src/shared/require-auth.ts b/src/shared/require-auth.ts index 1ad2ba37..8aa1927a 100644 --- a/src/shared/require-auth.ts +++ b/src/shared/require-auth.ts @@ -36,6 +36,7 @@ export function requireAuth( console.log("To authenticate:"); console.log(" githits login\n"); console.log("Or set GITHITS_API_TOKEN environment variable."); + console.log("\nNeed help? support@githits.com"); throw new AuthRequiredError(`Authentication required${suffix}`); }