Skip to article

Install in your coding agent

Install Merget in Claude Code, Codex, Copilot, Cursor, Devin, Kiro, Antigravity, Replit or any other coding agent: one prompt, the plugin or the MCP server.

On this page

Merget works in any coding agent that can connect to a remote MCP server: Claude Code, Codex, GitHub Copilot, Cursor, Devin, Kiro, Google Antigravity, Replit Agent and many others. One prompt sets any of them up, and this page has the steps for each agent for when you would rather do it yourself, or your agent cannot. For what agents can do and how access is controlled, see Agents and access; for the server's tools, see MCP server.

Tip

Let your agent do this. Paste this prompt into your coding agent. It works out which agent it runs in, installs what that agent needs and walks you through signing in and setting up Merget:

Text
Fetch and execute the instructions to set me up for Merget from https://sema.merget.ai/agent-setup/prompt.md

Select Onboard your agent to Merget in the dashboard to copy the same prompt directly. See Onboard your agent.

What gets installed

Whatever the agent, Merget adds two things to it:

  • The MCP server. A remote server named merget at https://sema.merget.ai/mcp, which gives the agent Merget's thirty tools: reading pull requests, their credits and the code graph, and operating Merget the way its dashboard does. The agent signs in to it in your browser, with the permissions and organization you approve; you never handle a token. See MCP server.

  • The four skills. merget-setup, merget-operate, merget-pr and merget-graph teach the agent when and how to use those tools. See The skills.

The plugin, published in the public repository MergetAI/merget-plugin, packages both. An agent that takes plugins (Claude Code, Codex, GitHub Copilot, Cursor, Devin, Kiro and Antigravity) gets the server and the skills in one install, and updates them with the plugin. Every other agent adds the server in its MCP settings and installs the skills from the same repository with the skills command-line tool, or does without the skills. The plugin and the skills are published under the license in that repository; your use of the server is under the API and Agent Terms.

Two things to avoid:

  • Install one route, not both. A plugin already adds the server. An agent with the plugin and a hand-added server at the same address lists every tool twice; remove one of the two.

  • Plugin agents already have the skills. Run npx skills add only in an agent without the plugin. In a plugin agent it gives you a second copy of each skill.

An agent without a shell, such as a chat app, cannot run the commands below: you run them, or follow the steps in the app's settings. If an npx … -g command asks for approval to write outside the project, that is your agent's sandbox asking; allow it once.

Before you start

  • You need a Merget account that belongs to an organization using Merget, with a second factor set up. See Sign in and organizations. An agent can do everything after that, but not create the account or the organization.

  • Agents must be allowed in the organization, and on the repositories the agent should work with. See Control agent access.

  • If you added Merget to a client before October 2026 and turned individual tools on or off there, set those choices again: Merget renamed its tools, and the earlier choices apply to none of them. See If you chose tools before October 2026.

Claude Code

The plugin is merget in a marketplace named merget-queue. Run these in Claude Code:

Text
/plugin marketplace add MergetAI/merget-plugin
/plugin install merget@merget-queue
/reload-plugins

The first command adds the marketplace. The second installs the plugin, after opening its details so you can choose a scope (Install for you covers every project), and the third loads it into the session you are in. From a terminal, the same two steps are claude plugin marketplace add MergetAI/merget-plugin and claude plugin install merget@merget-queue.

Claude Code keeps a plugin up to date only when auto-update is on for its marketplace, and for merget-queue it is off until you turn it on (Claude Code docs): run /plugin, open Marketplaces, select merget-queue and choose Enable auto-update.

Install with auto-update on

To install with auto-update on in one step, add these entries to your Claude Code user settings, ~/.claude/settings.json (on Windows, %USERPROFILE%\.claude\settings.json). Merge them into what the file already has: if it already has an extraKnownMarketplaces or enabledPlugins object, add the entry inside that object instead of writing the key a second time.

JSON
{
  "extraKnownMarketplaces": {
    "merget-queue": {
      "source": { "source": "github", "repo": "MergetAI/merget-plugin" },
      "autoUpdate": true
    }
  },
  "enabledPlugins": {
    "merget@merget-queue": true
  }
}

Then start a new Claude Code session. Claude Code adds the marketplace and downloads the plugin in the background; if it shows Plugins changed. Run /reload-plugins to activate., run /reload-plugins. The same entries turn auto-update on for a marketplace you added before.

To give everyone who works in a repository the plugin, commit the same entries to the repository's .claude/settings.json. Claude Code applies them for each teammate once they trust the repository's folder; a teammate who doesn't want the plugin sets "merget@merget-queue": false in .claude/settings.local.json. Cloud sessions don't read these entries. To cover every computer in your company, an administrator sets the same entries in Claude Code's managed settings (Claude Code docs).

Sign in and use it

Ask for something Merget does, for example "Set up Merget for acme/payments" or "What did Merget find on acme/payments#241?" The first time Claude calls Merget, Claude Code opens your browser to sign in. If it does not, run /mcp, select the plugin's server, plugin:merget:merget, and authenticate. Sign in with your Merget account and second factor, check the consent page, choose an Organization and select Approve; see Sign in and consent. Back in Claude Code, /mcp shows the server as connected. To sign in again from scratch, choose Clear authentication on the server in /mcp first.

The plugin's tools appear to Claude Code as mcp__plugin_merget_merget__ followed by the tool's id, for example mcp__plugin_merget_merget__merget_pr_findings; a permission rule for mcp__plugin_merget_merget covers every tool. To update without auto-update, run claude plugin update merget@merget-queue in a terminal, or select the plugin in /plugin › Installed and choose Update now, then run /reload-plugins.

To add only the server, without the skills, run claude mcp add --transport http merget https://sema.merget.ai/mcp; add --scope user to use it in every project. A server added this way is listed in /mcp as merget. Don't add it beside the plugin.

Codex

The plugin installs in the Codex CLI and in the ChatGPT desktop app; the IDE extension has no plugins and takes the server alone. In a terminal:

Terminal
codex plugin marketplace add MergetAI/merget-plugin
codex plugin add merget@merget-queue

Or run /plugins inside Codex, find merget under the merget-queue marketplace and install it; in the desktop app, open the Plugins tab, search for Merget and select the plus button. Start a new session: the skills and tools load with it, and Codex opens your browser to sign in the first time it calls Merget.

To add only the server:

Terminal
codex mcp add merget --url https://sema.merget.ai/mcp
codex mcp login merget

The second command opens your browser for the sign-in; run it again to sign in afresh. Codex reads skills from ~/.agents/skills, so without the plugin you can add them with npx -y skills add MergetAI/merget-plugin -a codex -g -y.

GitHub Copilot

Copilot CLI. In a terminal:

Terminal
copilot plugin marketplace add MergetAI/merget-plugin
copilot plugin install merget@merget-queue

or, inside Copilot, /plugin marketplace add MergetAI/merget-plugin and /plugin install merget@merget-queue. Copilot signs in to Merget in your browser when it first calls the server, and copilot plugin update merget updates the plugin. To add only the server, run copilot mcp add --transport http merget https://sema.merget.ai/mcp, which writes it to ~/.copilot/mcp-config.json.

VS Code. Add the marketplace to your settings:

JSON
"chat.plugins.marketplaces": ["MergetAI/merget-plugin"]

Then run Chat: Open Customizations from the Command Palette, open Browse, find Merget and select Install; VS Code asks you to trust the marketplace the first time. (The editor adds a marketplace too, under Browse › the source menu › Configure Marketplaces › Add Marketplace.) Or do both steps in Copilot's chat, which keeps a plugin list of its own, separate from the editor's:

Text
/plugin marketplace add MergetAI/merget-plugin
/plugin install merget@merget-queue

To add only the server, open this address in your browser, which hands the entry to VS Code:

Text
vscode:mcp/install?%7B%22name%22%3A%22merget%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fsema.merget.ai%2Fmcp%22%7D

or run this command, which adds it to your user profile's mcp.json:

Terminal
code --add-mcp '{"name":"merget","type":"http","url":"https://sema.merget.ai/mcp"}'

or write it to .vscode/mcp.json in your workspace, under servers:

JSON
{
  "servers": {
    "merget": {
      "type": "http",
      "url": "https://sema.merget.ai/mcp"
    }
  }
}

Run MCP: List Servers, select merget and start it; VS Code opens your browser to sign in, and Configure Tools in the chat input then lists Merget's tools.

Copilot cloud coding agent. Copilot's cloud agent takes its MCP servers from the repository's settings and does not sign in through a browser, so it needs an agent key. Create one from Settings › Agents › Create agent key, and store it in the repository as an Agents secret named COPILOT_MCP_MERGET_KEY: Copilot passes only secrets whose names start with COPILOT_MCP_ to its MCP configuration. Then open the repository's Settings › Copilot › MCP servers, paste this under MCP configuration and select Save MCP configuration:

JSON
{
  "mcpServers": {
    "merget": {
      "type": "http",
      "url": "https://sema.merget.ai/mcp",
      "headers": {
        "Authorization": "Bearer $COPILOT_MCP_MERGET_KEY"
      },
      "tools": ["*"]
    }
  }
}

The agent's next task lists Merget's tools, with the permissions the key was given. The other runners without a browser are under Cloud and headless agents.

Cursor

Open this address to add the server with one click, and sign in when Cursor asks:

Text
cursor://anysphere.cursor-deeplink/mcp/install?name=merget&config=eyJ1cmwiOiJodHRwczovL3NlbWEubWVyZ2V0LmFpL21jcCJ9

The config is the server's entry, encoded. Or write it to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:

JSON
{
  "mcpServers": {
    "merget": {
      "url": "https://sema.merget.ai/mcp"
    }
  }
}

Cursor opens your browser when the server first needs a sign-in; to check or start it, open Customize in the sidebar and make sure the merget server is on. In the Cursor CLI, agent mcp login merget signs in. Then install the skills:

Terminal
npx -y skills add MergetAI/merget-plugin -a cursor -g -y

Cursor's plugins install from a marketplace: a team admin imports the repository under Dashboard › Plugins & MCPs › Team Marketplaces › Add Marketplace › Import from Repo, and teammates then install Merget from Customize. That gives the server and the skills together, so skip the two steps above. Cursor's cloud agents take their servers from the MCP menu on cursor.com/agents, and sign in to Merget there.

Devin

In Devin's CLI:

Terminal
devin plugins install MergetAI/merget-plugin

It installs to your personal scope, so it also reaches your cloud sessions. In the web app, open Customize › Plugins, choose Add plugin › From repository and enter MergetAI/merget-plugin. Then select Connect on the plugin's MCP server, offered after the install and on its row under Customize › MCPs, and sign in to Merget in your browser.

To add only the server, open Customize › MCPs › Add MCP › Add custom MCP, choose the HTTP transport, enter https://sema.merget.ai/mcp as the server URL, choose OAuth as the authentication method, save, and select Connect. In the CLI, run devin mcp add merget --url https://sema.merget.ai/mcp, then devin mcp login merget. Devin reads skills from ~/.config/devin/skills, ~/.agents/skills and a repository's .agents/skills: npx -y skills add MergetAI/merget-plugin -a devin -g -y installs them.

Kiro

Merget's plugin is also a Kiro power: in the Powers panel, choose Add Custom Power, then Import power from GitHub, enter https://github.com/MergetAI/merget-plugin and select Install. The power brings the server and the skills.

To add only the server, open this address, which fills in the entry for you:

Text
https://kiro.dev/launch/mcp/add?name=merget&config=%7B%22url%22%3A%22https%3A%2F%2Fsema.merget.ai%2Fmcp%22%7D

Or write it to .kiro/settings/mcp.json in the workspace, or ~/.kiro/settings/mcp.json for every workspace:

JSON
{
  "mcpServers": {
    "merget": {
      "url": "https://sema.merget.ai/mcp"
    }
  }
}

Kiro opens your browser to sign in when it connects. For the skills in Kiro's CLI, run npx -y skills add MergetAI/merget-plugin -a kiro-cli -g -y. Kiro Web takes custom servers with headers only, so it needs an agent key; see Cloud and headless agents.

Google Antigravity and Gemini CLI

In Antigravity:

Terminal
agy plugin install https://github.com/MergetAI/merget-plugin

The plugin brings the server and the skills, and Antigravity signs in through your browser when the server first needs it. To add only the server, add it to ~/.gemini/config/mcp_config.json, or pick it from the MCP Store once Merget is listed there:

JSON
{
  "mcpServers": {
    "merget": {
      "serverUrl": "https://sema.merget.ai/mcp"
    }
  }
}

Gemini CLI has no plugins. Add the server and the skills:

Terminal
gemini mcp add --transport http merget https://sema.merget.ai/mcp -s user
npx -y skills add MergetAI/merget-plugin -a gemini-cli -g -y

The first command writes the server to ~/.gemini/settings.json for every project (-s user), as httpUrl under mcpServers. Write the entry by hand with that key too: Gemini CLI reads a server's url as an SSE endpoint, which is also why the generic npx add-mcp command from Other agents is not used here. Gemini CLI opens your browser to sign in, and /mcp auth merget signs in again.

Replit Agent

Open this address to add Merget to your workspace's integrations:

Text
https://replit.com/integrations?mcp=eyJkaXNwbGF5TmFtZSI6Ik1lcmdldCIsImJhc2VVcmwiOiJodHRwczovL3NlbWEubWVyZ2V0LmFpL21jcCJ9

Or open your workspace's Integrations settings, select + Add MCP server, enter Merget as the display name and https://sema.merget.ai/mcp as the server URL, and select Test & save; Replit takes you through the sign-in. Replit reads skills from the project's .agents/skills folder, so install them in each project, without -g:

Terminal
npx -y skills add MergetAI/merget-plugin -a replit -y

claude.ai, Claude Desktop and ChatGPT

These chat apps take the server as a connector; there are no skills to install and nothing to run.

  • claude.ai and Claude Desktop: open Customize › Connectors, select + Add, then Add custom connector, name it Merget, enter https://sema.merget.ai/mcp as the server URL and select Continue. Keep Sign in now and Use Claude's published identity, then select Add. The choices in that dialog, and what to do when connecting fails, are under claude.ai and Claude Desktop.

  • ChatGPT: open ChatGPT's plugins page, select the plus button, then Add custom MCP server, enter a name and https://sema.merget.ai/mcp as the server URL, accept the warning and select Create as a plugin. ChatGPT signs you in to Merget when it discovers the server's sign-in. Your account's or workspace's policies decide whether you may add custom servers. A listing in ChatGPT's directory, which needs none of this, comes later.

Other agents

Any agent that can connect to a remote MCP server and sign in through your browser works. Three have their own commands:

  • Amp: amp mcp add merget https://sema.merget.ai/mcp, then start Amp: it opens the server's sign-in page.

  • Warp: Settings › Agents › MCP servers › + Add, and paste the JSON below; or write it to ~/.warp/.mcp.json.

  • OpenCode: in opencode.json, under mcp, add "merget": {"type": "remote", "url": "https://sema.merget.ai/mcp", "enabled": true}, then run opencode mcp auth merget.

For Cline, Zed, JetBrains Junie, Goose, Factory Droid and any other agent, two command-line tools add the server and the skills to the agent you name:

Terminal
npx -y add-mcp https://sema.merget.ai/mcp -a <agent> -g -y
npx -y skills add MergetAI/merget-plugin -a <agent> -g -y

<agent> is the id each tool lists for your agent: cline, zed, junie and goose in both, and factory-droid in add-mcp but droid in skills. Without -a, each tool offers the agents it finds on your computer. Where neither tool knows your agent, add this entry in its MCP settings:

JSON
{
  "mcpServers": {
    "merget": {
      "type": "http",
      "url": "https://sema.merget.ai/mcp"
    }
  }
}

Whatever the client, the first call to Merget opens your browser: sign in, check the consent page and select Approve. See Check the consent page. If the client cannot sign in to remote servers at all, see Use an agent key instead.

Cloud and headless agents

Some agents run where no browser can open for them: Copilot's cloud coding agent, Kiro Web, Amp Orbs, Warp Oz, and any agent in a sandbox or a pipeline. They can't complete Merget's sign-in, which happens in your browser, and a token copied from elsewhere lasts an hour. For them, create an agent key: from Settings › Agents › Authorized agents, select Create agent key. Merget's sign-in page asks for a name, the organization, the permissions (the four read permissions, by default) and how long the key lasts (90 days, by default), and shows the key once. The runner sends it as Authorization: Bearer mgk_… on every request, and you revoke it under Authorized agents like any approval; see Agent keys. The dashboard offers keys once they are turned on for your Merget.

You create the key in your browser and put it in the runner's secret store; an agent never sees it in a prompt or a web address. Where each runner takes the header:

  • Copilot cloud coding agent: the repository's Settings › Copilot › MCP servers, with the key as an Agents secret named COPILOT_MCP_MERGET_KEY; the JSON is under GitHub Copilot.

  • Codex in a pipeline: in config.toml, give the merget server bearer_token_env_var = "MERGET_KEY" in place of codex mcp login, and set MERGET_KEY in the environment the run gets, such as a cloud environment's Environment variables.

  • Kiro Web: Agent Config › Powers & MCP › MCP server settings › Add server, type HTTP, https://sema.merget.ai/mcp as the URL and the header Authorization: Bearer ${MERGET_KEY}, with MERGET_KEY among the session's secrets.

  • Amp Orbs: in the repository's .amp/settings.json, or a skill's mcp.json, give merget under amp.mcpServers the url and "headers": {"Authorization": "Bearer ${MERGET_KEY}"}, with MERGET_KEY saved as a secret in Amp's workspace, project or personal settings; an orb doesn't read your local Amp settings.

  • Warp Oz: pass the server with --mcp to oz agent run-cloud, or under mcp_servers in the agent config file, with "headers": {"Authorization": "Bearer {{MERGET_KEY}}"} and MERGET_KEY stored as a managed secret with oz secret create; a URL server that needs a sign-in and sends no Authorization header can't be used by Warp's cloud agents.

  • A script: curl -H "Authorization: Bearer $MERGET_KEY" https://sema.merget.ai/v1/...; see HTTP API.

Four entry points, the setup prompt, the plugin, the MCP server with the skills, and the HTTP API, all go through Merget's sign-in and consent and reach the same findings, runs, queue, settings and code graph.

Illustration: every entry point shares one sign-in and the same permissions, whatever the agent.

What to look for
  • The setup prompt installs what your agent needs. The plugin gives Claude Code, Codex, Copilot, Cursor, Devin, Kiro and Antigravity the MCP server and the skills in one install; any other agent adds the MCP server and the skills itself; the HTTP API suits scripts.
  • Start sign-in from the agent, and choose its permissions and organization in your browser.
  • All entry points return the same documents and obey the same access controls.

The skills

Your agent loads a skill on its own when your request matches it. Most agents also let you ask for one by name; in Claude Code, for example, /merget:merget-pr.

merget-setup

merget-setup takes an organization from nothing to its first queue. The agent asks Merget where setup stands, then works through what is left with you: it gives you the page where your organization's owner connects GitHub, enables a repository, helps you choose its automation mode and target branch, and checks that GitHub lets Merget do what that mode needs. Steps in your browser and the owner's steps, such as connecting GitHub, stay yours; the agent never acts as an owner, and waits for you to finish them.

Example prompts:

  • "Set up Merget for my organization."

  • "Enable Merget on acme/payments." A repository starts in Queue mode unless you name another, as in "in Advisory mode": the agent says what Queue mode lets Merget do and asks before it turns the repository on.

  • "Is acme/payments ready for Queue mode? What is missing on GitHub?"

merget-operate

merget-operate runs Merget from your agent: reading and changing repository settings, driving the merge queue, and reading runs and analytics. The agent reads a repository's settings and their allowed values before changing any, and asks you before it merges, and above all before Merge anyway over failing CI. When a secret value is already in the conversation, it suggests you paste it in the dashboard instead. The organization owner's steps, such as pausing merges or changing members, stay with you: the agent gives you the dashboard page instead.

Example prompts:

  • "Batch up to four pull requests at a time on acme/payments."

  • "Retry #241 on acme/payments and tell me when it can merge."

  • "Hold back #241 and merge what is ready."

  • "How long did pull requests wait in the queue last week?"

merget-pr

merget-pr reads and explains Merget's analysis of a pull request: the verdict, each finding, the merge brief, the pull request's queue position and whether GitHub enforces the queue. Ask for it when you want to understand a Merget check, review a finding, find your place in the queue, or plan work on a pull request.

The skill tells the agent to:

  1. Read the pull request's findings first.

  2. Check the verdict, and whether the analysis describes an older commit than the pull request's current head.

  3. Go through the findings by class, then follow the suggested next steps.

  4. Switch to the graph when you ask why a finding exists.

Example prompts:

  • "Is acme/payments#242 blocked by Merget, and why?"

  • "What do I need to fix before #241 can merge?"

  • "Where is #245 in the merge queue, and what is ahead of it?"

  • "Summarize the merge brief for acme/payments#244."

  • "Is the queue enforced on the target branch?"

merget-graph

merget-graph queries Merget's code graph of any commit Merget has built. The agent uses it when you ask what calls a function or what a function calls, where a variable is defined or used, what a change reaches or depends on, what will break if a pull request merges, why a finding exists, or what a pull request changed at the symbol level. It also uses it to confirm a heuristic finding before acting on it.

For a useful answer, name a finding, file or symbol and the revision you want to inspect. If the answer is cut short, ask a narrower question.

Example prompts:

  • "Who still calls formatAmount on the target branch?"

  • "What does src/billing/format.ts line 42 depend on in pr:241:head?"

  • "What changed at the symbol level between the base and head of #241?"

  • "Show me the slice for the blocking finding on #242."

  • "What is #243 meant to do, according to its title and Merget's brief?"

Graph questions name a commit with a revision such as pr:241:head, pr:241:base, a commit sha or a branch name. See Revisions.

How your agent should read the results

Use the returned verdict, finding outcomes and current queue state together. See Findings and The Merget check.

  • Read whether the finding blocks. A Break, Interaction or Review break can block. A Review break blocks unless the repository sets review.l1 to advisory or off; see Review findings. A Possible break, Overlapping change or Review finding does not block. A finding that was cleared in the run is not outstanding work.

  • A blocking finding blocks in every mode. In Advisory mode Merget changes no branch, but a Break, Interaction or Review break still fails the Merget check and the verdict is blocked. Fix it on the branch, or dismiss it if it is wrong.

  • Pending is not clean. Wait for a completed analysis before treating the result as a verdict.

  • A failed run is not a clean result. Read the error and the latest run.

  • Check the analyzed commit. Findings from an older head may no longer describe the pull request.

  • Resolve a dependent conflict first. A shadowed finding is not independent evidence of a break.

  • An empty graph answer is not proof. A syntactic edge is less certain and may be missing or wrong, and coverage varies by language. Do not conclude from an empty answer that a caller or dependency does not exist.

  • Check publication and verification separately. A cleared finding may be held in the queue candidate; a published fix may still be waiting for CI.

Merging, retrying and changing settings act on real pull requests and repositories. The agent asks before it does them, and you can keep any of them for yourself by switching the permission off.

Updates

The server's tools live on Merget's side and update on their own. The skills, and the plugin that carries them, reach you the way your agent updates plugins:

  • Claude Code: with auto-update on, Claude Code checks for a new version in the background after a session starts and downloads it. The session you are in keeps the version it loaded and shows Plugin updated: merget · Run /reload-plugins to apply; your next session loads the new version either way. Without auto-update, run claude plugin update merget@merget-queue in a terminal, or select the plugin in /plugin › Installed and choose Update now, then run /reload-plugins.

  • Codex, Copilot CLI and Devin: run codex plugin marketplace upgrade merget-queue, copilot plugin update merget or devin plugins update merget.

  • Cursor, Kiro and Antigravity: update the plugin, or the power, where the agent lists it.

  • Skills you installed with npx skills: run the same npx -y skills add command again.

Change permissions or sign in again

To switch one of your agent's permissions off, or back on, open Settings › Agents › Authorized agents and use the switch beside it; no new sign-in is needed. See Change an agent's permissions.

To add a permission you did not approve at sign-in, switch organizations or start fresh, sign the agent in again:

  1. Sign out of the Merget server in the agent. In Claude Code, run /mcp, select the Merget server and choose Clear authentication. In Codex and the Cursor CLI, the login command (codex mcp login merget, agent mcp login merget) starts a new sign-in on its own; in Devin's CLI, run devin mcp logout merget, then devin mcp login merget; in OpenCode, run opencode mcp logout merget; in Gemini CLI, /mcp auth merget. In another client, remove the server and add it again.

  2. Authenticate again, and approve the permissions and organization you want on the consent page. If Merget's page reads Continuing as before… or Continue as before? instead, it is reusing your earlier approval and its organization: select Stop and review to choose the permissions and organization on the consent page. See If the page continues as before.

To stop an agent from using Merget, revoke it under Settings › Agents › Authorized agents. See Authorized agents.

Troubleshooting

What you seeWhat it meansWhat to do
The Merget server is not listed among the agent's MCP serversThe plugin is not installed or not enabled, or the session has not loaded it.Run the install commands for your agent again; in Claude Code include /reload-plugins and check /plugin. Elsewhere, start a new session.
Every Merget tool is listed twiceThe agent has the plugin and a hand-added server at the same address.Remove the hand-added server (in Claude Code, claude mcp remove merget), or uninstall the plugin.
The server shows as needing authenticationYou have not signed in yet, or your sign-in ended.Start the sign-in from the agent's MCP settings: /mcp in Claude Code, codex mcp login merget, devin mcp login merget, agent mcp login merget, opencode mcp auth merget, or Connect beside the server in an app.
Signing in keeps failing although it used to workThe agent kept sign-in details from before Merget's sign-in address changed.Clear the server's authentication, or remove the server and add it again; see If connecting fails.
Merget's sign-in page reads This sign-in link isn't valid and says the app isn't registered with MergetThe agent registered with Merget and went unused for months, so its registration lapsed, and the agent sent it again.Remove Merget from the agent and add it again. In Claude Code, run claude mcp logout plugin:merget:merget in a terminal, then authenticate again from /mcp. See If Merget says the app isn't registered.
Merget's sign-in page reads This request was refused with invalid_redirect_uriThe agent asked Merget to send your approval to an address off your computer that Merget does not accept yet.Update the agent to its current version and try again. If it persists, write to support@merget.ai with the agent, its version and the address the page shows; until then, use another agent from this page.
The consent page reads Merget doesn't recognize this applicationMerget doesn't list the agent's address. That is expected for an agent Merget doesn't list by name.Check that the address belongs to the agent you are connecting, and approve only if you started this sign-in yourself. See Check the consent page.
Claude Code asks again before it uses a Merget tool, or a permission rule for a Merget tool stopped applyingMerget renamed its tools in October 2026, and every tool id now starts with merget_. A rule that names a tool by its earlier id matches no tool.Approve the tool again when Claude Code asks, and write each rule that named a tool again with the tool's new name, such as mcp__plugin_merget_merget__merget_pr_findings. A rule that names only the server, mcp__plugin_merget_merget, covers every tool. Update the plugin too; see Updates.
insufficient_scopeThe agent lacks the permission the request needs, often merget:graph.read for graph questions or a write permission for a change.Switch it on in Settings › Agents, or sign in again and approve it.
agent_scope_disabledThe organization does not let agents use that permission.Ask an owner to allow it. See Organization permissions.
agent_access_disabledAgents are switched off for the organization, the repository is Off, or it is Findings only and you asked a graph question or a change.Ask an owner to change the switch, or someone with Maintain or Admin access on GitHub to change the repository level. See Control agent access.
session_requiredYou asked the agent to change what agents may do, to create an organization, or to take an organization owner's step such as connecting GitHub or pausing merges. Only a person does any of these, in the dashboard: an agent never acts as an owner.Make that change yourself in Settings › Agents, the repository's settings or, for an owner's step, the page the agent gives you; for a new organization, Create an organization.
repo_not_foundThe repository is not one this approval can see, for example because you approved a different organization, or it is private and your GitHub account can't read it.Check the repository name, then sign in again and choose the right organization.
github_link_requiredNo GitHub account is linked to your Merget account, so only public repositories can be read.Link your GitHub account in Settings › Account.
token_expired or token_revokedThe access ended, or you switched a permission off and the agent has not refreshed yet.Ask again; if it persists, sign in again.
A graph answer says the graph is pendingThe code graph for that commit is not ready yet.Wait the suggested time and ask again. The first question on a new commit often takes longer; to have graphs ready in advance, see Keep the Context Map ready.
A graph answer is truncatedThe answer was larger than its budget.Ask a narrower question, such as one file or one symbol.
rate_limited or graph_busyToo many requests in a short time, or too many graph questions at once.Wait a moment and try again.
The verdict is pendingMerget has not finished analyzing the current head.Wait for the Merget check to finish, then ask again.

For more error codes, see MCP server errors and Troubleshooting.