mcp-swing-17
Java 17 MCP server and agent for automating Swing and JavaFX desktop applications.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
https://github.com/kirnfs/mcp-swing-17/releases/download/v1.5.0-java17/mcp-swing-17-1.5.0-java17.mcpbالتوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
mcp-swing-17
MCP server and Java agent for automating Swing and JavaFX desktop applications, built for Java 17. Fork of Swing MCP.
- Version:
1.5.0-java17 - Upstream commit:
abfacfa - License: MIT (see
LICENSE) - Usage guide: USAGE.md
Contents
dist/mcp-swing-17-server.jar MCP server (stdio)
dist/mcp-swing-17-agent.jar Java agent loaded into the target JVM
dist/*.mcpb MCPB bundle for one-click clients
build.ps1 Windows build (JDK 17)
build.sh Linux/macOS build
mcp-swing-17-server/ server sources
mcp-swing-17-agent/ agent sources
mcp-swing-17-common/ shared classes
Build
powershell -NoProfile -ExecutionPolicy Bypass -File build.ps1
Requires JDK 17. Maven 3.9.9 is downloaded into .build/ on first use.
On Linux/macOS:
./build.sh
or:
mvn -s maven-settings.xml -DskipTests package
Run
SWING_MCP_AGENT_JAR=<path>/dist/mcp-swing-17-agent.jar
java -jar <path>/dist/mcp-swing-17-server.jar
The server uses stdio and is normally started by an MCP client. The agent attaches to an already
running Java application by PID through attach_to_app.
{
"mcpServers": {
"mcp-swing-17": {
"command": "java",
"args": ["-jar", "<path>/dist/mcp-swing-17-server.jar"],
"env": {
"SWING_MCP_AGENT_JAR": "<path>/dist/mcp-swing-17-agent.jar"
}
}
}
}
Differences from upstream
- Java 17 instead of Java 21: virtual threads replaced with a regular executor.
- Removed the Java 17-incompatible
JMenu instanceof JMenuItempattern. - Replaced
List.getFirst()withget(0). - Relocated the agent's Jackson package so the target application's Jackson cannot shadow it.
java.version=17, JavaFX 17.- Real-mouse
robotinput is disabled by default. close_windowcloses only the focused dialog unless awindowIndexis passed explicitly.
Security
- the agent listens on loopback only;
- keep
evaluate_javadisabled; - use as a development/testing tool;
- do not expose the agent port or the response-file token.
الأسئلة الشائعة
ما هو mcp-swing-17؟
Java 17 MCP server and agent for automating Swing and JavaFX desktop applications.
كيف أثبّت mcp-swing-17؟
اتبع خطوات التثبيت في توثيقه المعروض في هذه الصفحة وفي مستودعه.
هل يحتاج mcp-swing-17 إلى مفتاح API؟
لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.
هل mcp-swing-17 مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون mcp-swing-17؟
ينشره kirnfs. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.