MCP server for Chronosphere. Serves tools for fetching logs, metrics, traces, events as well as select entities.
This project is a work in progress. Many features are not yet implemented and features may be added, changed or removed without warning.
First build the binary
make chronomcp
{
"mcpServers": {
"chronosphere-mcp": {
"command": "<PATH/TO/REPO>/bin/chronomcp",
"args": [
"-c",
"<PATH/TO/REPO>/config.yaml"
],
"env": {
"CHRONOSPHERE_ORG_NAME": "<your org here>",
"CHRONOSPHERE_API_TOKEN": "<your api token here>"
}
}
}
}
This MCP server uses the same authentication methods as chronoctl. By default, the Makefile expects the API token to be stored in .chronosphere_api_token
.
make run-chronomcp CHRONOSPHERE_ORG_NAME=<your org here> CHRONOSPHERE_API_TOKEN=<your api token here>
The MCP project provides an inspector useful for directly calling tools APIs. To use:
- Start the MCP server with streamable http transport
make run-chronomcp CONFIG_FILE=./config.http.yaml CHRONOSPHERE_ORG_NAME=<your org here>
- Run
npx @modelcontextprotocol/inspector node build/index.js
. - Open http://localhost:6274/#resources , fill in
http://0.0.0.0:8081/mcp
in the URL, with transport type Streamable HTTP.
See chat/README.md
See agent/README.md
We use goreleaser to manage releases.
You'll need a github token and put it in a .github_release_token file. The token needs at least the following permissions
content: write
issues: write
To create a new release, first create a tag:
git tag vX.Y.Z
git push origin vX.Y.Z
Then run the following command to perform a dry run of the release:
```sh
make release-dry-run
# verify the release looks good, then run:
make release