Token导航 LogoToken导航TokenDH.com
Sonar MCP Server logo
开发工具stdio官方级别未说明来源级核验

Sonar MCP Server

MCP Server

@modelcontextprotocol/inspector

A MCP server implementation for the SonarQube Cloud API in Golang.

工具数

0

提示词数

0

GitHub Stars

2

资源数

0
代码分析GoClaudeClaude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

lreimer

提供方

lreimer

最后核验

2026/5/18 02:52

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx @modelcontextprotocol/inspector go run main.go

详细介绍

声纳MVP服务器

用于Golang SonarQube Cloud API的MCP服务器实现。

构建和发布

# to quickly build the latest snapshot
goreleaser build --snapshot --clean
goreleaser release --skip=publish --snapshot --clean

使用说明

如果您想在本地使用该工具,例如使用Claude Desktop,请使用以下工具 MCP服务器的配置。

{
    "mcpServers": {
      "sonar": {
        "command": "/Users/mario-leander.reimer/Applications/sonar-mcp-server",
        "args": ["-t", "stdio"],
        "env": {
          "SONAR_TOKEN": ">"
        }
      }
    }
}

或者,您可以使用MCP内省器进行简单的本地开发:

# as stdio binary
npx @modelcontextprotocol/inspector go run main.go

# as SSE server using 
go run main.go --transport sse
npx @modelcontextprotocol/inspector npx mcp-remote@next http://localhost:8080/sse
npx @modelcontextprotocol/inspector

部署

目前使用手动Google Cloud Run部署。两者都可以部署 直接从源代码或使用构建在Github上的Docker镜像。

# create a new secret for the SONAR_TOKEN
gcloud services enable secretmanager.googleapis.com
print $SONAR_TOKEN | gcloud secrets create sonar-token --data-file=-

# next deploy the local build from source to Cloud Run
gcloud services enable run.googleapis.com cloudbuild.googleapis.com artifactregistry.googleapis.com

gcloud secrets add-iam-policy-binding sonar-token \
  --member=serviceAccount:343509396461-compute@developer.gserviceaccount.com \
  --role=roles/secretmanager.secretAccessor

gcloud run deploy sonar-mcp-server --source=. \
  --region=europe-north1 \
  --port=8080 --allow-unauthenticated \
  --set-secrets=SONAR_TOKEN=sonar-token:latest \
  --set-env-vars=BASE_URL=https://sonar-mcp-server-343509396461.europe-north1.run.app

gcloud run services delete sonar-mcp-server --async --region=europe-north1

维护者

M.-利安德·莱默(@lreimer),

许可证

此软件是在麻省理工学院开源许可证下提供的,请阅读 LICENSE 文件以获取详细信息。

目录标签

目录标签

代码分析GoClaudedeveloper-toolssonarqubesonarmcp-servermcp-go本地部署MCP服务器Golang云API

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

@modelcontextprotocol/inspector

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP