ngit-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| --warm | No | Preloads a repo at startup, so the first call is instant. | |
| --lockdown | No | Hides text from people who are not maintainers or in --allow-npub. | |
| --read-only | No | No writing at all: removes ngit_connect and the signing tools. Always wins. | |
| --state-dir | No | Where caches live (default ~/.local/state/ngit-mcp). | |
| --allow-npub | No | Marks extra people as trusted. | |
| --signer-relay | No | Override the pairing relays. | |
| --allow-signing | No | Enables ngit_plan and ngit_commit from the start for the ngit account that is already logged in, with no pairing needed. | |
| --no-local-page | No | For servers that don't run on your computer: no 127.0.0.1 pairing or backup page. The QR still works, and newcomers are told their key is kept on that machine. | |
| --repo-allowlist | No | Refuses every other repo. Entries must use npub or naddr form. | |
| --secret-storage | No | Passed to ngit account login. Accepts auto, file, or git-config. Without an OS keychain the assistant asks before falling back to git-config. | |
| --allow-local-git | No | Lets ngit_pr_diff fetch over plain http from 127.0.0.1 or localhost, for a local GRASP server. Off by default, because PR clone URLs are chosen by whoever opened the PR. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Reading needs no setup. To post anything for the user (PR, comment, issue), call ngit_connect first if ngit_plan is not listed; it shows them how to connect, or sets up a new Nostr account, in the chat.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ngit_repoA | Repository metadata: name, maintainers (confirmed/invited), git servers, health, default branch tip. |
| ngit_listA | List pull requests or issues (default: open + draft). Text written by others is wrapped in tags. |
| ngit_getB | One PR or issue with its full comment thread (PRs include CI results in |
| ngit_pr_diffB | The code change of a PR: diffstat + unified diff (merge-base..tip), fetched from its git servers. |
| ngit_activityB | What happened since a time: new PRs/issues, comments, status changes, PR updates (live). Use to watch for replies. |
| ngit_connectA | Connect the user's Nostr identity. Call with no arguments, show |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
The tools mostly target distinct resources and actions: repo metadata, listing, single-item retrieval, PR diff, activity feed, and identity connection. The boundary between ngit_list (current open/draft PRs and issues) and ngit_activity (changes since a timestamp) could be confused, but descriptions help clarify.
All names share the same ngit_ prefix and snake_case style, making them readable and predictable. However, the suffix pattern mixes verbs (list, get, connect) and nouns (repo, activity, pr_diff), so it is not a strict verb_noun convention throughout.
Six tools is well-scoped for a PR/issue browsing and monitoring server, with each tool covering a distinct capability. There is no obvious redundancy or bloated surface.
The surface covers repo metadata, listing/fetching PRs and issues, PR diffs, activity monitoring, and identity connection. But it appears read-only: there are no tools to create issues/PRs, comment, update status, or merge, which are notable gaps for a collaboration workflow.