Clojars-MCP-Server

by Bigsy
Verified

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.

Integrations

  • Enables fetching dependency information from Clojars, the Clojure community's artifact repository, allowing users to get the latest version of dependencies and check if specific versions exist

Clojars MCP 服务器

模型上下文协议 (MCP)服务器提供从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 Dependency Server:

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 集成

工作原理

在 Claude 的设置中配置此 MCP 服务器后,它将自动在 Claude 系统提示符下的“已连接的 MCP 服务器”部分中可用。这使 Claude 能够感知服务器的功能,并允许其通过use_mcp_tool命令使用提供的工具。

该服务器公开了两个工具:

获取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"] } }

检查clojars版本是否存在

{ "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 依赖模式

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

提供 Clojure 库的最新依赖信息

  1. Installation
    1. Installing via npx
    2. Installing via Smithery
    3. Manual Installation
  2. Features
    1. How It Works
      1. get_clojars_latest_version
      2. check_clojars_version_exists
    ID: i37857er6w