cryostatio/cryostat-mcp 是一个托管在 GitHub 上的开源项目,主要使用 Java 编写,采用 Other 许可证。
仓库全名
cryostatio/cryostat-mcp
README 摘要
Cryostat MCP Model Context Protocol (MCP) servers for Cryostat. Project Structure This is a multi-module Maven project containing two MCP server implementations: 1. cryostat-mcp (Single Instance) A stdio-based MCP server that connects to a single Cryostat instance. Ideal for: Local development with a single Cryostat instance Direct integration with MCP clients like Claude Desktop Simple single-instance deployments…
cryostat.io : the self-hosted Java application monitoring and profiling tool which this MCP connects to.
REQUIREMENTS
Build requirements:
git
JDK 21+
Maven v3+
BUILD
This project uses Quarkus, the Supersonic Subatomic Java Framework.
If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .
BUILD THE MCP
The MCP server can be built as an all-in-one Java JAR using:
$ ./mvnw install
After this, the MCP can be run directly using java -jar target/cryostat-mcp-*-runner.jar. Additional configuration is required to hook up the MCP server to a particular Cryostat server instance.
RUN
The easiest way to use the MCP is to provide an MCP configuration to your choice of compatible tool. LLM-enhanced code editors and development environments usually provide some way for you as a user to add custom MCP tools. The project’s mcp.json contains a template example you can use as a starting point.
Edit these environment variables to suit your Cryostat instance. You may need to replace the https://localhost:8443 in the REST_CLIENT and GRAPHQL_CLIENT variables with a different host and/or port. You may also need to adjust the CRYOSTAT_AUTH_VALUE - this default example is using HTTP Basic authentication where the credentials are user:pass. This should be adjusted to suit what your Cryostat instance requires: either a different Basic base64-encoded credential, or a Bearer abcd1234 auth token.
You should also consider enabling TLS verification. By default the example configuration disables TLS checks and will accept all certificates with no hostname verification, which is insecure. If your Cryostat instance presents a certificate with a correct hostname and signed by a trusted root CA then you should delete the following lines from your configuration.
评论