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 サーバー

Clojars (Cline、Roo Code、Cody、Claude Desktop などの Clojure コミュニティの成果物リポジトリ) から依存関係情報を取得するためのツールを提供するModel Context Protocol (MCP)サーバー。

インストール

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 との簡単な統合

仕組み

このMCPサーバーがClaudeの設定で設定されると、Claudeのシステムプロンプトの「接続されたMCPサーバー」セクションで自動的に使用可能になります。これにより、Claudeはサーバーの機能を認識し、 use_mcp_toolコマンドを通じて提供されているツールを使用できるようになります。

サーバーは 2 つのツールを公開します。

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

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

ツール名と説明は、これらのツールがClojarsからバージョン情報を取得するためのものであることをクロードが理解しやすいように特別に設計されています。ユーザーがClojarsの依存関係について質問した場合、クロードは以下の点に基づいてこれらのツールがタスクに適していると判断できます。

  • ツール名はその目的を明確に示している
  • 説明には「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