C

Clojars 依赖服务器

@Bigsy/Clojars-MCP-Server
0 Stars 38 次浏览 Bigsy 更新于 2026-08-23

提供有关Clojure库的最新依赖信息

该服务暂未提供标准配置,请参考 README 手动接入

服务介绍

Clojars MCP 服务器

npm 版本

这是一个 Model Context Protocol (MCP) 服务器,提供了从 Clojars 获取依赖信息的工具。Clojars 是 Clojure 社区为 Cline、Roo Code、Cody 和 Claude Desktop 等项目的工件仓库。

安装

通过 npx 安装

使用 Clojars MCP 服务器最快速的方法是直接用 npx 运行:

npx clojars-deps-server

你也可以全局安装它:

npm install -g clojars-deps-server

通过 Smithery 安装

要通过 Smithery 自动为 Claude Desktop 安装 Clojars 依赖服务器:

npx -y @smithery/cli install clojars-deps-server --client claude

手动安装

  1. 克隆此仓库:
git clone https://github.com/yourusername/clojars-deps-server.git
cd clojars-deps-server
  1. 安装依赖项:
npm install
  1. 构建服务器:
npm run build
  1. 将服务器添加到你的 Claude 配置中:

对于 VSCode Claude 扩展,在 cline_mcp_settings.json 中添加(通常位于 macOS 上的 ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/):

{
  "mcpServers": {
    "clojars-deps-server": {
      "command": "node",
      "args": ["/path/to/clojars-deps-server/build/index.js"]
    }
  }
}

对于 Claude 桌面应用程序,在 claude_desktop_config.json 中添加(通常位于 macOS 上的 ~/Library/Application Support/Claude/):

{
  "mcpServers": {
    "clojars-deps-server": {
      "command": "node",
      "args": ["/path/to/clojars-deps-server/build/index.js"]
    }
  }
}

在添加了服务器配置后,Claude 将在启动时自动检测并连接到该服务器。服务器的功能将在 Claude 的系统提示下的“已连接的 MCP 服务器”部分列出,使它们可以被使用。

功能

  • 获取任何 Clojars 依赖项的最新版本
  • 检查特定版本的依赖项是否存在
  • 简单且专注的响应
  • 通过 MCP 轻松与 Claude 集成

工作原理

当此 MCP 服务器在 Claude 的设置中被配置时,它会自动出现在 Claude 的系统提示下的“已连接的 MCP 服务器”部分。这使得 Claude 能够意识到服务器的功能,并允许它通过 use_mcp_tool 命令使用提供的工具。

服务器暴露了两个工具:

get_clojars_latest_version

{
  "name": "get_clojars_latest_version",
  "description": "Get the latest version of a Clojars dependency (Maven artifact)",
  "inputSchema": {
    "type": "object",
    "properties": {
      "dependency": {
        "type": "string",
        "description": "Clojars dependency name in format \"group/artifact\" (e.g. \"metosin/reitit\")"
      }
    },
    "required": ["dependency"]
  }
}

check_clojars_version_exists

{
  "name": "check_clojars_version_exists",
  "description": "Check if a specific version of a Clojars dependency exists",
  "inputSchema": {
    "type": "object",
    "properties": {
      "dependency": {
        "type": "string",
        "description": "Clojars dependency name in format \"group/artifact\" (e.g. \"metosin/reitit\")"
      },
      "version": {
        "type": "string",
        "description": "Version to check (e.g. \"0.7.2\")"
      }
    },
    "required": ["dependency", "version"]
  }
}

工具名称和描述特别设计来帮助 Claude 理解这些工具是用来从 Clojars 获取版本信息的。当用户询问关于 Clojars 依赖项的问题时,Claude 可以根据以下几点识别出这些工具适合执行任务:

  • 工具名称明确指示其用途
  • 描述指明它们用于“Clojars 依赖项(Maven 工件)”
  • 示例格式显示典型的 Clojars 依赖项模式

相关 MCP 服务