MemoryRouter
Sourcegraph Cody memory

Cody memory: repository context per chat, and the enterprise flag

Cody is strongest when the codebase is the context. Its blind spot is everything you decided outside the codebase, which resets with each chat.

Sourcegraph. Sources checked 2026-09-25.

How Cody handles memory today

Cody grounds answers in your repositories and, on enterprise deployments, can fetch context from external tools through its agentic context feature. That external tooling is gated: the agentic-context MCP support requires a Sourcegraph Enterprise instance with the feature flag enabled.

On Cody Free or Pro without an enterprise instance, there is no supported path to an external memory server, so each chat starts from scratch.

What Sourcegraph Cody forgets

Repository context is not project memory, and a chat boundary erases the difference.

The fix with MemoryRouter

Where Cody can call MCP tools, bridge it to MemoryRouter with mcp-remote and the vault becomes another source of grounded context.

  1. 1

    Confirm the enterprise requirement

    MCP support in Cody runs through agentic context fetching, which needs a Sourcegraph Enterprise instance with the agentic-context-mcp-enabled flag on. Verify first; there is no user-level switch for this.

  2. 2

    Add the bridge to VS Code settings

    settings.json (JetBrains uses cody_settings.json)

    {
      "cody.mcpServers": {
        "memoryrouter": {
          "command": "npx",
          "args": ["-y", "mcp-remote", "https://mcp.memoryrouter.ai/mcp"]
        }
      }
    }
  3. 3

    Verify with a recall

    Ask Cody to search memory for a fact you stored from another tool, which also confirms the OAuth bridge is signed in.

See the Cody setup and alternatives

The Cody page explains the enterprise requirement and what to use when it is not available. 14-day free trial.

Related

Sourcegraph Cody memory FAQ

Sources

Sources checked 2026-09-25. Tool behavior changes; check the vendor docs before relying on a detail.

Start free