MemoryRouter
Integration guide

Connect JetBrains Junie to MemoryRouter

Give Junie a remote MCP server backed by your MemoryRouter vault, then let the agent start a task with the architecture decisions and constraints you settled in an earlier session.

Before you connect

Use the Junie plugin inside a JetBrains IDE or the Junie CLI, both part of JetBrains AI, and check that your JetBrains AI plan covers Junie. Junie reads MCP servers from JSON: project scope is .junie/mcp/mcp.json in the repository and user scope is ~/.junie/mcp/mcp.json on your machine. Pick user scope when you want the vault available in every project.

Set up JetBrains Junie

  1. 1

    Add the server to mcp.json

    Run /mcp in Junie and press Ctrl+A to open the MCP Installation Assistant, or add the entry yourself. Keep this in the user-scope file so a committed project file never carries your connection details.

    {
      "mcpServers": {
        "MemoryRouter": {
          "url": "https://mcp.memoryrouter.ai/mcp"
        }
      }
    }
  2. 2

    Authorize in the browser

    Junie lists the server as Authorization required. Select it, choose Authorize, and complete the MemoryRouter sign-in on the page that opens, choosing the vault Junie should read and write. The status changes to Active when the credentials land.

  3. 3

    Point Junie at the tools

    Ask Junie what tools it has, or name MemoryRouter directly in a prompt. Configured MCP tools are called by the agent when it needs them rather than appearing in the / menu.

Check the connection

Ask Junie to search MemoryRouter for a decision you saved elsewhere, then have it save a unique test fact and confirm the write. Start a new task in a different project and ask for that second fact by description, without pasting the text of it.

What to expect

Authorization is per endpoint, so one sign-in covers the projects, worktrees and subagent directories that point at the same URL. If you delete or change the server entry, Junie can drop the stored credentials and you will authorize again. Junie’s MCP client runs the browser OAuth flow; JetBrains AI Assistant’s separate MCP client does not, which is why this guide configures Junie.