mcpField
C
Clojars MCP Server

Clojars MCP Server

ローカル
github.com/Bigsy開発ツール670 週間前に更新

Clojars MCP Server について

Clojars MCP Serverは、ClojureコミュニティのアーティファクトリポジトリであるClojarsから、依存関係のバージョンや履歴を取得するツールをAIクライアントに提供します。最新リリースや指定バージョンの有無を確認できます。

主な機能

  1. 01依存関係の最新バージョン取得
  2. 02指定バージョンの存在確認
  3. 03件数を指定したバージョン履歴の取得
  4. 04MCP経由でAIクライアントに接続

活用シーン

  1. 01依存関係の更新時にClojarsの現行バージョンを確認
  2. 02依存関係に追加する前に必要なバージョンを検証
  3. 03依存関係のリリース履歴を確認

MCP 対応

このMCPサーバーは、Clojarsの依存関係のバージョンや履歴を問い合わせるツールをClaude Desktopなどの対応クライアントに公開します。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

mcp.json · 共通設定
{
"mcpServers": {
"Clojars-MCP-Server": {
"command": "npx",
"args": [
"-y",
"clojars-deps-server"
]
}
}
}
起動コマンドnpx -y clojars-deps-server

ローカルサーバーにはマシン上の実行環境(Node.js 18 以上など)が必要です。設定ファイルの場所はクライアントごとに異なります。

パッケージ
npmclojars-deps-server

ツール

3

掲載時のツール一覧 · 2 週間前に更新

パラメーター型必須説明
dependencystringはいClojars 依存関係名。形式は "group/artifact"(例:"metosin/reitit")

詳細

Clojars MCP サーバー

npm version

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

Clojars-MCP-Server MCP server

インストール

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 のシステムプロンプト内の「Connected MCP Servers」に表示され、利用できるようになります。

機能

  • Clojars の依存関係の最新バージョンを取得
  • 依存関係の特定バージョンが存在するか確認
  • 設定可能な上限付きで依存関係のバージョン履歴を取得
  • シンプルで要点を絞った応答
  • MCP を介して Claude と簡単に連携

仕組み

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

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

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"]
  }
}
get_clojars_history
{
  "name": "get_clojars_history",
  "description": "Get version history of a Clojars dependency",
  "inputSchema": {
    "type": "object",
    "properties": {
      "dependency": {
        "type": "string",
        "description": "Clojars dependency name in format \"group/artifact\" (e.g. \"metosin/reitit\")"
      },
      "limit": {
        "type": "number",
        "description": "Number of versions to return (default: 15, max: 100)",
        "minimum": 1,
        "maximum": 100
      }
    },
    "required": ["dependency"]
  }
}

ツール名と説明は、これらが Clojars からバージョン情報を取得するためのツールであることを Claude が理解しやすいように設計されています。ユーザーが Clojars の依存関係について質問すると、Claude は次の点を基に、これらのツールが適切だと判断できます。

  • ツール名に用途が明記されている
  • 説明で「Clojars dependency(Maven artifact)」用であると示している
  • 例の形式で一般的な Clojars の依存関係のパターンを示している

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。