MCP Hub
Back to servers

eclipse-chatgpt-plugin

Eclipse IDE as an MCP Server for AI Agents

GitHub
Stars
145
Forks
69
Updated
Apr 20, 2026
Validated
Apr 22, 2026

AssistAI - Eclipse IDE as an MCP Server for AI Agents

AssistAI is an Eclipse IDE plugin that exposes your entire development environment as an MCP (Model Context Protocol) server. External AI agents — Claude Code, OpenAI Codex, Claude Desktop, or any MCP-compatible client — can read, navigate, edit, build, test, run, and debug your Java projects directly through Eclipse, preserving workspace sync, local history, and incremental compilation.

AssistAI also includes a built-in LLM chat view for quick inline interactions with any supported model.

Why MCP through Eclipse?

When AI agents edit files through the filesystem directly, Eclipse doesn't know anything changed. Editors show stale content, incremental compilation misses updates, and local history gaps appear.

AssistAI solves this by routing all operations through Eclipse APIs:

  • Edits go through JDT — incremental compilation fires immediately, errors update in real time
  • Refactorings use Eclipse's refactoring engine — renames, moves, and package restructures update all references across the workspace
  • File reads reflect the editor buffer — agents always see the latest unsaved content, not the on-disk version
  • Local history is preserved — every change is tracked, undoable through Eclipse's local history
  • Tests run inside Eclipse — JUnit results, console output, and compilation errors are accessible as tool responses

Getting Started with External Agents

1. Enable the HTTP MCP Server

  1. Open Window > Preferences > Assist AI > HTTP MCP Server
  2. Check Enable HTTP MCP Server
  3. Set Hostname and Port (defaults: localhost:8124)
  4. Click Generate to create an authentication token
  5. Click Apply — the server starts immediately

The status panel shows all available endpoints:

  • http://localhost:8124/mcp/eclipse-ide — code analysis, navigation, search, testing, builds
  • http://localhost:8124/mcp/eclipse-coder — file editing, refactoring, patching, formatting
  • http://localhost:8124/mcp/eclipse-runner — launch, debug, breakpoints, stepping
  • http://localhost:8124/mcp/eclipse-context — resource cache, file local history, version tracking

2. Connect Your Agent

Claude Code

Add to your Claude Code MCP settings (.claude/settings.json or project-level):

{
  "mcpServers": {
    "eclipse-ide": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote", "http://localhost:8124/mcp/eclipse-ide",
        "--allow-http",
        "--header", "Authorization: Bearer YOUR_TOKEN"
      ]
    },
    "eclipse-coder": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote", "http://localhost:8124/mcp/eclipse-coder",
        "--allow-http",
        "--header", "Authorization: Bearer YOUR_TOKEN"
      ]
    },
    "eclipse-runner": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote", "http://localhost:8124/mcp/eclipse-runner",
        "--allow-http",
        "--header", "Authorization: Bearer YOUR_TOKEN"
      ]
    }
  }
}

On Windows with WSL, use "command": "wsl" and prepend "npx" to the args array.

Claude Desktop

Add to your Claude Desktop configuration file:

  • Windows: %APPDATA%\Roaming\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Use the same mcpServers format as above.

OpenAI Codex / Other MCP Clients

Any client that supports MCP over Streamable HTTP can connect directly to the endpoint URLs. Use the Authorization: Bearer <token> header for authentication.

3. What Agents Can Do

With the MCP tools, an external agent can:

  • Read and navigate code — project layout, class outlines, method source, type hierarchies, call hierarchies, find references
  • Edit code — create files, apply unified diffs, replace strings, delete lines, replace entire files
  • Refactor — rename types/packages, move types, organize imports — all through Eclipse's refactoring engine
  • Build and test — run Maven builds, execute JUnit tests (all, by package, class, or method), read compilation errors, get quick-fix suggestions
  • Search — text search, regex search, file glob search, search-and-replace across the workspace
  • Run and debug — launch Java applications, set breakpoints (including conditional), step through code, inspect stack traces, evaluate expressions, hot-swap code
  • Access context — read JavaDoc, console output, editor selection, effective POM, project dependencies
  • Browse and restore file history — list Local History versions, view old content, restore to any previous version, diff current vs. historical
  • Inspect the resource cache — see what files/classes are loaded in the conversation context, read cached content without I/O

4. Guiding Agents with Eclipse Context

External agents don't know what you're looking at in Eclipse — unless they ask. AssistAI provides MCP tools that let agents pick up context from your IDE session, so you can guide their work by simply opening files, selecting code, or running programs:

What you do in EclipseTool the agent callsWhat the agent sees
Open a file in the editorgetCurrentlyOpenedFileFull file content with path, project name, and line numbers
Select a code regiongetEditorSelectionSelected text with start/end line numbers and surrounding file context
Run or debug a programgetConsoleOutputRecent stdout/stderr from Eclipse console(s)
Have compilation errorsgetCompilationErrorsAll errors/warnings with file, line, and message
Open a specific classgetClassOutlineCompact structure — fields, method signatures, line numbers

Workflow tip: When asking an agent to fix something, open the relevant file in Eclipse first, select the problem area, and tell the agent to check your selection. This gives the agent precise context without you having to describe file paths or paste code.

Token-efficient navigation: Instead of reading entire files, agents can use getClassOutline to see the structure (~30 lines for a 500-line class), then getMethodSource to read only the methods they need, or getFilteredSource to see the full file with irrelevant methods collapsed to one-line signatures. The readProjectResource tool supports excludeImports to further reduce token usage.

Resource cache: Files and classes read through Eclipse MCP tools are automatically cached with version tracking and file modification timestamps (tied to Eclipse's Local History). Agents can call listCachedResources to see what's already loaded, or getCachedResource to re-read cached content instantly — no disk I/O, no re-parsing.

Local History: Eclipse automatically maintains a Local History for every file modified through the IDE. Agents can browse past versions (getFileHistory), read historical content (getFileHistoryContent), compare with the current version (compareWithHistory), or restore to any previous state (restoreFileVersion). This is more powerful than a simple undo — it preserves every edit across the entire session, including changes made by the agent itself.

MCP Tool Reference

eclipse-coder — Code Editing

ToolDescription
createFileCreates a new file, adds it to the project, and opens it in the editor
insertIntoFileInserts content at a specific position in an existing file
replaceStringReplaces a specific string in a file, optionally within a line range
applyPatchApplies a unified diff patch with fuzzy context matching — preferred for multi-hunk edits
formatFileFormats a Java file using Eclipse's code formatter
undoEditRestores a file from its backup (undo last edit)
createDirectoriesCreates a directory structure recursively
renameFileRenames a file in a project
deleteFileDeletes a file from a project
replaceFileContentReplaces the entire content of a file
deleteLinesInFileDeletes a range of lines (1-based indexing)
refactorRenameJavaTypeRenames a Java type using Eclipse's refactoring, updating all references
refactorMoveJavaTypeMoves a Java type to a different package, updating all references
refactorRenamePackageRenames a package, updating all declarations and references
moveResourceMoves a file or folder to a different location
organizeImportsOrganizes imports in a Java file (Ctrl+Shift+O equivalent)
organizeImportsInPackageOrganizes imports in all Java files within a package

eclipse-ide — Code Analysis, Navigation & Build

ToolDescription
getSourceFull source of a class
getClassOutlineCompact class outline — declarations and method signatures (no bodies) with line numbers
getMethodSourceSource of specific methods by name, with overload disambiguation
getFilteredSourceFull source with non-selected methods collapsed to signatures
readProjectResourceRead a text resource, with optional import block collapsing
getJavaDocJavaDoc for a compilation unit
formatCodeFormat code using Eclipse formatter settings
getProjectPropertiesProject properties and configuration
getProjectLayoutFile/folder structure with scopePath and maxDepth support
listProjectsAll workspace projects with detected natures
listMavenProjectsAll Maven projects in the workspace
getCurrentlyOpenedFileCurrently active file in the editor
getEditorSelectionSelected text or lines in the active editor
getConsoleOutputRecent Eclipse console output
getMethodCallHierarchyCall hierarchy (callers) for a method
getTypeHierarchyType hierarchy (supertypes, interfaces, subtypes)
findReferencesAll references to a type, method, or field across the workspace
getCompilationErrorsCompilation errors from the workspace or a project
getQuickFixesAvailable quick fixes for compilation errors
getImportSuggestionsImport candidates for unresolved types
fileSearchSubstring search in workspace files
fileSearchRegExpRegex search in workspace files
findFilesGlob pattern file search
searchAndReplaceSearch and replace across multiple files
runAllTestsRun all tests in a project
runPackageTestsRun tests in a specific package
runClassTestsRun tests for a specific class
runTestMethodRun a specific test method
findTestClassesFind all test classes in a project
runMavenBuildRun a Maven build with specified goals
getEffectivePomEffective POM for a Maven project
getProjectDependenciesMaven project dependencies

eclipse-runner — Launch, Debug & Breakpoints

ToolDescription
runJavaApplicationLaunch in run mode with optional arguments and timeout
debugJavaApplicationLaunch in debug mode, stops at breakpoints
stopApplicationStop a running/debugging application
listActiveLaunchesList all running/debugging applications
toggleBreakpointSet or remove a line breakpoint
setConditionalBreakpointBreakpoint with condition expression and optional hit count
listBreakpointsList all breakpoints with status and conditions
removeAllBreakpointsRemove all breakpoints
getStackTraceStack trace of all threads with local variables
evaluateExpressionEvaluate a Java expression in a suspended debug frame
resumeDebugResume execution of a suspended session
stepOverStep over the current line
stepIntoStep into the method call
stepReturnStep out of the current method
hotCodeReplacePush code changes into a running debug session without restarting

eclipse-context — Resource Cache & Local History

ToolDescription
listCachedResourcesLists all resources in the conversation cache — URIs, types, versions, timestamps, token estimates
getCachedResourceGets cached resource content by URI without disk I/O
getCacheStatsCache statistics: resource count, token usage, limits
getFileHistoryLists Local History versions of a file with timestamps and sizes
getFileHistoryContentReads the content of a specific Local History version
restoreFileVersionRestores a file to a specific Local History version
compareWithHistoryShows a unified diff between current content and a historical version

Utility Servers

ServerToolDescription
duck-duck-searchwebSearchWeb search via DuckDuckGo
memorythinkScratchpad for reasoning without side effects
webpage-readerreadWebPageFetch a web page and return it as markdown
timecurrentTimeCurrent date and time
timeconvertTimeZoneConvert time between time zones

Configuration

Per-Server Tool Filtering

Each MCP server can have individual tools enabled or disabled to reduce token overhead or exclude irrelevant tools.

  1. Navigate to Window > Preferences > Assist AI > MCP Servers
  2. Select a server (works for both built-in and user-defined)
  3. In the Tools section, uncheck tools you want to exclude

Changes take effect immediately — both the internal MCP client and the HTTP server restart automatically. Excluded tools won't appear in tools/list responses.

Adding External MCP Servers

AssistAI is also an MCP client — you can connect external MCP servers (stdio-based) and use their tools through any of the supported LLMs.

  1. Open Window > Preferences > Assist AI > MCP Servers and click Add
  2. Configure the server:
    Name: server-filesystem
    Command: npx -y @modelcontextprotocol/server-filesystem ${workspace_loc}
    
  3. Define environment variables if needed (e.g., API keys)

The ${workspace_loc} variable resolves to the workspace folder. Other Eclipse variables are available (${project_loc}, etc.).

Security: MCP servers grant LLMs access to read and modify data. Use them cautiously.

HTTP MCP Server Security

  • Local network only by default — only expose externally if necessary
  • Authentication token — always use one when exposing beyond localhost
  • Firewall rules — allow connections only from trusted sources
  • HTTPS — consider a reverse proxy with TLS for production use
  • Access control — connected agents have access to all tools on enabled endpoints

Built-in Chat View

AssistAI includes a built-in LLM chat panel for direct interaction without external agents. Open it via Window > Show View > Other > Code Assist AI > AssistAI Chat.

Features:

  • Refactor, document, or generate tests for selected code via context menu
  • Fix compilation errors with LLM guidance
  • Discuss code with full file context
  • Generate git commit messages from staged changes
  • Drag-and-drop images for vision model discussions
  • LaTeX and table rendering in responses
  • In-text code completion with Alt+/
  • Smart resource caching — LLM always sees the latest version of attached files
  • Customizable pre-defined prompts
  • Switch between models on the fly

Supported Models

ProviderProtocolSample ModelsMCP / ToolsVision
OpenAIOpenAI APIgpt-5YesYes
AnthropicClaude APIclaude-sonnet-4-5-20250929YesYes
GoogleGemini APIgemini-2.5-flash, gemini-3-pro-previewYesYes
GrokGrok APIgrok-4, grok-code-fastYesYes
GroqOpenAI APIqwen-qwq-32b, llama3-70b-8192YesYes
DeepSeekDeepSeek APIdeepseek-chatYesNo
Local/Self-hostedOpenAI APIOllama, LM Studio, etc.VariesVaries
Other 3rd partyOpenAI APITogether.ai, Anyscale, etc.VariesVaries

Configure models in Window > Preferences > Assist AI > Models.

Screenshots

  1. claude-code controlling the Eclipse IDE via MCP

    Eclipse MCP

  2. Agentic coding with Eclipse MCP tools

    Eclipse Coder

  3. Discussing code in the built-in chat

    Discuss

  4. Refactoring selected code

    Refactor

  5. Generating documentation

    Document

  6. Generating JUnit tests

    JUnit Test Generation

  7. Git commit message generation

    Git Commit Message

  8. Fixing compilation errors with patches

    Fix Errors

  9. Tool calls for context-aware answers

    Function calling

  10. Vision model — discuss images

Vision

  1. LaTeX and table rendering

    Math rendering
  2. Configuring MCP servers

    MCP

Installation

Eclipse Marketplace

Drag the button below into your running Eclipse workspace:

Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client

Update Site

  1. In Eclipse, open Help > Install New Software
  2. Click Add, enter AssistAI as Name and https://gradusnikov.github.io/eclipse-chatgpt-plugin/ as Location
  3. Select "Assist AI" from the plugin list and proceed through the wizard
  4. Accept certificate warnings (self-signed plugin)

Initial Setup

  1. Open Window > Preferences > Assist AI
  2. Configure your models in Preferences > Assist AI > Models
  3. To use with external agents, enable the HTTP MCP Server (see above)

Reviews

No reviews yet

Sign in to write a review