Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.githits.com/llms.txt

Use this file to discover all available pages before exploring further.

GitHits is installed through the hybrid CLI. It detects Claude Code and configures the GitHits MCP server automatically.

Prerequisites

  • Node.js 24 or later
  • Claude Code installed and available on your PATH

Installation

1

Run the hybrid CLI

From your terminal, run:
npx githits@latest init
The CLI configures Claude Code when it detects it. Authentication is handled automatically for common local setup.
2

Verify the MCP server is loaded

Restart Claude Code, then run /mcp inside a session. Confirm that plugin:githits:githits appears in the list of connected MCP servers.

Available slash commands

Once the plugin is loaded, the following slash commands are available in Claude Code:
CommandDescription
/githits:example <query>Search for a canonical code example
/githits:search <query>Run a unified indexed search
/githits:loginAuthenticate with your GitHits account
/githits:statusShow current authentication status
/githits:logoutRemove stored credentials
/githits:helpList available GitHits commands
Your agent can also call GitHits tools directly through MCP. If it does not choose them on its own, use manual trigger prompts.

Uninstall

To remove GitHits configuration from Claude Code, run:
npx githits@latest init uninstall
This removes the MCP and plugin configuration but preserves your stored credentials. To also remove credentials, run npx githits@latest logout afterwards.