Use this file to discover all available pages before exploring further.
The GitHits CLI exposes commands for tool setup, code example search, source navigation, package inspection, and feedback. Run commands through npx githits@latest unless you are inside an MCP config that already uses the JSON command form.
Authenticate and configure all detected AI coding tools with the GitHits MCP server. init runs the browser login flow first, then auto-detects which supported tools are installed and writes MCP configuration for each one.
npx githits@latest init
Automatic install support: Claude Code, Cursor, Windsurf, VS Code / Copilot, Cline, Claude Desktop, Codex CLI, Gemini CLI, Google Antigravity, and OpenCode.After init completes, each detected tool is configured to start the GitHits MCP server automatically. No further manual configuration is needed.Flags
Authenticate with your GitHits account via browser OAuth. Opens your default browser to complete the login flow. Tokens are stored in the system keychain by default and refreshed automatically on next use.
Use a specific port for the local OAuth callback server. Defaults to a random port in the 8000–9999 range.
npx githits@latest login
If authentication times out (after 5 minutes), the browser link expires. Run the command again to get a fresh link.
npx githits@latest logout
Remove stored OAuth credentials. After logging out, tool calls that require authentication will fail until you log in again.
npx githits@latest logout
npx githits@latest auth status
Show current authentication status, including the credential source, storage location, and token expiry.
npx githits@latest auth status
If GITHITS_API_TOKEN is set in your environment, the command reports that source without reading local OAuth storage. If the stored token is expired, GitHits attempts to refresh it before reporting.
Show MCP setup instructions when run interactively in a terminal. When piped or run in a non-TTY context, starts the MCP server over stdio instead.
npx githits@latest mcp
Use this command to see the JSON snippet you need to add to your tool’s MCP configuration manually.
npx githits@latest mcp start
Always start the MCP server over stdio, regardless of whether the output is a TTY. Use this command in MCP configuration files so your coding tool can launch the server reliably.
Force a specific programming language. Omit to let GitHits infer the language from your query. If you’re unsure of the exact language name, run npx githits@latest languages first.
Submit feedback on a specific result or on your overall session. Use --accept for positive feedback and --reject for negative. A --message is recommended, especially for generic session feedback.
Optional. The solution ID from a prior get_example result. When provided, feedback is anchored to that specific result. Omit to submit generic session feedback.