Skip to content
angelozerrPublic

About

Code editing, debugging, and building — for AI agents, no IDE required.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MCP ADE Logo

mcp-ade

Agent Development Environment Code editing, debugging, and building — for AI agents, no IDE required.

mcp-ade is an MCP server that gives AI agents full development capabilities:

  • Code Editing — diagnostics, navigation, refactoring, completions, powered by LSP
  • Debugging — breakpoints, stepping, variable inspection, powered by DAP
  • Building — compile, test, dependencies, powered by BSP

Any language your editor supports, your agent now supports too.


— What! Yet another MCP Server for LSP?

Not just LSP. Also DAP — debugging. And not just a server — a standalone platform. No IDE required. MCP ADE manages multiple language servers and debug adapters, handles their lifecycle, and exposes all their capabilities as MCP tools to any AI assistant.

— OK but what can it actually do?

Diagnostics, code navigation, refactoring, code generation, debugging with breakpoints and variable inspection — for Java, Python, JavaScript, Go, Rust, C/C++, and 40+ more languages. 47 bundled extensions, 52 LSP servers, 9 DAP servers. Java alone has 60 dedicated tools powered by Eclipse JDT.LS.

— Read the full conversation with our skeptic →

Key highlights

  • Multi-language support: 47 extensions covering Java, JavaScript/TypeScript, Python, Go, Rust, C/C++, C#, Ruby, Scala, Kotlin, Dart, Swift, Zig, Haskell, Elixir, Erlang, OCaml, F#, Clojure, HTML/CSS/JSON, Vue, Svelte, Angular, PHP, Lua, Perl, R, Julia, Fortran, Ada, Crystal, Pascal, Bash, Terraform, LaTeX, Markdown, Nix, TOML, Elm, Ansible, XML, YAML, Dockerfile, and more
  • Both LSP and DAP: Full language server support (diagnostics, navigation, refactoring) and debug adapter support (breakpoints, stepping, variables)
  • Server collaboration: LSP and DAP servers can communicate with each other (e.g., MicroProfile LS leverages JDT.LS for Java type resolution). See Bind Mechanism
  • Auto-installation: Language servers, debug adapters, and their runtimes are automatically downloaded and installed on first use. Runtimes (JDK, Node.js, Julia) are shared across all dependent servers — installed once, used by many
  • Runtime management: First-class runtime concept — servers declare their runtime dependency in server.json ("runtime": "jdk"). Auto-installable runtimes (JDK, Node.js, Julia) are downloaded from GitHub releases; check-only runtimes (Go, Python, Ruby, .NET, etc.) are detected on the system with clear messages guiding manual installation. The admin console has a dedicated Runtimes tab showing status and dependent servers
  • Declarative extensions: Each server is defined by two JSON files (server.json + installer.json) — no code required. For advanced cases (e.g., JDT.LS), Java code can be used via SPI
  • Extensible via classpath or bundles: Contribute extensions as Maven modules on the classpath, or add them at runtime via MCP tools and admin UI
  • IDE settings support: Loads .vscode/settings.json and .bob/settings.json to send as LSP workspace/configuration, so language servers receive the same settings as in your IDE
  • Admin console: Web UI to manage servers, monitor workspaces, and view traces at http://localhost:7654/admin
  • Any MCP client: Works with Claude Desktop, Claude Code, Bob IDE, and any MCP-compatible assistant

Admin Console

Quick Start

MCP Tools

LSP Tools

Tool Description
get_diagnostics Get errors and warnings for a file
go_to_definition Jump to where a symbol is defined (supports symbolName)
go_to_declaration Jump to where a symbol is declared (supports symbolName)
go_to_type_definition Jump to where the type of a symbol is defined (supports symbolName)
find_references Find all usages of a symbol (supports symbolName, includeEnclosingSymbol)
find_implementations Find implementations of an interface/abstract class (supports symbolName)
get_hover_info Get type information and documentation for a symbol (supports symbolName)
get_completions Get code completion suggestions at a position
get_signature_help Get parameter information for a function/method call
get_document_symbols Get all symbols (classes, methods, variables) in a document
get_code_actions Get quick fixes and refactoring suggestions
rename Rename a symbol across the workspace
search_workspace_symbols Search for symbols by name with optional filtering by kind, path pattern, and container
format_document Format an entire document (supports apply parameter)
format_document_range Format a specific range in a document (supports apply parameter)
get_call_hierarchy_incoming Get incoming calls (callers) for a symbol
get_call_hierarchy_outgoing Get outgoing calls (callees) from a symbol
get_type_hierarchy_supertypes Get supertypes (parent classes/interfaces) for a type
get_type_hierarchy_subtypes Get subtypes (child classes/implementations) for a type
get_code_lenses Get code lenses (run test, reference counts, etc.)
get_inlay_hints Get inlay hints (inferred types, parameter names)
insert_before_symbol Insert code before a symbol identified by name path (e.g., MyClass/myMethod)
insert_after_symbol Insert code after a symbol identified by name path
replace_symbol_body Replace the entire body of a symbol identified by name path
apply_workspace_edit Apply text edits to a file on disk
safe_delete_symbol Safely delete a symbol after checking for external references (supports apply parameter)
open_document / close_document Keep a file open for multiple LSP operations

DAP Tools

Tool Description
list_debug_adapters List available debug adapters with supported languages
get_debug_templates Get launch/attach configuration templates
start_debugging Launch or attach a debug session
list_debug_sessions / close_debug_session Manage debug sessions
set_breakpoint / remove_breakpoint / list_all_breakpoints Manage line breakpoints
set_instruction_breakpoint / remove_instruction_breakpoint / list_instruction_breakpoints Manage instruction-level breakpoints
continue_execution / pause_execution Continue or pause execution
step_over / step_in / step_out Step through code (statement or instruction granularity)
get_stack_trace View the call stack
list_threads List all threads in the debugged program
get_scopes / get_variables Inspect variable scopes and values
get_local_variables Shortcut for local variables in the current frame
evaluate_expression Evaluate expressions in debug context
get_console_output Read program stdout/stderr output
disassemble Disassemble instructions at a memory address
detach_from_process Detach without terminating the process
get_debug_statistics Get statistics about active debug sessions

Java Tools (60 tools from Java extension)

These tools are inspired by javalens-mcp and provide deep Java analysis, navigation, refactoring, and code generation capabilities powered by Eclipse JDT.LS. Results use compact JSON with relative paths for token efficiency.

The symbolName Parameter (Symbol-Based Navigation)

Six navigation tools support an optional symbolName parameter as an alternative to specifying uri + line + character. Instead of a file position, you can pass a symbol name and the server resolves it automatically via workspace/symbol:

Mode Parameters Example
By name cwd + symbolName find_references(cwd='/home/user/project', symbolName='MyClass.myMethod')
By position cwd + uri + line + character find_references(cwd='/home/user/project', uri='file:///src/Main.java', line=10, character=5)

The symbolName parameter accepts:

  • A simple name: myMethod, MyClass
  • A qualified name with . separator: MyClass.myMethod
  • A qualified name with / separator: MyClass/myMethod

When multiple symbols match, the resolver picks the best match: exact name + container > exact name > case-insensitive > first result.

Note: symbolName requires the language server to support workspace/symbol. Most programming language servers (JDT.LS, TypeScript, Pyright, gopls, rust-analyzer, etc.) support it. Some specialized servers (e.g., LemMinX for XML) may not.

Tools supporting symbolName: go_to_definition, go_to_declaration, go_to_type_definition, find_references, find_implementations, get_hover_info.

The includeEnclosingSymbol Parameter (Reference Context)

find_references supports an optional includeEnclosingSymbol parameter. When set to true, each reference is enriched with the name and kind of its enclosing symbol (the method, class, or field that contains the reference):

// Without includeEnclosingSymbol:
[{"file": "Service.java", "refs": ["10:5-10:15", "25:8-25:18"]}]

// With includeEnclosingSymbol=true:
[{"file": "Service.java", "refs": [
  {"range": "10:5-10:15", "in": "processOrder", "kind": "Method"},
  {"range": "25:8-25:18", "in": "ServiceImpl", "kind": "Class"}
]}]

This helps AI agents understand where each reference is used without needing to read the full source files.

Common Parameters

Most Java tools share these standard parameters:

Parameter Description
cwd Current working directory (project root path). Example: '/home/user/project' or 'C:\Users\project'
fileUri File URI (must be file:// URI as in LSP). Example: 'file:///home/user/project/src/main/java/Main.java'
line Line number (0-based)
character Character position in the line (0-based)

The apply Parameter (Preview vs Apply)

All refactoring tools (except java_organize_imports) support an optional apply parameter that controls whether changes are written to disk:

Value Behavior
false (default) Preview mode — Returns a preview of the changes (text edits, affected files) without modifying any file. Use this to review what will change before committing.
true Apply mode — Applies the refactoring changes directly to disk. Files are modified in place.

Recommended workflow:

  1. Call the refactoring tool with apply: false (or omit apply) to preview changes
  2. Review the returned text edits and affected files
  3. If satisfied, call again with apply: true to apply

These 17 tools support the apply parameter: java_rename_symbol, java_extract_method, java_extract_variable, java_extract_constant, java_extract_interface, java_extract_superclass, java_inline_method, java_inline_variable, java_change_method_signature, java_convert_anonymous_to_lambda, java_encapsulate_field, java_introduce_parameter_object, java_move_type_to_new_file, java_pull_up, java_push_down, java_convert_to_record, java_move_type_to_package.

The scope Parameter (Workspace vs Project)

Several search tools support an optional scope parameter to limit search results to project sources only, avoiding large result sets from JDK and library code:

Value Behavior
(omitted) Workspace scope (default) — Searches the entire workspace including dependencies
"project" Project scope — Searches only project source files (excludes JDK/libraries)

When using scope: "project", you can optionally specify projectName to target a specific project in multi-project workspaces (defaults to the first Java project).

These tools support the scope parameter: java_find_references, java_find_field_writes, java_find_annotation_usages, java_find_type_instantiations, java_get_call_hierarchy_incoming, java_get_framework_info.

Analysis (9 tools)

Tool Description
java_get_type_hierarchy Get supertypes, super interfaces, and subtypes of a Java type
java_get_call_hierarchy_incoming Find all callers of a method
java_get_call_hierarchy_outgoing Find all methods called by a method
java_find_annotation_usages Find all usages of a Java annotation type
java_find_type_instantiations Find all new Type() instantiations of a Java type
java_analyze_file Get comprehensive analysis of a Java file (types, methods, fields, diagnostics, complexity)
java_analyze_type Get comprehensive analysis of a Java type (hierarchy, members, references, complexity)
java_analyze_method Get comprehensive analysis of a Java method (complexity, callers, callees, overrides)
java_analyze_change_impact Analyze the ripple effect of changing a symbol

Navigation (5 tools)

Tool Description
java_go_to_definition Navigate to the definition of a Java symbol
java_get_hover_info Get rich hover information for a Java symbol (signature, Javadoc, type info, enclosing element)
java_get_signature_help Get method signature help at a specific position
java_get_super_method Find the method that a Java method overrides or implements
java_get_document_symbols Get all symbols (types, methods, fields) in a Java file

Code Search (10 tools)

Tool Description
java_find_references Find all references to a Java symbol (type, method, or field). Prefer over Grep for Java symbol usages
java_find_implementations Find all implementations of a Java interface, abstract class, or method
java_find_field_writes Find all write accesses to a field
java_find_tests Find test methods in a Java file (JUnit 4/5, TestNG)
java_find_affected_tests Find tests transitively affected by changes to a symbol
java_find_unused_code Find unused code in a Java file (imports, private fields, methods, variables)
java_find_unreachable_code Find unreachable code in a Java file (dead code after return/throw)
java_suggest_imports Find import candidates for an unresolved type name
java_get_type_usage_summary Get a comprehensive usage summary for a Java type
java_search_symbols Search for Java symbols by name pattern (supports glob, e.g. 'My*Service')

Reference Search (1 tool)

Tool Description
java_find_type_usages Find specific usages of a Java type by kind: cast, catch, instanceof, throws, type_argument

Refactoring (18 tools)

All refactoring tools (except java_organize_imports) support the apply parameter for preview/apply workflow.

Tool Description
java_rename_symbol Rename a Java symbol across the entire project
java_organize_imports Organize imports: remove unused and sort
java_extract_method Extract a code selection into a new method
java_extract_variable Extract an expression into a local variable
java_extract_constant Extract an expression into a static final constant field
java_extract_interface Extract an interface from a Java class
java_extract_superclass Extract a superclass from a Java class
java_inline_method Inline a method by replacing call sites with the method body
java_inline_variable Inline a local variable by replacing usages with its initializer
java_change_method_signature Change a method's signature and update all call sites
java_convert_anonymous_to_lambda Convert an anonymous class to a lambda expression
java_encapsulate_field Encapsulate a field by generating getter/setter methods
java_introduce_parameter_object Bundle method parameters into a parameter object class
java_move_type_to_new_file Move a nested/inner type to its own top-level file
java_pull_up Pull members up from a subclass into its superclass
java_push_down Push members down from a superclass into its subclasses
java_convert_to_record Convert a Java class to a record (Java 16+)
java_move_type_to_package Move a top-level Java type to a different package

Code Generation (5 tools)

Tool Description
java_generate_getters_setters Generate getter and/or setter methods for fields
java_generate_constructor Generate a constructor from fields
java_generate_to_string Generate a toString() method
java_generate_equals_hashcode Generate equals() and hashCode() methods
java_generate_delegate_methods Generate delegate methods for a field's type

Diagnostics & Fix (4 tools)

Tool Description
java_validate_syntax Quick syntax-only validation (no semantic analysis)
java_get_quick_fixes Get available quick fixes for problems at a position. Pass optional fixId to apply a specific fix
java_diagnose_and_fix Diagnose problems and optionally apply safe auto-fixes
java_apply_cleanup Apply a code cleanup to a Java file

Code Quality (3 tools)

Tool Description
java_find_possible_bugs Find potential bug patterns in a Java file
java_find_circular_dependencies Find circular package dependencies in a Java project
java_code_quality_report Run all quality checks on a Java file in one call (unused code, bugs, complexity)

Framework (1 tool)

Tool Description
java_get_framework_info Get framework-specific information from a Java project. kind: endpoints (HTTP/REST routes), jpa (JPA entity model), di (dependency injection registrations)

Project (4 tools)

Tool Description
java_get_project_structure Get the package hierarchy and file structure
java_get_classpath_info Get the classpath entries of a Java project
java_get_type_members Get all members of a Java type
java_get_dependency_graph Get the import-based dependency graph

Tool Summary

Category Count
Analysis 9
Navigation 5
Code Search 10
Reference Search 1
Refactoring 18
Code Generation 5
Diagnostics & Fix 4
Code Quality 3
Framework 1
Project 4
Total 60

Workspace Tools

Tool Description
list_workspaces List active workspaces
list_language_servers List language servers with status
refresh_workspace Refresh all language servers to synchronize with file system changes
build_workspace Build all language servers (auto full/incremental based on file watcher state)
notify_file_changes Notify language servers about specific file changes

Extension Tools

Tool Description
list_extensions List all installed extensions
add_extension Add a new extension (LSP/DAP servers)
remove_extension Remove an extension
add_lsp_server / add_dap_server Add a server to an extension
remove_lsp_server / remove_dap_server Remove a server
enable_extension / disable_extension Enable or disable an extension

Bundled Extensions

47 extensions with 52 LSP servers and 9 DAP servers:

Extension LSP Server DAP Server
Ada ada-language-server —
Angular angular-language-server —
Ansible ansible-language-server —
Bash bash-language-server —
C/C++ clangd codelldb
C# Roslyn Language Server netcoredbg
Clojure clojure-lsp —
Crystal Crystalline —
Dart dart-lsp dart-debug
Dockerfile dockerfile-language-server buildx-dockerfile
Elixir ElixirLS —
Elm elm-language-server —
Erlang erlang-ls —
F# FsAutoComplete netcoredbg
Fortran fortls —
Go gopls go-delve
Haskell haskell-language-server —
Jakarta EE jakarta-ls —
Java JDT.LS java-debug
JavaScript typescript-language-server vscode-js-debug
Julia LanguageServer.jl julia-debug
Kotlin kotlin-language-server —
LaTeX Texlab —
Liberty lemminx-liberty, liberty-ls —
Lua lua-language-server —
Markdown Marksman —
MicroProfile microprofile-ls —
Nix nil —
OCaml ocaml-lsp —
Pascal pasls —
Perl PerlNavigator —
PHP Intelephense vscode-php-debug
Python Pyright debugpy
Quarkus quarkus-ls, qute-ls —
R R Language Server —
Ruby Solargraph —
Rust rust-analyzer —
Scala Metals —
Svelte svelte-language-server —
Swift SourceKit-LSP —
Terraform terraform-ls —
TOML Taplo —
Vue vue-language-server —
Web HTML LS, CSS LS, JSON LS —
XML LemMinX —
YAML yaml-language-server —
Zig ZLS —

Adding Your Own Extensions

You can add custom LSP/DAP servers in three ways:

  1. Via MCP tools: Use add_extension, add_lsp_server, add_dap_server — the AI assistant can do it for you
  2. Via Admin UI: Use the extensions management page at http://localhost:7654/admin
  3. Via extension modules: Create a Maven module with server descriptors

See the Extension Guide for details.

Admin Console

Access the admin UI at http://localhost:7654/admin to:

  • Manage runtimes: View installed runtimes (JDK, Node.js, Go, Python, etc.), their status, and dependent servers. Auto-install supported runtimes or get manual installation links
  • Manage extensions: Install, enable, disable, remove extensions and their servers
  • Control servers: Start, stop, restart LSP and DAP servers
  • Monitor workspaces: View active workspaces and connected MCP clients
  • View traces: Debug LSP and MCP communication
  • Debug sessions: Monitor active debug sessions

See the Admin UI Guide for details.

Running

Build

./mvnw clean install -DskipTests

Dev mode (with hot-reload)

cd dev
../mvnw quarkus:dev

The server starts at http://localhost:7654. Admin UI at http://localhost:7654/admin.

In dev mode, only the HTTP transport is active (stdio is disabled to avoid conflicts with the Quarkus dev console).

HTTP transport

Start the server manually, then configure your MCP client to connect via HTTP:

cd dev
java -jar target/quarkus-app/quarkus-run.jar

MCP client configuration:

{
  "mcpServers": {
    "mcp-ade": {
      "type": "http",
      "url": "http://localhost:7654/mcp"
    }
  }
}

Stdio transport

The MCP client launches the server as a subprocess and communicates via stdin/stdout. The HTTP server still runs in the background for the admin UI.

MCP client configuration (Claude Code, Claude Desktop, etc.):

{
  "mcpServers": {
    "mcp-ade": {
      "type": "stdio",
      "command": "java",
      "args": ["-jar", "/path/to/dev/target/quarkus-app/quarkus-run.jar"]
    }
  }
}

Admin UI remains accessible at http://localhost:7654/admin in both modes.

Project Structure

mcp-lsp/
├── core/                        # Core framework (LSP/DAP integration, MCP tools, admin UI)
├── extensions/                  # 47 language extensions
│   ├── java/                    # Java (JDT.LS + java-debug + JDK runtime)
│   │   └── src/main/resources/
│   │       ├── lsp/jdtls/       # LSP server descriptor + installer
│   │       ├── dap/java-debug/  # DAP server descriptor + installer
│   │       └── runtime/jdk/     # Runtime descriptor (auto-installable)
│   ├── javascript/              # JavaScript/TypeScript (ts-language-server + vscode-js-debug)
│   ├── python/                  # Python (Pyright + debugpy)
│   ├── go/                      # Go (gopls + go-delve)
│   ├── rust/                    # Rust (rust-analyzer)
│   ├── c/                       # C/C++ (clangd + codelldb)
│   ├── dotnet/                  # C#/F# (Roslyn, FsAutoComplete, netcoredbg)
│   ├── web/                     # HTML, CSS, JSON (vscode-langservers-extracted)
│   ├── angular/                 # Angular
│   ├── vue/                     # Vue
│   ├── svelte/                  # Svelte
│   ├── dart/                    # Dart (dart-lsp + dart-debug)
│   ├── kotlin/                  # Kotlin
│   ├── scala/                   # Scala (Metals)
│   ├── ruby/                    # Ruby (Solargraph)
│   ├── php/                     # PHP (Intelephense + vscode-php-debug)
│   ├── elixir/                  # Elixir (ElixirLS)
│   ├── haskell/                 # Haskell
│   ├── clojure/                 # Clojure
│   ├── xml/                     # XML (LemMinX)
│   ├── yaml/                    # YAML
│   ├── bash/                    # Bash
│   ├── lua/                     # Lua
│   ├── terraform/               # Terraform
│   ├── dockerfile/              # Dockerfile
│   ├── ...                      # + 21 more (Ada, Ansible, Crystal, Elm, Erlang, Fortran,
│   │                            #   Julia, Jakarta EE, LaTeX, Liberty, Markdown, MicroProfile,
│   │                            #   Nix, OCaml, Pascal, Perl, Quarkus, R, Swift, TOML, Zig)
├── admin/                       # Admin UI module
└── dev/                         # Dev distribution (core + all extensions)

Runtime Management

Language servers and debug adapters often depend on a runtime (JDK, Node.js, Go, Python, etc.). MCP LT manages runtimes as first-class entities alongside LSP/DAP/BSP servers.

How it works

  1. Declaration: Each server declares its runtime dependency in server.json:

    { "id": "gopls", "runtime": "go", ... }
  2. Auto-installation: Some runtimes can be downloaded automatically from GitHub releases:

    Runtime Auto-install Source
    JDK (Temurin 21) Yes Adoptium
    Node.js Yes nodejs/node
    Julia Yes JuliaLang/julia
  3. Check-only runtimes: Complex runtimes are detected on the system. If missing, the AI agent and admin UI show a clear message with the installation link:

    Runtime Install from
    Go go.dev
    Python python.org
    Ruby ruby-lang.org
    .NET dotnet.microsoft.com
    Dart dart.dev
    Swift swift.org
    OCaml ocaml.org
    R r-project.org
    Nix nixos.org
  4. Shared installation: A runtime is installed once and shared by all dependent servers. Thread-safe — concurrent server starts wait for the same installation to complete.

  5. PATH management: After installation, the runtime's bin/ directory is automatically added to the server's PATH.

  6. AI agent awareness: list_language_servers and list_debug_adapters include runtime status, so the AI agent knows immediately whether a server can start or needs manual runtime installation — no waiting, no guessing.

Technology Stack

Documentation

About

Code editing, debugging, and building — for AI agents, no IDE required.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages