- Descartes Java REPL and Deep Introspection For Your Java Apps
Descartes Java REPL and Deep Introspection For Your Java Apps
A Java-based Model Context Protocol (MCP) server that provides deep introspection, monitoring, debugging, and REPL capabilities for Java applications. Descartes enables AI assistants to interact with running Java processes through a comprehensive set of tools and resources.
Kind of does for the Java backend what Playwright does for the frontend. Easy to add as a maven dependency to your Java application.
Overview
Descartes MCP
A Java-based Model Context Protocol (MCP) server that provides deep introspection, monitoring, debugging, and REPL capabilities for Java applications. Descartes enables AI assistants to interact with running Java processes through a comprehensive set of tools and resources.
⚠️ SECURITY WARNING: This tool includes a Java REPL that allows arbitrary code execution. It should ONLY be used in development/debugging environments and NEVER exposed to untrusted networks or users.
Features
🛠️ Tools
- JShell REPL: Interactive Java code execution with session management
- Object Inspector: Deep object introspection without code execution
- Process Inspector: Process and thread information monitoring
- System Monitoring: Real-time system metrics and resource usage
- Thread Analyzer: Thread state analysis and deadlock detection
- Memory Analyzer: Heap usage, garbage collection, and memory pool analysis
- Exception Analysis: Stack trace analysis and root cause identification
- Logging Integration: Log4j2 integration for log capture and analysis
📊 Resources
- Classpath Resource: Access to classpath information
- System Properties: JVM and system property access
- Metrics Resource: Application and JVM metrics
- Thread Dumps: Detailed thread state snapshots
- MBean Resource: JMX MBean access and monitoring
- Application Context: Access to registered application objects
Session Management
The JShell integration provides sophisticated session management:
- Isolated Execution Contexts: Each AI conversation gets its own JShell instance with separate variable namespaces, preventing cross-contamination between sessions.
- Configurable Timeouts: Sessions automatically expire after inactivity (default: 30 minutes) to prevent memory leaks.
- State Preservation: Variables and imports persist across multiple evaluations within the same session, enabling complex multi-step interactions.
- Context Injection: Application objects from the context map can be automatically exposed to JShell sessions, allowing direct manipulation of live application state.
- Concurrent Session Support: Multiple sessions can run simultaneously without interference.
Server Config
{
"mcpServers": {
"morpheus": {
"command": "node",
"args": [
"/path/to/mcp/mcp-tcp-adapter.js"
],
"env": {
"MCP_HOST": "localhost",
"MCP_PORT": "9080",
"MCP_DEBUG": "false",
"MCP_RECONNECT_MIN_DELAY": "500",
"MCP_RECONNECT_MAX_DELAY": "5000",
"MCP_HEALTH_CHECK_INTERVAL": "5000",
"MCP_LOG_RATE_LIMIT_WINDOW": "60000",
"MCP_LOG_RATE_LIMIT_MAX": "10"
}
}
}
}Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
WindsurfThe new purpose-built IDE to harness magic
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Serper MCP ServerA Serper MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbot™
Amap Maps高德地图官方 MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Tavily Mcp
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
CursorThe AI Code Editor
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
DeepChatYour AI Partner on Desktop
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Playwright McpPlaywright MCP server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.