Integrations
Supports Maven dependency checking in Gradle build tool format
Maven 依赖 MCP 服务器
一个 MCP(模型上下文协议)服务器,提供用于检查 Maven 依赖项版本的工具。此服务器使 LLM 能够验证 Maven 依赖项并从 Maven 中央存储库检索其最新版本。
安装
您可以使用 npm 全局安装此 MCP 服务器:
或者直接使用 npx 运行:
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Maven Dependencies Server:
特征
- 查询任何 Maven 依赖项的最新版本
- 验证 Maven 依赖项是否存在
- 检查依赖项的特定版本是否存在
- 支持完整的 Maven 坐标,包括包装和分类器
- 实时访问 Maven 中央存储库数据
- 兼容多种构建工具格式(Maven、Gradle、SBT、Mill)
对于开发:
- 克隆此存储库
- 安装依赖项:
npm install
- 构建服务器:
npm run build
配置
将服务器添加到您的 MCP 设置配置文件:
如果全局安装,您还可以使用:
交通选择
服务器支持两种传输模式:
- stdio (默认)- 标准输入/输出通信
- SSE (服务器发送事件)- 基于 HTTP 的通信,具有可选的远程访问
要使用 SSE 传输,您可以指定主机和端口:
在 MCP 设置中使用 SSE 传输时:
对于远程访问,请在客户端配置中使用服务器的 IP 或主机名:
可用工具
获取 Maven 最新版本
检索 Maven 依赖项的最新版本。
输入模式:
示例用法:
检查 Maven 版本是否存在
检查 Maven 依赖项的特定版本是否存在。版本信息可以在依赖项字符串中提供,也可以作为单独的参数提供。
输入模式:
示例用法:
实现细节
- 使用 Maven Central 的 REST API 获取依赖项信息
- 支持完整的 Maven 坐标(groupId:artifactId:version:packaging:classifier)
- 按时间戳对结果进行排序,以确保返回最新版本
- 包括无效依赖项和 API 问题的错误处理
- 返回有效依赖项的干净、可解析的版本字符串
- 为版本存在性检查提供布尔响应
错误处理
服务器处理各种错误情况:
- 依赖项格式无效
- 版本格式无效
- 不存在的依赖关系
- API 连接问题
- 格式错误的响应
- 缺少版本信息
发展
要修改或扩展服务器:
- 修改
src/index.ts
- 使用
npm run build
重建 - 重新启动 MCP 服务器以应用更改
执照
麻省理工学院
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
一个 MCP(模型上下文协议)服务器,提供用于检查 Maven 依赖项版本的工具。此服务器使 LLM 能够验证 Maven 依赖项并从 Maven 中央存储库检索其最新版本。
Related MCP Servers
- AsecurityAlicenseAqualityA beginner-friendly Model Context Protocol (MCP) server that helps users understand MCP concepts, provides interactive examples, and lists available MCP servers. This server is designed to be a helpful companion for developers working with MCP. Also comes with a huge list of servers you can install.Last updated -3936JavaScriptApache 2.0
- AsecurityFlicenseAqualityA powerful Model Context Protocol (MCP) server enabling seamless Vercel project management, including deployments, domains, environment variables, and team configurations through Cursor's Composer or Codeium's Cascade.Last updated -5617TypeScript
Semgrep MCP Serverofficial
AsecurityAlicenseAqualityAn MCP server that provides a comprehensive interface to Semgrep, enabling users to scan code for security vulnerabilities, create custom rules, and analyze scan results through the Model Context Protocol.Last updated -6138PythonMIT License- -security-license-qualityA specialized server that helps users create new Model Context Protocol (MCP) servers by providing tools and templates for scaffolding projects with various capabilities.Last updated -1TypeScript