这是一个提供从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>
使用 Clojars MCP Server 的最快方式是直接通过 npx 运行:
npx clojars-deps-server
也可以全局安装:
npm install -g clojars-deps-server
要通过 Smithery 自动安装 Clojars 依赖服务器到 Claude Desktop:
npx -y @smithery/cli install clojars-deps-server --client claude
git clone https://github.com/yourusername/clojars-deps-server.git
cd clojars-deps-server
npm install
npm run build
对于 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 服务器”下列出,使其可用。
当此 MCP 服务器配置在 Claude 的设置中时,它会自动出现在 Claude 的系统提示中的“已连接 MCP 服务器”部分。这使 Claude 了解服务器的能力,并允许它通过 use_mcp_tool 命令使用提供的工具。
服务器暴露了三个工具:
{
"name": "get_clojars_latest_version",
"description": "获取 Clojars 依赖的最新版本(Maven 工件)",
"inputSchema": {
"type": "object",
"properties": {
"dependency": {
"type": "string",
"description": "Clojars 依赖名称,格式为 \"group/artifact\"(例如 \"metosin/reitit\")"
}
},
"required": ["dependency"]
}
}
{
"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"]
}
}
{
"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 可以根据以下内容识别这些工具是否适合任务: