{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "nduc99911-repo-context-mcp--build-token-budgeted-context-pack",
 "repo": "nduc99911/repo-context-mcp",
 "repo_url": "https://github.com/nduc99911/repo-context-mcp",
 "repo_slug": "nduc99911-repo-context-mcp",
 "title": "Build a token-budgeted context pack for a prompt",
 "page_title": "How to build a token-budgeted context pack for a prompt with Repo Context MCP",
 "summary": "Use the CLI to pack the files about one area into Markdown under a token limit.",
 "who": "A developer pasting code into a chat model with a limited context window.",
 "problem": "Choosing files by hand either overflows the window or misses key code.",
 "outcome": "A Markdown pack focused on the areas you name, within your token budget.",
 "steps": [
  "Clone and build with `npm install` and `npm run build`",
  "Run `node dist/cli.js pack . --focus auth,api --max-tokens 8000`",
  "Paste the pack into your prompt",
  "Use --json for scripts"
 ],
 "agent_prompt": "Run `node dist/cli.js pack . --focus <area> --max-tokens 8000` from repo-context-mcp on <repo> and report which files were included. Verify the pack stays under the token budget.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "search_code is substring search, not semantic search.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js 18+"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/nduc99911-repo-context-mcp/build-token-budgeted-context-pack/",
 "md": "https://dedupedai.com/use-cases/nduc99911-repo-context-mcp/build-token-budgeted-context-pack/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/nduc99911-repo-context-mcp--build-token-budgeted-context-pack.json",
 "api_version": "v1"
}
