BJ

brunoborges/jvm-diagnostics-mcp

Developer tools

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

74 stars 7 forks 品質 63 トレンド 0MIT

brunoborges/jvm-agenttics-mcp は [https://github.com/brunoborges/jvm-diagnostics-mcp. からインポートされた MCP サーバーの候補です

概要

brunoborges/jvm-agenttics-mcp は [https://github.com/brunoborges/jvm-diagnostics-mcp. からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

jstat, jcmd], jps]など、さまざまなJVM診断ツール(CLI)をラップするMCPサーバーで、それらがどのように動作するかを改善し、それらを公開するための素晴らしいプロンプトを追加します。

何ができますか?

さまざまなJVM診断ツールにアクセスできるため、以下のようなタスクを実行できます。

  • [jstatを使用してJVMパフォーマンスメトリックを監視します。
  • JVM プロセスを [jps で調べ、管理します。
  • [jcmd]で診断コマンドを実行します。
  • スレッドダンプ、ヒープダンプ、およびその他のJVM関連の診断を分析します。

安全に使えますか?

MCP サーバは LLM によって駆動されるため、生成するコマンドを慎重に検証することをお勧めします。 Claude 3.7 や GPT-4o のような信頼性の高い LLM を使用している場合は、JVM ツールで優れたトレーニングデータを持つ、当社の経験は非常に優れています。

「本ソフトウェアはプロバイド\」と「IS\」という状態にあるライセンスをお読みになり、いかなるKINDの保証もありませんので、ご自身の責任でこのMCPサーバーを利用してください。

リモートサーバ上でこれを実行しても大丈夫ですか?

短い回答:いいえ。

このMCPサーバーはJVM診断コマンドを実行し、他のコマンドを実行するために攻撃者によって悪用される可能性があります.

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

README

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

JVM Diagnostics MCP

This is an MCP Server that wraps various JVM diagnostic tools (CLI) such as jstat, jcmd, jps, adds a nice prompt to improve how they work, and exposes them.

What can it do?

It has access to various JVM diagnostic tools, so it can perform tasks such as:

  • Monitoring JVM performance metrics using jstat.
  • Inspecting and managing JVM processes with jps.
  • Executing diagnostic commands with jcmd.
  • Analyzing thread dumps, heap dumps, and other JVM-related diagnostics.

Is it safe to use?

As the MCP server is driven by an LLM, we recommend being cautious and validating the commands it generates. If you’re using a reliable LLM like Claude 3.7 or GPT-4o, which has excellent training data on JVM tools, our experience has been very good.

Please read our License which states that “THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND”, so you use this MCP server at your own risk.

Is it secured, and should I run this on a remote server?

Short answer: NO.

This MCP server runs JVM diagnostic commands for you and could be exploited by an attacker to run other commands. The current implementation, as with most MCP servers at the moment, only works with the stdio transport: it’s supposed to run locally on your machine, using your JVM tools, as you would do by yourself.

In the future, it’s possible to have this MCP server support the http transport and token-based authentication, so that it could be used remotely by different persons. This will be considered once the MCP specification and SDK are more stable.

How do I install it?

This MCP server currently only works with the stdio transport, so it should run locally on your machine, using your JVM diagnostic tools.

This server can run as a Java application or inside a Docker container. If Java is installed on your machine, this first option is probably the easiest one. If you don’t have Java installed, or if you want to have something a bit more secure, you can use the second option.

Install and configure the server with Java

  • Make sure you have Java 17 or higher installed. You can check this by running java -version in your terminal.
  • Ensure that JVM diagnostic tools like jstat, jcmd, and jps are available in your environment.

Binaries are available on the GitHub Release page, here’s how you can download the latest one with the GitHub CLI:

  • Download the latest release: gh release download --repo brunoborges/jvm-diagnostics-mcp --pattern='jvm-diagnostics-mcp.jar'

To use the server from Claude Desktop, add the server to your claude_desktop_config.json file. Please note that you need to point to the location where you downloaded the jvm-diagnostics-mcp.jar file.

{
    "mcpServers": {
        "jvm-diagnostics": {
            "command": "java",
            "args": [
                "-jar",
GitHub で README 全文を見る

インストール

docker run -i --rm -e JAVA_HOME ghcr.io/brunoborges/jvm-diagnostics-mcp:latest
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "jvm-diagnostics": { "command": "java", "args": [ "-jar", "~/Downloads/jvm-diagnostics-mcp.jar" ] } } }