Arthas Guardian

•

Provides a security-hardened interface for AI agents and developers to diagnose live Java Virtual Machines using Arthas.

Arthas Guardian offers a robust, security-focused Model Context Protocol (MCP) server for deep diagnostics of live Java applications. Unlike the official experimental Arthas MCP server, it implements a tiered permission model, strict parameter validation, and output masking to safely expose powerful Arthas capabilities to AI agents like Claude Code or Cursor. It ensures read-only operations by default, requires explicit confirmation for writes, and locks out dangerous commands in production environments, providing lifecycle management, audit trails, and secret masking to protect sensitive data and prevent unintended actions during live JVM troubleshooting.

Key Features

01Best-effort secret masking on all output paths, including audit text and dumped files
02Comprehensive JSONL audit logging of every tool call, allowed or denied
03Three-tier security gates (read-only default, opt-in writes, dangerous operations locked out in production)
04Strict parameter validation and command classification to prevent free code execution and prompt injection
050 GitHub stars
06Lifecycle management with auto-cleanup, crash recovery, and verifiable detach

Use Cases

01AI agent-driven diagnosis of live Java JVM performance and runtime issues
02Secure troubleshooting and profiling of Java applications in production environments
03Monitoring and observing Java method calls and threads with built-in safety protocols