Integration

VS Code + agimem

Give GitHub Copilot in VS Code persistent memory across coding sessions.

VS Code with GitHub Copilot supports MCP servers, letting your AI coding agent connect to external tools. With agimem, Copilot can remember your project's architecture, conventions, debugging context, and preferences — persisting across sessions so you spend less time re-explaining and more time building.

GitHub Copilot in VS Code
VS Code local agent sessions

Setup in 4 steps

1

Create a Capsule on agimem

Sign up at agimem.dev and create a Capsule from the dashboard. Create one per project or one shared Capsule for all your work.

2

Generate an API key

Click your Capsule and generate an API key starting with agm_. Copy it immediately — it's only shown once.

3

Add the MCP server to VS Code

Create a .vscode/mcp.json file in your workspace and paste the configuration below. For all workspaces, run MCP: Open User Configuration from the Command Palette instead.

4

Start using memory

Copilot now has access to agimem's memory tools. Ask it to store project conventions or architecture notes, and they'll carry over to every future session.

Fastest way: paste a prompt

Give this prompt to your VS Code agent and it will configure everything automatically:

Agent prompt

Set up agimem as my memory server: https://agimem.dev/setup

Manual configuration

Create a .vscode/mcp.json file in your project root with this configuration. VS Code asks for your API key when the server first starts and stores it securely, so the file is safe to commit:

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "agimem-api-key",
      "description": "agimem API key",
      "password": true
    }
  ],
  "servers": {
    "agimem": {
      "type": "http",
      "url": "https://agimem.dev/api/mcp",
      "headers": {
        "Authorization": "Bearer ${input:agimem-api-key}"
      }
    }
  }
}

What your agent can do with agimem

  • Store and recall coding conventions
  • Remember project architecture across sessions
  • Share context between multiple agents
  • Keep research notes and findings persistent
  • Track preferences and writing style
  • Maintain state for long-running automations
  • Organize memories with tags
  • Set time-to-live for temporary data

Frequently asked questions

Does VS Code support MCP servers?

Yes. You can configure remote MCP servers like agimem via .vscode/mcp.json or your user-level MCP configuration.

Project-level or user-level config?

Use project-level (.vscode/mcp.json) for project-specific memory, or run MCP: Open User Configuration for a global memory that works across all workspaces.

Does this work in Copilot harness sessions?

Not with this file: servers that prompt for input aren't forwarded to Copilot harness sessions. For those, add agimem to ~/.copilot/mcp-config.json, which uses a top-level mcpServers object, "type": "http", and environment references such as ${AGIMEM_API_KEY}.

Can I use this alongside Cursor or Windsurf?

Yes. Point any MCP-compatible client at the same Capsule and they share the same memory. Your agent's context stays in sync across editors.

Ready to get started?

Create a free Capsule and connect VS Code.