A WildFly MCP server to integrate with your AI chatbot in order to interact with WildFly server using natural language. This MCP server is a Java quarkus fat jar application that you can configure in your chatbot mcp configuration.
Make sure to use JDK21+.
mvn clean install
Add the following json to the chatbot configuration file:
{
"mcpServers": {
"wildfly": {
"command": "java",
"args": ["-jar",
"[path to the repository]/wildfly-mcp-server/target/wildfly-mcp-server-1.0.0-SNAPSHOT-runner.jar"]
}
}
}
If you are using jbang, you can add the following json content:
{
"mcpServers": {
"wildfly": {
"command": "jbang",
"args": ["--quiet",
"org.wildfly:wildfly-mcp-server:1.0.0-SNAPSHOT:runner"]
}
}
}
-
For claude.ai, on Fedora, add it to the file
~/.config/Claude/claude_desktop_config.json
. -
For MCPHost, add to a file named
mcp.json
and call:./mcphost_Linux_x86_64/mcphost --config [path to the file]/mcp.json --model ollama:llama3.1:8b
Get the status of the WildFly server running on the provided host and port arguments.
Inputs:
host
: The host name on which the WildFly server is running.port
: The port the WildFly server is listening on.
Get the percentage of memory consumed by the WildFly server running on the provided host and port arguments.
Inputs:
host
: The host name on which the WildFly server is running.port
: The port the WildFly server is listening on.
Get the percentage of cpu consumed by the WildFly server running on the provided host and port arguments.
Inputs:
host
: The host name on which the WildFly server is running.port
: The port the WildFly server is listening on.
Get the log file content of the WildFly server running on the provided host and port arguments.
Inputs:
host
: The host name on which the WildFly server is running.port
: The port the WildFly server is listening on.userName
: The admin user name.password
: The admin user password.
Get the list of the enabled logging categories for the WildFly server running on the provided host and port arguments.
Inputs:
host
: The host name on which the WildFly server is running.port
: The port the WildFly server is listening on.userName
: The admin user name.password
: The admin user password.
Enable a logging category for the WildFly server running on the provided host and port arguments.
Inputs:
host
: The host name on which the WildFly server is running.port
: The port the WildFly server is listening on.userName
: The admin user name.password
: The admin user password.loggingCategory
: The logging category. Can be a high level category (such assecurity
,web
,http
) or a specific logger (io.undertow
).
Disable a logging category for the WildFly server running on the provided host and port arguments.
Inputs:
host
: The host name on which the WildFly server is running.port
: The port the WildFly server is listening on.userName
: The admin user name.password
: The admin user password.loggingCategory
: The logging category. Can be a high level category (such assecurity
,web
,http
) or a specific logger (io.undertow
).
Make sure to first start you WildFly sever.
- Hi, could you connect to the WildFly server running on host loc 8646 alhost and port 9990 and get the status of the server?
- Hi, is the WildFly server activity normal?
- Hi, could you connect again to the WildFly server and give me the status?
- Hi, could you connect to the WildFly server running on localhost and port 7777 and get the status of the server?
- Hi, could you connect to the WildFly server running on host localhost and port 9990 with the user name admin and password foo then enable the security logging?
- Hi, could you connect to the WildFly server running on host localhost and port 9990 with the user name admin and password admin then enable the security logging?
Then attempt to connect to the server with invalid credentials, that the chatbot will analyze in the next question.
- Hi, could you connect to the WildFly server and get the content of the log file, analyze it and check for errors?
- Hi, could you disable the security logging?
- Hi, could you connect to the WildFly server running on host localhost and port 9990 with the user name admin and password admin and check the available memory and cpu usage?
- Hi, could you connect to the WildFly server and check if it has enough available memory to run?
- Hi, could you connect to the WildFly server and check if the cpu usage is not too high?