8000 GitHub - wildfly-extras/wildfly-mcp at 1.0.0.Alpha1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wildfly-extras/wildfly-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WildFly MCP

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.

Build WildFly MCP fat jar

Make sure to use JDK21+.

mvn clean install

Configure the chatbot

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

Available Tools

getWildFlyStatus

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.

getWildFlyConsumedMemory

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.

getWildFlyConsumedCPU

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.

getWildFlyLogFileContent

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.

getWildFlyLoggingCategories

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.

enableWildFlyLoggingCategory

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 as security, web, http) or a specific logger (io.undertow).

disableWildFlyLoggingCategory

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 as security, web, http) or a specific logger (io.undertow).

Example of questions to ask to the WildFly server

Make sure to first start you WildFly sever.

Health and resource consumption

  • 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?

Logging

  • 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?

Metrics

  • 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?

About

WildFly MCP server and other tooling to integrate WildFly in AI space

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

0