返回市场
闭嘉斯-MCP服务器

闭嘉斯-MCP服务器

作者:Bigsy5 星标更新:2025-06-26

项目介绍

Clojars MCP Server

npm 版本

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

<a href="https://glama.ai/mcp/servers/i37857er6w"><img width="380" height="200" src="https://gips2.baidu.com/it/u=3263849776,3373839914&fm=3081&app=3081&f=PNG?w=760&h=400" alt="Clojars-MCP-Server MCP 服务器" /></a>

安装

通过 npx 安装

使用 Clojars MCP Server 的最快方式是直接通过 npx 运行:

npx clojars-deps-server

也可以全局安装:

npm install -g clojars-deps-server

通过 Smithery 安装

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

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": "获取 Clojars 依赖的最新版本(Maven 工件)",
  "inputSchema": {
    "type": "object",
    "properties": {
      "dependency": {
        "type": "string",
        "description": "Clojars 依赖名称,格式为 \"group/artifact\"(例如 \"metosin/reitit\")"
      }
    },
    "required": ["dependency"]
  }
}

check_clojars_version_exists

{
  "name": "check_clojars_version_exists",
  "description": "检查特定版本的 Clojars 依赖是否存在",
  "inputSchema": {
    "type": "object",
    "properties": {
      "dependency": {
        "type": "string",
        "description": "Clojars 依赖名称,格式为 \"group/artifact\"(例如 \"metosin/reitit\")"
      },
      "version": {
        "type": "string",
        "description": "要检查的版本(例如 \"0.7.2\")"
      }
    },
    "required": ["dependency", "version"]
  }
}

get_clojars_history

{
  "name": "get_clojars_history",
  "description": "获取 Clojars 依赖的版本历史",
  "inputSchema": {
    "type": "object",
    "properties": {
      "dependency": {
        "type": "string",
        "description": "Clojars 依赖名称,格式为 \"group/artifact\"(例如 \"metosin/reitit\")"
      },
      "limit": {
        "type": "number",
        "description": "返回的版本数量(默认:15,最大:100)",
        "minimum": 1,
        "maximum": 100
      }
    },
    "required": ["dependency"]
  }
}

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

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