About Garnix Insights
Garnix Insights is an MCP server published by shift in the Developer Tools category: cI/CD insights tool for Garnix.io with CLI, server, and MCP support.
The repository has 2 stars and 1 forks, with the last commit 4 months ago. Recent commit activity is the strongest signal that reported issues will get attention.
Install
git clone https://github.com/shift/garnix-insightsThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Garnix Insights
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
Garnix Insights
A multi-mode Rust application for CI/CD insights from Garnix.io. Available as a CLI tool, HTTP server, and MCP (Model Context Protocol) server for AI assistant integration.
Features
- Multiple Operating Modes: CLI, HTTP server, and MCP server
- Build Analysis: Real-time status, detailed logs, and failure analysis
- Output Formats: Human-readable, JSON, and plain text
- AI Assistant Integration: Full MCP support for GitHub Copilot, Claude, and other AI tools
- Error Handling: Graceful handling of API failures and network issues
Installation
From Cargo (Recommended)
cargo install garnix-insights
From Nix Flake
# Install to profile
nix profile install github:shift/garnix-insights
# Or run directly
nix run github:shift/garnix-insights -- --help
From Source
git clone https://github.com/shift/garnix-insights.git
cd garnix-insights
nix build
./result/bin/garnix-insights --help
Usage
CLI Mode
Set your JWT token as an environment variable:
export GARNIX_JWT_TOKEN="your_jwt_token_here"
Getting Your JWT Token
Currently, the JWT token is only available through browser developer tools:
- Login to Garnix.io: Go to https://garnix.io and log in to your account
- Open Developer Tools: Press F12 or right-click → "Inspect Element"
- Go to Network Tab: Click on the "Network" tab in developer tools
- Make an API Request: Navigate around the Garnix.io site to trigger API calls
- Find API Request: Look for requests to
api.garnix.ioin the network list - Copy JWT from Cookie:
- Click on any API request
- Go to "Request Headers" section
- Find the
Cookieheader - Copy the JWT value from the cookie
Note: This method is not ideal - I've reached out to the Garnix.io maintainers about providing a better solution for API access. Thanks to @lassulus for helping connect me with the team!
Commands
Check build status for a commit:
garnix-insights fetch --commit-id 3402d0072ce57370ed58ce28fe879c32a3501392
Get detailed build logs:
garnix-insights logs --commit-id 3402d0072ce57370ed58ce28fe879c32a3501392
Output Formats:
garnix-insights fetch --commit-id <COMMIT> --format json # JSON output
garnix-insights fetch --commit-id <COMMIT> --format human # Human-readable (default)
garnix-insights fetch --commit-id <COMMIT> --format plain # Plain text
HTTP Server Mode
export GARNIX_JWT_TOKEN="your_jwt_token_here"
garnix-insights server
Access the API at http://127.0.0.1:8080/build-status/{commit_id}
MCP Server Mode
For AI assistant integration:
export GARNIX_JWT_TOKEN="your_jwt_token_here"
# Optional: choose protocol version (latest|stable|legacy|YYYY-MM-DD)
export GARNIX_MCP_PROTOCOL_VERSION=stable
# or pass as a flag: --mcp-version 2025-03-26
garnix-insights mcp
See MCP protocol details in MCP-USAGE.md.
AI Assistant Integration
GitHub Copilot
Add this to your .github/copilot-instructions.md:
## Garnix CI/CD Integration
- Use `garnix-insights fetch --commit-id <SHA>` to check build status
- Use `garnix-insights logs --commit-id <SHA>` for failure analysis
- Always check builds before suggesting deployments
- Parse JSON output for programmatic analysis
Claude Desktop
Add to your configuration file:
{
"mcpServers": {
"garnix-insights": {
"command": "garnix-insights",
"args": ["mcp"],
"env": {
"GARNIX_JWT_TOKEN": "your-token-here"
}
}
}
}
For setup instructions, see MCP-CONFIGURATION.md.
Development
Prerequisites
- Nix with flakes enabled
- Rust toolchain (via Nix shell)
Getting Started
# Clone the repository
git clone https://github.com/shift/garnix-insights.git
cd garnix-insights
# Enter development environment
nix develop
# Run tests
cargo test
# Build for development
cargo build
# Run CI checks
nix flake check
Publishing
See PUBLISHING.md for detailed instructions on publishing to crates.io.
License
This project is licensed under AGPL-3.0 with commercial approval requirements.
- Open Source Use: Free for open source projects under AGPL-3.0 terms
- Commercial Use: Requires separate commercial license approval
- See LICENSE-AGPL-3.0.md for full license terms
- See LICENSE-ANALYSIS.md for dependency analysis
Support
- Issues: https://github.com/shift/garnix-insights/issues
- Documentation: Guides in AI-INSTRUCTIONS.md and MCP-CONFIGURATION.md
- Contributing: Follow standard Rust/Nix contribution practices
Clean release trigger
test: trigger clean release check
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.