TM

tangcent/maven-indexer-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

23 stars 4 forks 品質 85 トレンド 30ISC

ローカル Maven と Gradle キャッシュをインデックス化した MCP サーバーにより、AI エージェントはクラス、実装、メソッドシグネチャ、および内部/プライベート Java の依存関係からソースコードを検索できます.

概要

ローカル Maven リポジトリ (~/.m2/repository) と Gradle キャッシュ (~/.gradle/caches/modules-2/files-2.1) をインデックス化し、AI エージェントに Java クラス、メソッドシグネチャ、ソースコードを検索するためのツールを、社内パッケージや非既知のパブリックライブラリでも提供しています。 MCP クライアントに次の設定を追加します。 サーバの最新バージョンを自動的にダウンロードして実行します。 Maven リポジトリの場所 (通常 ~/.m2/リポジトリ) と Gradle キャッシュを自動検出します。 アップグレード後、古い名前を呼ぶエージェントは、選択するまで "tool not found" を取得します。 または、MAVEN INDEXER MCP TOOLS=search,get class,caller のどちらかをリストします。 他のすべてが変更されていない - 公開されたパッケージ名はまだ maven-indexer-mcp (リポジトリは maven-index に名前変更されました) であり、CLI は maven-indexer-cli バイナリで動作します。 直接ターミナルの使用のために世界中取付けて下さい: それから maven-indexer-cli を探索...

概要(AI 翻訳)

ローカル Maven リポジトリ([~/.m2/repository])と Gradle キャッシュをインデックス化する MCP サーバーと CLI (~/.gradle/caches/modules-2/files-2.1)) AI エージェントに Java クラス、メソッドシグネチャを検索するためのツールを提供する そしてソースコード — 社内パッケージや非既知のパブリックライブラリでも。

クイックインストール

エージェントがインデックスにアクセスする方法は2つあります。 いずれかを選んでください。

  • CLI + エージェントスキル:ターミナルコーディングエージェント(クロードコード、Codex、Gemini CLI、OpenCode、Cursor)用。 エージェントは [maven-indexer-cli] コマンドを実行し、 [maven-indexer] スキルでガイドします。 ツールスキーマなし コンテキストウィンドウに座るので、少ないトークンを使用します。
  • ** MCP サーバー**: IDE 統合エージェント (Cursor, Kiro, Windsurf, JetBrains,…) 用。 MCP サーバーを参照してください。

##CLI + エージェントスキル

スクリプトをインストール (推奨)

1 つのコマンドは、npm から maven-indexer-cli と [[maven-indexer] の各コーディングのスキルをインストールします。 検出する代理店:

Node.js 18 + と npm が必要です。 [bash -s -- の後にオプションを渡します。

| オプション | 意味 | お問い合わせ | --target | どのエージェントがスキルを身につける: [auto] (検出されたエージェント, デフォルト), [all], [claude, [agents, [[cursor] (スキルディレクトリを参照). お問い合わせ

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Maven Index

An MCP server and CLI that indexes your local Maven repository (~/.m2/repository) and Gradle cache (~/.gradle/caches/modules-2/files-2.1) to provide AI agents with tools to search for Java classes, method signatures, and source code — even for internal company packages and non-well-known public libraries.

Quick Install

There are two ways to give an agent access to the index. Pick one, or use both:

  • CLI + Agent Skill: for terminal coding agents (Claude Code, Codex, Gemini CLI, OpenCode, Cursor). The agent runs maven-indexer-cli commands, guided by the maven-indexer skill. No tool schemas sit in the context window, so it uses fewer tokens.
  • MCP server: for IDE-integrated agents (Cursor, Kiro, Windsurf, JetBrains, …). See MCP server.

CLI + Agent Skill

One command installs maven-indexer-cli from npm and the maven-indexer skill for every coding agent it detects:

curl -fsSL https://raw.githubusercontent.com/tangcent/maven-indexer-mcp/main/install.sh | bash

Requires Node.js 18+ and npm. Pass options after bash -s --:

curl -fsSL https://raw.githubusercontent.com/tangcent/maven-indexer-mcp/main/install.sh | bash -s -- --target claude,agents --index
Option Meaning
--target Which agents get the skill: auto (detected agents, default), all, or a csv of claude, agents, cursor (see the skill directories).
--location global (home directory, default) or local (current project).
--dir Install the skill into this skills directory instead.
--version maven-indexer-cli version to install (default latest).
--skip-cli / --skip-skills Install only the skill / only the CLI.
--index Build the index right after installing.

Re-running the script upgrades both the CLI and the skill. Restart your agent (or start a new session) afterwards so it loads the skill.

Manual install: maven-indexer-cli

npm install -g maven-indexer-cli
maven-indexer-cli refresh-index   # build the index once; later runs use `maven-indexer-cli sync`

Or run it without installing: npx -y maven-indexer-cli .

Install the skill with maven-indexer-cli

Once the CLI is installed, it can install the skill it ships with:

maven-indexer-cli skills install                          # every detected agent, global
GitHub で README 全文を見る

インストール

npx -y maven-indexer-mcp@latest
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "maven-indexer": { "command": "npx", "args": [ "-y", "maven-indexer-mcp@latest" ] } } }