Dependency Management Mcp Server

com.sonatype由 sonatype.com 发布官方发布者v1.0.2更新于 Oct 24, 2026

Sonatype component intelligence: versions, security analysis, and Trust Score recommendations

已验证Streamable HTTP可网页运行开发者工具安全与监控

概览

AI 生成的概览

Sonatype 远程服务器,让 AI 助手查询开源依赖的版本、漏洞、许可证与升级建议。

可以做什么
查询指定组件版本,返回 CVE 及 CVSS 评分、许可证、分类、生命周期终止状态和目录日期(getComponentVersion)。获取组件最新版本,并附带完整安全分析、策略违规、许可证与风险评分(getLatestComponentVersion)。根据当前版本给出推荐升级版本,未提供版本时给出起步版本建议(getRecommendedComponentVersions)。将当前依赖与最新版本对比,并给出漏洞修复与许可证合规建议。
适用场景
适合助手在添加、升级或审查开源依赖时,先获取漏洞、许可证和健康度信息再确定版本。也适合需要在 IDE 工作流内完成软件供应链安全检查的团队。
运行要求
通过 HTTP 访问的远程 MCP 端点,无需本地安装包;仅支持 stdio 的客户端(如 IntelliJ)需借助 npm 的 mcp-remote 桥接。需要 Sonatype Guide 账号及个人 API 令牌,以 Authorization Bearer 请求头发送(Codex 中可用 SONATYPE_GUIDE_MCP_TOKEN 环境变量)。需能访问 Sonatype 端点。
安装前请注意
个人 API 令牌用于认证所有请求,请勿提交到版本控制,支持时优先使用环境变量形式。关于依赖的查询会发送到 Sonatype 远程服务。查询本身为只读,但助手建议的升级仍应在应用前人工确认。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Dependency Management Mcp Server,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.sonatype%2Fdependency-management-mcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "dependency-management": {
      "type": "http",
      "url": "https://mcp.guide.sonatype.com/mcp"
    }
  }
}

README

Sonatype MCP Server

A Model Context Protocol (MCP) server that connects AI assistants to Sonatype's dependency management and security intelligence platform. Empower your AI coding assistant with real-time insights into open source security vulnerabilities, license compliance, and dependency health.

Overview

The Sonatype MCP Server enables AI assistants to access Sonatype's comprehensive dependency intelligence directly within your development workflow. By integrating with the Model Context Protocol, your AI assistant can help you make informed decisions about dependencies, identify security risks, and maintain compliance — all without leaving your IDE.

Key Features

  • Component Version Selection - Select the best version the first time, without the side quest
  • Security Vulnerability Scanning - Identify known vulnerabilities in your project dependencies
  • License Compliance Checking - Ensure your dependencies meet your organization's license policies
  • Dependency Health Analysis - Get insights into dependency quality, maintenance status, and risk factors
  • Real-time Security Advisories - Stay informed about the latest security threats affecting your dependencies
  • Remediation Guidance - Receive actionable recommendations to fix vulnerabilities and compliance issues

Prerequisites

  • For IDEs or tools that only support stdio MCP servers (like IntelliJ), install mcp-remote:
    bash
    npm install -g mcp-remote

Setup

The Sonatype MCP Server runs as a remote MCP server. Choose the setup instructions for your IDE or AI assistant:

Gemini Code Assist

Replace <your-token> with your personal API token generated at https://guide.sonatype.com/settings/tokens

json
{  "mcpServers": {    "discoveredServer": {      "httpUrl": "https://mcp.guide.sonatype.com/mcp",      "headers": {        "Authorization": "Bearer <your-token>"      }    }  }}

Claude Code

Add the server using the Claude CLI:

Replace <your-token> with your personal API token generated at https://guide.sonatype.com/settings/tokens

bash
claude mcp add --transport http --scope user sonatype-mcp https://mcp.guide.sonatype.com/mcp --header "Authorization: Bearer <your-token>"

VS Code Copilot

Add the following configuration to your global VS Code mcp.json or create a .vscode/mcp.json file in your workspace:

Replace <your-token> with your personal API token generated at https://guide.sonatype.com/settings/tokens

json
{  "servers": {		"sonatype-mcp": {			"url": "https://mcp.guide.sonatype.com/mcp",			"type": "http",			"headers": {				"Authorization": "Bearer <your-token>"			}		}	}}

Windsurf

Create or edit ~/.codeium/windsurf/mcp_config.json:

Replace <your-token> with your personal API token generated at https://guide.sonatype.com/settings/tokens

json
{  "mcpServers": {    "sonatype-mcp": {      "command": "npx",      "args": [        "mcp-remote",        "https://mcp.guide.sonatype.com/mcp",        "--header",        "Authorization: Bearer <your-token>"      ]    }  }}

IntelliJ with Junie

Global Scope: Go to IDE settings → Tools → Junie → MCP Settings. Click "+" and add:

Project Scope: Create .junie/mcp/.mcp.json in your project root:

Replace <your-token> with your personal API token generated at https://guide.sonatype.com/settings/tokens

json
{  "mcpServers": {    "sonatype-mcp": {      "command": "npx",      "args": [        "mcp-remote",        "https://mcp.guide.sonatype.com/mcp",        "--header",        "Authorization: Bearer <your-token>"      ]    }  }}

Kiro

Create or edit ~/.kiro/settings/mcp.json:

Replace <your-token> with your personal API token generated at https://guide.sonatype.com/settings/tokens

json
{  "mcpServers": {    "sonatype-mcp": {      "command": "npx",      "args": [        "mcp-remote",        "https://mcp.guide.sonatype.com/mcp",        "--header",        "Authorization: Bearer <your-token>"      ]    }  }}

Cursor

Cursor supports remote servers directly. Add to your ~/.cursor/mcp.json:

Replace <your-token> with your personal API token generated at https://guide.sonatype.com/settings/tokens

json
{  "mcpServers": {    "sonatype-mcp": {      "type": "http",      "url": "https://mcp.guide.sonatype.com/mcp",      "headers": {        "Authorization": "Bearer <your-token>"      }    }  }}

Codex (IDE Plugin & CLI)

For both methods below, define an environment variable SONATYPE_GUIDE_MCP_TOKEN for your personal API token generated at https://guide.sonatype.com/settings/tokens.

Method 1: Using CLI command: codex mcp add sonatype-mcp --url https://mcp.guide.sonatype.com/mcp --bearer-token-env-var SONATYPE_GUIDE_MCP_TOKEN

Method 2: Create or edit ~/.codex/config.toml:

toml
[mcp_servers.sonatype-mcp]url = "https://mcp.guide.sonatype.com/mcp"bearer_token_env_var = "SONATYPE_GUIDE_MCP_TOKEN"

Authentication

The Sonatype MCP Server uses API token authentication:

  1. Create a Sonatype Guide account and generate your personal API token at https://guide.sonatype.com/settings/tokens
  2. Add the token to your MCP configuration using the Authorization: Bearer <your-token> header format
  3. Replace <your-token> with your actual token in the configuration examples above

Your API token authenticates all requests automatically. Keep your token secure and never commit it to version control.

Configuring AI Assistant Rules

To maximize the effectiveness of the Sonatype MCP Server, configure your AI assistant to prioritize using Sonatype MCP tools when working with dependencies, packages, or software supply chain security. Below are instructions for each supported IDE or tool.

Claude Code

Create custom instructions using CLAUDE.md files:

Global (all projects): Create ~/.claude/CLAUDE.md

Project (specific repository): Create .claude/CLAUDE.md in your project root

Add the following instruction:

markdown
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.

Cursor

Create a .cursorrules file in your project root:

Project (specific repository): Create .cursorrules in your project root

Add the following instruction:

markdown
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.

VS Code Copilot

Create custom instructions using a .github/copilot-instructions.md file:

Project (specific repository): Create .github/copilot-instructions.md in your project root

Add the following instruction:

markdown
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.

Windsurf

Create rules using Windsurf's Customizations feature:

Global (all projects):

  1. Click the "Rules, Memories & Workflows" icon in the top right of Cascade Code or search Rules in Windsurf Settings
  2. Navigate to "Rules"
  3. Click "+ Global" to create a new global rule
  4. Add the following content:
markdown
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.

Project (specific repository): Follow the instructions for Global but click "+ Workspace" or create .windsurf/rules/sonatype.md in your project root:

markdown
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.

IntelliJ with Junie

Create custom guidelines using a .junie/guidelines.md file:

Project (specific repository): Create .junie/guidelines.md in your project root

Add the following instruction:

markdown
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.

Kiro

Create steering files in the .kiro/steering/ directory:

Project (specific repository): Create .kiro/steering/sonatype.md in your project root

Add YAML front matter to make it always included:

markdown
---inclusion: always---
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.

Gemini Code Assist

Create custom instructions using GEMINI.md files:

Global (all projects): Create ~/.gemini/GEMINI.md

Project (specific repository): Create GEMINI.md in your project root

Add the following instruction:

markdown
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.

Example Use Cases

In the normal course of development, LLMs will decide to use or upgrade dependencies. Our MCP tools will be used transparently, offering better suggestions with more up-to-date information, eliminating the side quest of validating component and version choices.

Here are some ways to leverage the Sonatype MCP Server explicitly in your development workflow:

Analyze a Specific Version

Ask your AI assistant:

"Get detailed security information for react 18.2.0"

The assistant will return comprehensive details including CVEs with CVSS scores, license information, categories, end-of-life status, and catalog date.

Find the Latest Stable Version

Ask your AI assistant:

"What's the latest stable version of spring-boot?"

The assistant will return the latest version with full security analysis, policy violations, licenses, risk scores, and upgrade recommendations.

Security Assessment Workflow

The assistant can use both tools to compare your current version with the latest and provide actionable security guidance.

Available Tools

The Sonatype MCP Server provides three powerful tools for AI assistants:

  • getComponentVersion - Gets component information about a specific version of a component
  • getLatestComponentVersion - Gets component information about the latest version of a component
  • getRecommendedComponentVersions - Gets a set of recommended versions to upgrade to based on the current version of a component. If no version is provided, gets a set of recommended versions to start with for the component

Support & Feedback

About Sonatype

Sonatype is the leader in software supply chain security, providing solutions that help organizations manage open source risk throughout the development lifecycle. Learn more at sonatype.com.

Built with ❤️ for developers who care about secure software supply chains.

来源:README.md,提交 6ce32d1

工具

0
该服务器需要 API 密钥等凭据,因此 SourceWeft 无法在没有凭据的情况下读取其工具,也未收录。

版本历史

1
  1. v1.0.2最新Sep 16, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Sonatype 集成