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 connects to Cursor through the Model Context Protocol (MCP), giving your AI agent access to real open-source context as you code. Install it through the hybrid CLI.

Prerequisites

  • Node.js 24 or later
  • Cursor installed

Installation

1

Run the hybrid CLI

From your terminal, run:
npx githits@latest init
GitHits detects your Cursor installation and writes the MCP server configuration automatically. Authentication is handled automatically for common local setup.
2

Verify the MCP connection

Open Cursor’s MCP settings panel and confirm that the githits server shows a connected status. Once connected, your agent can call GitHits tools when it needs a code example or package context.

How Cursor uses the plugin

Cursor reads vendor-neutral Open Plugin configuration from .plugin/plugin.json when GitHits is installed via npx githits@latest init. The MCP server itself runs as a local process started by Cursor on demand — no background service is required.

Uninstall

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