{"slug": "mcp-server-for-repo-behavior-indexing-entrypoints-impact-context-packs-before", "title": "MCP server for repo behavior indexing — entrypoints, impact, context packs before the agent edits (FlowIndex)", "summary": "A developer built FlowIndex, a local CLI and MCP server that scans a repository to build a behavior graph in SQLite, capturing entrypoints, imports, tests, and git co-change data without embeddings or LLM calls. The tool integrates with Cursor's agent to provide context packs and change impact analysis before code edits, addressing the problem of agents missing routes and shared modules in non-trivial repos.", "body_md": "```\nI've been using Cursor on non-trivial repos and kept hitting the same issue: the agent finds a file but misses routes, shared modules, and tests that should run after a change.\nI built FlowIndex — a local CLI + MCP server that scans a repo and builds a behavior graph in SQLite (entrypoints, imports/calls, tests, git co-change). No embeddings, no SaaS, no LLM calls in the index itself.\nSetup:\npip install \"flowindex[mcp]\"\nIn your project: flowindex init flowindex scan\nAdd to ~/.cursor/mcp.json (use your repo's absolute path for cwd):\n{\n\"mcpServers\": {\n\"flowindex\": {\n\"command\": \"flowindex\",\n\"args\": [\"mcp\"],\n\"cwd\": \"/absolute/path/to/your/repo\"\n}\n}\n}\n4. Restart Cursor — you get tools like get_change_impact, suggest_tests, make_context_pack, explain_entrypoint, get_repo_overview.\nExample workflow: before editing payments/ledger code, ask the agent to use make_context_pack or get_change_impact on that file — it pulls from the local graph, not a generic file search.\nHonest limits: static analysis + git heuristics only. Call paths resolve via imports but aren't compiler-grade. TS/JS is heuristic. Documented in the README.\n\nMIT · pip install flowindex · https://github.com/adu3110/flowIndex\n\nCurious if others use MCP for repo context and what tools you wish existed. Happy to fix setup issues if anyone tries it.\n```", "url": "https://wpnews.pro/news/mcp-server-for-repo-behavior-indexing-entrypoints-impact-context-packs-before", "canonical_source": "https://dev.to/aditi_chatterji_acb54593a/mcp-server-for-repo-behavior-indexing-entrypoints-impact-context-packs-before-the-agent-edits-bk7", "published_at": "2026-06-25 00:53:55+00:00", "updated_at": "2026-06-25 01:12:55.821733+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents", "large-language-models"], "entities": ["FlowIndex", "Cursor", "MCP", "SQLite", "GitHub"], "alternates": {"html": "https://wpnews.pro/news/mcp-server-for-repo-behavior-indexing-entrypoints-impact-context-packs-before", "markdown": "https://wpnews.pro/news/mcp-server-for-repo-behavior-indexing-entrypoints-impact-context-packs-before.md", "text": "https://wpnews.pro/news/mcp-server-for-repo-behavior-indexing-entrypoints-impact-context-packs-before.txt", "jsonld": "https://wpnews.pro/news/mcp-server-for-repo-behavior-indexing-entrypoints-impact-context-packs-before.jsonld"}}