npx githits@latest unless you are inside an MCP config that already uses the JSON command form.
Setup and configuration
npx githits@latest init
Authenticate and configure detected AI coding tools in the current directory.
npx githits@latest init
Authenticate and configure detected AI coding tools in the current directory.
init runs the browser login flow first, then auto-detects which supported tools are installed and writes MCP configuration for each one.init completes, each detected tool is configured to start the GitHits MCP server automatically. No further manual configuration is needed.Flagsnpx githits@latest init uninstall
Remove GitHits MCP configuration from detected coding tools.
npx githits@latest init uninstall
Remove GitHits MCP configuration from detected coding tools.
npx githits@latest logout separately after uninstalling.Authentication
npx githits@latest login
Log in to your GitHits account with browser OAuth.
npx githits@latest login
Log in to your GitHits account with browser OAuth.
npx githits@latest logout
Remove stored OAuth credentials from this machine.
npx githits@latest logout
Remove stored OAuth credentials from this machine.
npx githits@latest auth status
Check the current authentication status and credential source.
npx githits@latest auth status
Check the current authentication status and credential source.
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.MCP server
npx githits@latest mcp
Show manual MCP setup instructions or start stdio mode in non-TTY contexts.
npx githits@latest mcp
Show manual MCP setup instructions or start stdio mode in non-TTY contexts.
npx githits@latest mcp start
Start the GitHits MCP server over stdio for coding tool configs.
npx githits@latest mcp start
Start the GitHits MCP server over stdio for coding tool configs.
Code examples
npx githits@latest example
Find source-linked code examples from real open-source usage.
npx githits@latest example
Find source-linked code examples from real open-source usage.
npx githits@latest languages first.strict (default), yolo, or custom.result and, when available, solution_id.npx githits@latest languages
List or filter supported programming language names.
npx githits@latest languages
List or filter supported programming language names.
Search and package navigation
npx githits@latest search
Search indexed package or repository code, docs, and symbols.
npx githits@latest search
Search indexed package or repository code, docs, and symbols.
searchRef you can pass to npx githits@latest search-status to poll for additional results from an async index scan.npx githits@latest search-status
Poll a prior async indexed search by its searchRef.
npx githits@latest search-status
Poll a prior async indexed search by its searchRef.
npx githits@latest search using the searchRef returned in the initial response.npx githits@latest pkg info
Inspect package metadata, popularity, downloads, and vulnerability status.
npx githits@latest pkg info
Inspect package metadata, popularity, downloads, and vulnerability status.
npx githits@latest pkg vulns
List known CVE and OSV advisories for a package or version.
npx githits@latest pkg vulns
List known CVE and OSV advisories for a package or version.
npx githits@latest pkg deps
Show direct dependencies and optional transitive dependency details.
npx githits@latest pkg deps
Show direct dependencies and optional transitive dependency details.
npx githits@latest pkg changelog
Retrieve release notes or changelog entries for packages and repos.
npx githits@latest pkg changelog
Retrieve release notes or changelog entries for packages and repos.
npx githits@latest pkg upgrade-review
Compare package versions with security, changelog, and dependency evidence.
npx githits@latest pkg upgrade-review
Compare package versions with security, changelog, and dependency evidence.
<registry>:<name>@<current>..<target> format. Repeat the flag for multiple packages.low, medium, high, or critical.npx githits@latest docs list
List hosted and repo-backed documentation pages for a package.
npx githits@latest docs list
List hosted and repo-backed documentation pages for a package.
npx githits@latest docs read
Read a documentation page by page ID, optionally by line range.
npx githits@latest docs read
Read a documentation page by page ID, optionally by line range.
npx githits@latest code files
List files in an indexed package or repository.
npx githits@latest code files
List files in an indexed package or repository.
npx githits@latest code read
Read a specific indexed source file by path.
npx githits@latest code read
Read a specific indexed source file by path.
npx githits@latest code grep
Search indexed source files with literal text or regex.
npx githits@latest code grep
Search indexed source files with literal text or regex.
Feedback
npx githits@latest feedback
Rate a specific result or submit generic session feedback.
npx githits@latest feedback
Rate a specific result or submit generic session feedback.
--accept for positive feedback and --reject for negative. A --message is recommended, especially for generic session feedback.get_example result. When provided, feedback is anchored to that specific result. Omit to submit generic session feedback.code_grep, search).