java.lang.Object
is.codion.tools.swing.mcp.SwingMcpPlugin
Plugin that integrates MCP server directly into a Swing application.
This allows AI tools to control the application via the Model Context Protocol over HTTP.
The HTTP server runs in-process and can be toggled on/off at runtime. Claude Desktop connects via a Java bridge that translates STDIO to HTTP.
Configure with system properties: -Dcodion.swing.mcp.http.port=8080 (HTTP server port, default 8080)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyValue<Integer> System property to set the HTTP server port (default: 8080). -
Method Summary
Modifier and TypeMethodDescriptionstatic StatemcpServer(JComponent applicationComponent, boolean includeNarrator) Create an MCP server for the given application component.
-
Field Details
-
HTTP_PORT
System property to set the HTTP server port (default: 8080).- Value type: Integer
- Default value: 8080
-
-
Method Details