Descartes MCP

Descartes MCP

descartes-mcp•bywidoriezebos

A Model Context Protocol server for debugging live JVMs, offering a proxy mode for external JDWP debugging and an embedded in-process mode for full runtime tooling.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Proxy mode exposes an MCP server that connects to JDWP-enabled JVMs, letting MCP clients attach and debug an existing application without restarting it.
  • •Provides debugger thread and stack tools to investigate blocked and waiting execution paths.
  • •Embedded mode runs MCPServer inside the application JVM with Descartes tools, resources, and shared application context for JShell, profiling, and hot reload.
  • •Each proxy instance can target only one JVM at a time, so multi-JVM workflows require one proxy per target.

BEST FOR

  • •Agent-driven debugging of existing JDWP-enabled JVMs without modifying application code.
  • •In-process runtime introspection such as JShell, profiling, and hot reload when dependency changes are acceptable.
  • •Sharing a repeatable debugging workflow with AI-assisted agent tooling.

ABOUT DESCARTES-MCP

Descartes MCP is cataloged as an MCP server attributed to widoriezebos. A Model Context Protocol server for debugging live JVMs, offering a proxy mode for external JDWP debugging and an embedded in-process mode for full runtime tooling. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Descartes MCP are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can Descartes debug a running JVM without restarting or changing application code?

Yes, proxy mode attaches to an existing JDWP-enabled JVM, and the README lists debugging existing JDWP-enabled JVMs with no application code changes.

What are the safety considerations when using Descartes?

It should only be run in trusted development or test environments, since JDWP and debugger tools can inspect memory, evaluate code, and suspend application threads.

Upstream README

View this exact version on GitHub

README.md · 3f0c3fe699df · Fetched 2026-11-13 11:42:06 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Descartes MCP

Debug live JVMs from MCP clients such as Claude Code, Codex, and Gemini CLI.

Descartes has two operating modes:

  • Proxy mode for external debugging against JDWP-enabled JVMs.
  • Embedded mode for full in-process runtime tooling (JShell, profiler, hot reload, resources, and more).

Security: run only in trusted development/test environments. JDWP and debugger tools can inspect memory, evaluate code, and suspend application threads.


Why You Should Use Descartes

  • Debug JDWP-enabled JVMs without restarting application code.
  • Investigate blocked and waiting execution paths with debugger thread/stack tools (debugger_threads, debugger_stacktrace).
  • Share a repeatable debugging workflow with AI-assisted agent tooling.
  • Move from proxy-first debugging to embedded, full-runtime introspection when needed.

Try It

Prerequisites: JDK 17+, Maven 3+, Node.js.

Pick a scenario below. Both use the included BuggyCalculator example app, which contains six intentional bugs (off-by-one, NPE, integer overflow, wrong conditional, edge-case handling, swapped business logic).

First check MCP registration below; that needs to be done before you try one of the scenarios below

Scenario A -- Agent does everything (unattended)

The agent builds, launches, connects, and debugs without manual intervention. You only type the prompt.

Step 1 -- Start the proxy in a separate terminal

./scripts/run-remote-proxy-from-maven.sh

Exposes MCP on port 9090, configured to reach JDWP on localhost:5005 (the actual JDWP connection happens later, when the agent starts a debug session). By default it uses the version from pom.xml; pass --version <version> to pin a specific release artifact.

For local source builds during development, use ./scripts/run-remote-proxy.sh instead.

Step 2 -- Ask the agent to debug

Open Claude Code, Codex, or Gemini CLI from this repo and paste:

Build with mvn clean package -DskipTests, launch com.bitsapplied.descartes.example.debugger.DebuggerWorkflowExample with JDWP in --interactive mode, then find the six bugs in com.bitsapplied.descartes.example.debugger.scenarios.BuggyCalculator.

The debug skill handles launch mechanics (script, JDWP flags, port). The agent connects and steps through all six bugs autonomously.

The checked-in client configurations are pre-configured for the proxy. No additional MCP or skill installation is needed in this repository.

Scenario B -- You launch the app, agent connects

You start the target app yourself (useful when reproducing a specific state, or when the app requires manual setup). The agent only attaches and debugs.

Step 1 -- Build the JAR (once)

mvn clean package -DskipTests

Step 2 -- Start the proxy in a separate terminal

./scripts/run-remote-proxy-from-maven.sh

Step 3 -- Launch the example app with JDWP in another terminal

mkdir -p .pids
scripts/launch-managed-nontty.sh \
  --name buggy-calc \
  -- java \
     -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=localhost:5005 \
     -cp target/descartes-mcp-*-jar-with-dependencies.jar \
     com.bitsapplied.descartes.example.debugger.DebuggerWorkflowExample \
     --interactive </dev/null 2>&1 | tee .pids/buggy-calc.log

Wait for Listening for transport dt_socket at address: 5005 before continuing.

launch-managed-nontty.sh requires non-TTY file descriptors. The </dev/null 2>&1 | tee redirection satisfies that: stdin comes from /dev/null, stderr merges into stdout, and the pipe to tee makes stdout non-TTY while still printing to your terminal.

Step 4 -- Ask the agent to debug

Open Claude Code, Codex, or Gemini CLI from this repo and ask:

The BuggyCalculator app is already running with JDWP on port 5005. Connect the debugger and find the bugs in BuggyCalculator.

The agent will connect to the existing JDWP session and debug without trying to launch anything.

Step 5 -- Clean up when done

Stop the app using the PID file:

kill "$(cat .pids/buggy-calc.pid)"

MCP registration

This checkout includes native project configuration for each supported client:

ClientMCP configurationSkill discovery
Claude Code.mcp.json.claude/skills/descartes-debug symlink
Codex.codex/config.tomlCanonical .agents/skills/descartes-debug
Gemini CLI.gemini/settings.jsonCanonical .agents/skills/descartes-debug

All three configurations launch config/mcp/mcp-tcp-adapter.js against MCP port 9090 with long debugger waits enabled. Start the proxy, open the client from this repository, and use the descartes-debug skill—there is no user-global skill install step.

Debug your own app

Start your app with JDWP and ask the agent to connect:

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=localhost:5005 -jar your-app.jar

Use address=*:5005 to listen on all interfaces (remote debugging). If your shell is zsh, quote the flag to prevent glob expansion: '-agentlib:jdwp=...,address=*:5005'.

Copy the canonical skill into your target project for structured debugging workflows, then add Claude's discovery symlink:

mkdir -p .agents/skills .claude/skills
cp -R /path/to/descartes-mcp/.agents/skills/descartes-debug .agents/skills/
ln -s ../../.agents/skills/descartes-debug .claude/skills/descartes-debug

Codex and Gemini discover .agents/skills directly. See doc/debug-skill.md for validation and Windows guidance.


How It Fits

Proxy mode:

flowchart LR
  A[Claude Code / Codex / Gemini] <--> B[mcp-tcp-adapter.js]
  B <--> C[Descartes MCP Proxy]
  C <--> D[Target JVM via JDWP]

Embedded mode:

flowchart LR
  A["Claude Code / Codex / Gemini"] <--> B["mcp-tcp-adapter.js"]

  subgraph APP["Your app JVM"]
    C1["MCPServer + Descartes tools/resources + shared application context"]
  end

  B <--> C1

Use proxy mode when you want external, agent-driven inspection via JDWP. Use embedded mode when you want full Descartes capabilities in-process.


Modes: Which One To Start With

PathSetupBest for
Proxy modeMinutesDebugging existing JDWP-enabled JVMs with no application code changes
Embedded modeRequires dependency changesJShell, profiling, hot reload, and deeper introspection

Known Restriction

One proxy instance can target one JVM at a time. For multi-JVM workflows, run one proxy per target JVM or pick different ports.

See doc/restrictions.md.


Quick Tips

  • Stop cleanly: end MCP usage, stop proxy with Ctrl+C, then stop target JVM.
  • Port setup: keep adapter MCP port (MCP_PORT) aligned with proxy --mcp-port. Configure JDWP host/port separately for the target JVM.
  • For agent-launched targets, use non-TTY launch and include the same JDWP flag used in manual startup.
  • For JDK 21+ virtual-thread targets, add includevirtualthreads=y to the target JVM's JDWP flag when you need virtual threads to appear in thread-list snapshots.
  • When debugging Descartes itself, set DESCARTES_FORCE_PLATFORM_THREADS=true or -Dtools.executor.virtualThreads.enabled=false to run shared tool tasks on bounded platform threads.

Learn More

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Descartes MCP from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/descartes-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools