DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to let a coding agent pull ranked context over MCP with BGTS Context Engine

Connect an MCP-capable coding agent to the code graph so it asks before it searches.

Short answer: docker compose -f deploy/docker-compose.yml up -d; then pip install bgts-context-engine; bce migrate. All steps.

Who it is forA team running an MCP-capable coding agent on a large repository that spends many tool calls grepping for the files a task touches.

The problemThe agent re-reads the same context on every turn while it searches the tree, which costs tokens, time and tool calls.

The outcomeThe agent starts from a ranked answer served over stdio and adds to it only when it needs more, so it makes fewer tool calls and turns.

What you need first

  • Docker with Docker Compose, to run PostgreSQL 16 with Apache AGE and pgvector
  • Python with pip
  • A local repository to index
  • A coding agent that can call MCP tools, or the bce command line

Steps

  1. docker compose -f deploy/docker-compose.yml up -d
  2. pip install bgts-context-engine
  3. bce migrate
  4. bce index --repo /path/to/your/repo --name my-service
  5. pip install "bgts-context-engine[mcp]" (inferred, check the README)
  6. bce serve-mcp

Prompt for your agent

In the bgts-context-engine setup, make sure the repository at <target repo path> is indexed, then start the MCP server with bce serve-mcp and connect the agent to it over stdio. Expected output: the agent gets a ranked answer for the task <task text> before any grep or glob call. Verify that the agent's first tool call is to the context tool and that the returned symbols include the files the task changes.

Caveat. The README says the MCP surface needs the mcp extra, but its exact install command is cut off in the text provided, so the extra install step above is inferred.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for bgts-ai-org/bgts-context-engine and "Let a coding agent pull ranked context over MCP"

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