GitHitsBLOCK
CLI & MCP for GitHits - The Code Context Layer for AI Coding Agents
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
GitHits CLI
The code context layer for AI coding agents.
Website · Documentation · Issues
G
56c51cf464ffOBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add githits -- npx -y [email protected] mcp start
Exposed tools (8)
7 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
default-test | read | default test |
experimental_probe | read | test-only experimental factory |
githits-mcp | read | Guide |
pkg_changelog | read | |
pkg_info | read | |
pkg_vulns | read | |
quick_start | write | |
read | read |
Trust audit
BLOCKgrade F · trust 59/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | FAIL |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (2 observation(s))
- Network
- declared (4 observation(s))
- Shell
- declared (2 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- found
Findings (25)
exec(
- Never ask the user to paste passwords, OAuth codes, cookies, access tokens, refresh tokens, or API keys into chat.
`http://127.0.0.1:${direct.port}/direct`,const secret = "super-secret-credential";
const secret = "claude-malformed-secret";
const secret = "claude-permission-secret";
.lintstagedrc.js
.node-version
CLAUDE.md
GEMINI.md
run: bun run ../../scripts/publish-npm.ts
import { getMcpToolDescriptors } from "../../../packages/mcp/src/mcp/server.js";import { EXTERNAL_CONTENT_POSTURE } from "../../../packages/mcp/src/tools/guardrails.js";import { buildMcpQuickStart } from "../../../packages/mcp/src/mcp/instructions.js";import { getMcpToolDescriptors } from "../../../packages/mcp/src/mcp/server.js";"http://127.0.0.1:4000",
redirectUri: "http://127.0.0.1:8080/callback",
redirectUri: "http://127.0.0.1:8080/callback",
redirectUri: "http://127.0.0.1:8080/callback",
path: "👨👩👧👦",
" 한 | 1 +\n longer | 1 -\n 👨👩👧👦 | 2 +-\n",
text: "e\u0301👩💻 hit",
expect(plain).toContain("> 143 | ...e\u0301👩💻 hit...");`e\u0301👩💻 ${colors.bold}${colors.yellow}hit${colors.reset}`,@modelcontextprotocol/sdk, @napi-rs/keyring, fast-string-width, jsonc-parser, open, smol-toml, yaml, zod
Gates applied: no_behavioural_pass.
56c51cf464fffull audit observations/trust-audit/mcp-server/githits-com__githits.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 56c51cf464ff | BLOCK | F | 59 | first audit |
Questions
What is the GitHits MCP server?
CLI & MCP for GitHits - The Code Context Layer for AI Coding Agents
What tools does GitHits expose?
8 in total: 7 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is GitHits safe to connect to an agent?
No — not without reading the findings first. The audit graded it F (59/100) and found 2 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does GitHits need?
It reads ANTHROPIC_API_KEY, GITHITS_API_TOKEN, GITHITS_AUTH_STORAGE and OPENAI_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does GitHits run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @githits/mcp at 0.27.1.
How current is this page?
The grade is for one exact copy of the source (56c51cf464ff), read on 2026-10-07. The repository is watched and re-audited when it changes.