mcp-github-project-manager CLAUDE.md

mcp-github-project-manager CLAUDE.md is an instructions file for coding agents from kunwarVivek/mcp-github-project-manager. It costs 3,250 tokens per session, scanned A, a copy of mcp-github-project-manager AGENTS.md, MIT.

A development guide for an MCP server that manages GitHub projects. MCP is a standard way for AI tools to connect to software services, and this guide describes the server's commands, structure, configuration, and error handling.

In plain words
What is it for?
Building, testing, inspecting, and extending the GitHub project-management MCP server.
Why use it?
It gives contributors the project's exact build, test, and inspection commands and explains where the main services are connected. That makes changes easier to verify and less likely to break tool responses.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/kunwarvivek/mcp-github-project-manager/claude-md
Clone the repo
git clone --depth 1 https://github.com/kunwarVivek/mcp-github-project-manager

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-github-project-manager CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kunwarvivek/mcp-github-project-manager/claude-md.svg)](https://agentmods.dev/instructions/kunwarvivek/mcp-github-project-manager/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/kunwarvivek/mcp-github-project-manager/claude-md"><img src="https://agentmods.dev/badge/instructions/kunwarvivek/mcp-github-project-manager/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,250 This file is loaded in full into every session.
When invoked 3,250 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 94% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.03250 $0.03250
Opus 5 $0.01625 $0.01625
Sonnet 5 $0.00650 $0.00650
Haiku 4.5 $0.00325 $0.00325

Measured 4d ago against content hash 0d8a31c41a37, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mcp-github-project-manager CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

94% identical to mcp-github-project-manager AGENTS.md — 28 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 214 lines

How it starts

The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Commands

Task Command
Build npm run build (tsc → fix-imports.js → chmod)
Dev (watch) npm run dev (tsx — ts-node cannot load under TS 7)
Unit tests npm test · core only npm run test:core · AI npm run test:ai
E2E (mock) npm run test:e2e · tools npm run test:e2e:tools
E2E (live API) E2E_REAL_API=true npm run test:e2e:tools:real
Coverage npm run test:coverage
Lint / format npm run lint (Biome) · npm run format
Inspect MCP server npm run inspect

Architecture (DDD, MCP stdio server)

  • src/index.ts — entry; boots an McpServer (@modelcontextprotocol/server v2, 2026-07-28 spec) via serveStdio, which negotiates the protocol revision per connection. Each tool is registered with registerTool; all of them share one dispatchTool carrying the shutdown gate, in-flight tracking and result formatting. Wires ToolRegistry + ProjectManagementService through src/container.ts (tsyringe DI).
  • Tool errors: an execution failure returns {content, isError: true} so the model can see and recover from it. A JSON-RPC error is reserved for protocol faults (unknown tool). Note v2 validates arguments against the declared inputSchema before the handler runs, so ToolValidator never sees a missing required field.
  • src/domain/ — types, zod schemas, errors. No logic.
  • src/services/ — business logic. ProjectManagementService orchestrates per-feature services; services/ai/ holds AI SDK providers.
  • src/infrastructure/github/ (Octokit GraphQL/REST), tools/ (MCP tool defs + registry + validators), plus cache, persistence, resilience, events.
  • src/env.ts + src/cli.ts — config. CLI flags override env vars.

Environment (.env or CLI flags; CLI wins)

  • Required: GITHUB_TOKEN, GITHUB_OWNER, GITHUB_REPO.
  • GitHub credential chain, first hit wins: --token CLI flag → $SECRETS_DIR/GITHUB_TOKEN file → GITHUB_TOKEN env → gh auth token. The gh fallback means a developer with a working gh login needs no configuration at all; disable it with GH_CLI_TOKEN_FALLBACK=false (it is also off automatically under NODE_ENV=test, so tests never shell out).
  • GitHub App installation auth (optional, outranks the PAT when all three are set): GITHUB_APP_ID, GITHUB_APP_PRIVATE_KEY, GITHUB_APP_INSTALLATION_ID. A partial App config falls back to the PAT rather than failing, so a half-set environment cannot lock the server out.
  • Every credential read goes through getSecret()/requireToken(). Do NOT read process.env.GITHUB_TOKEN directly — that bypasses the whole chain, which is exactly how SECRETS_DIR and --token were silently broken before.
  • AI (optional, unlocks AI tools): ANTHROPIC_API_KEY, GOOGLE_API_KEY, OPENAI_API_KEY, PERPLEXITY_API_KEY; model overrides AI_MAIN_MODEL, AI_PRD_MODEL, AI_RESEARCH_MODEL, AI_FALLBACK_MODEL.
  • Optional: SYNC_ENABLED, SYNC_TIMEOUT_MS, CACHE_DIRECTORY, WEBHOOK_SECRET, WEBHOOK_PORT, SSE_ENABLED.
  • Webhook security: signature validation fails closed. With no WEBHOOK_SECRET, webhooks are rejected unless WEBHOOK_ALLOW_UNSIGNED=true (trusted dev only).
  • Secrets: set SECRETS_DIR (e.g. /run/secrets) to load any config/secret from a file named after it (Docker/k8s secret convention), checked before env vars. getSecret(name) in env.ts reads fresh (rotation-aware). Vault/AWS SM are an extension point via SecretProvider (src/infrastructure/secrets/).
  • Startup validation runs against the resolved config, not raw process.env — validating the environment directly meant a token supplied by file or CLI flag failed the required-field check and the process exited before the resolver ran.
  • Logs are redacted: redactSecrets() in infrastructure/logger strips token/secret/password/apiKey/authorization-shaped keys from anything the logger stringifies, and GitHubConfig.token is non-enumerable so JSON.stringify cannot emit the PAT.

Read the full file on GitHub · 214 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 214 lines · 3,250 tokens per session scan A 0d8a31c41a37

Subscribe to this mod's changes

mcp-github-project-manager CLAUDE.md is an instructions file published in the GitHub repository kunwarVivek/mcp-github-project-manager (95 stars, last pushed yesterday), licensed MIT. It adds 3,250 tokens to every session, about $0.0163 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to mcp-github-project-manager AGENTS.md, differing in 28 lines, and is treated as a copy.