DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to generate repo maps as JSON for CI and scripts with Repo Context MCP

Generate a repository map and a token-budgeted context pack as JSON so CI jobs and scripts can feed agents the right files.

Short answer: Run git clone https://github.com/nduc99911/repo-context-mcp.git, cd repo-context-mcp, npm install and npm run build; then run node dist/cli.js map . --json from your project root and save the output as map.json; run node dist/cli.js pack . --focus src --json for a focused pack and save it as pack.json. All steps.

Who it is forA DevOps engineer building an AI review step in CI that should not paste the whole repo into a prompt.

The problemDumping a full repo into an LLM blows the token budget and buries the relevant code.

The outcomemap.json and pack.json your pipeline can pass to a model, focused on the folders that matter.

What you need first

  • Node.js 18+

Steps

  1. Run git clone https://github.com/nduc99911/repo-context-mcp.git, cd repo-context-mcp, npm install and npm run build
  2. Run node dist/cli.js map . --json from your project root and save the output as map.json
  3. Run node dist/cli.js pack . --focus src --json for a focused pack and save it as pack.json
  4. Cap size with node dist/cli.js pack . --focus auth,api --max-tokens 8000
  5. Feed the JSON to your review script in CI

Prompt for your agent

In CI, run repo-context-mcp's `map . --json` and `pack . --focus <dirs> --max-tokens <n>`, then review only the packed files for <goal>. Report the token count and list any changed file the pack left out.

Caveat. The npx package is marked as after publish in the README, so build from source in CI until it is on npm.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for nduc99911/repo-context-mcp and "Generate repo maps as JSON for CI and scripts"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer