
gradusnikov/eclipse-chatgpt-plugin 是从 https://github.com/gradusnikov/eclipse-chatgpt-plugin. 导入的 MCP 服务器候选
概览
gradusnikov/eclipse-chatgpt-plugin 是从 https://github.com/gradusnikov/eclipse-chatgpt-plugin. 导入的 MCP 服务器候选
概述(AI 翻译)
AssistAI 是一个 Eclipse IDE 插件,将你的整个开发环境暴露为 MCP(模型上下文协议)服务器。外部 AI 代理——Claude Code、OpenAI Codex、Claude Desktop 或任何兼容 MCP 的客户端——可以直接通过 Eclipse 读取、导航、编辑、构建、测试、运行和调试你的 Java 项目,保持工作区同步、本地历史和增量编译。
AssistAI 还内置了 LLM 聊天视图,支持与任何支持模型的快速在线交互。
为什么选择MCP到Eclipse?
当AI代理直接通过文件系统编辑文件时,Eclipse并不知道有什么变化。编辑显示陈旧内容,增量编译漏掉更新,出现本地历史空白。
AssistAI 通过通过 Eclipse API 路由所有操作来解决这个问题:
- 编辑通过JDT——增量编译立即触发,错误实时更新
- 重构使用Eclipse的重构引擎——重命名、移动和包重构会更新工作区内的所有引用
- 文件读取反映编辑器缓冲区——代理始终看到最新的未保存内容,而非磁盘上的版本
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
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
- Open Window > Preferences > Assist AI > HTTP MCP Server
- Check Enable HTTP MCP Server
- Set Hostname and Port (defaults:
localhost:8124) - Click Generate to create an authentication token
- Click Apply – the server starts immediately
The status panel shows all available endpoints:
http://localhost:8124/mcp/eclipse-ide– code analysis, navigation, search, testing, buildshttp://localhost:8124/mcp/eclipse-coder– file editing, refactoring, patching, formattinghttp://localhost:8124/mcp/eclipse-runner– launch, debug, breakpoints, steppinghttp://localhost:8124/mcp/eclipse-context– resource cache, file local history, version trackinghttp://localhost:8124/mcp/eclipse-git– git status, log, staging, commit, diff, branches, stash
2. Connect Your Agent
Claude Code
Add to your Claude Code MCP settings (~/.claude.json or project-level(.mcp.json in project root)):
{
"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"
]
},
安装
npx -y mcp-remote http://localhost:8124/mcp/eclipse-ide --allow-http --header Authorization: Bearer YOUR_TOKEN配置
{
"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"
]
},
"eclipse-git": {
"command": "npx",
"args": [
"-y", "mcp-remote", "http://localhost:8124/mcp/eclipse-git",
"--allow-http",
"--header", "Authorization: Bearer YOUR_TOKEN"
]
}
}
}