Support running a remote MCP

Open
#861 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
67/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
ai, cli

Research direction

Start at the implementation of sonar integrate claude --global --non-interactive and trace how it installs hooks, the local MCP server, and tokens. Done means the integration can support a remote MCP without unnecessarily starting the local server, while preserving the useful token-handling behavior and clearly defining which hooks remain installed.

Written by the indexing model from the issue text.

Description

enhancement
Problem / use case

Hello,

my colleagues and I have an installation of SonarQube Enterprise with its own MCP server.

However running sonar integrate claude --global --non-interactive installs hooks and the MCP server running sonar mcp run.

Having this defeats the purpose of having a remote MCP.
Also, I'm not entirely sure which hooks are supposed to be installed for the claude integration - is it possible that the claude integration only has the MCP integration?

Proposed solution
  • Allow to run sonar integrate claude --global --non-interactive --remote-mcp
  • Or Allow to run sonar integrate claude --global --non-interactive --no-mcp + claude mcp add ...
Alternatives considered

Run the integration command then remove the MCP and install the remote MCP manually.

However performing the install through sonar is quite useful as it handles the token part.

Dominant language
TypeScript
Stars
279
Forks
19
Avg merge
1d 22h
Merged PRs (30d)
114

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SonarSource/sonarqube-cli

All issues in SonarSource/sonarqube-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.