| Crates.io | garnix-insights |
| lib.rs | garnix-insights |
| version | 0.2.0 |
| created_at | 2025-08-14 18:30:13.033156+00 |
| updated_at | 2025-08-15 13:08:38.149695+00 |
| description | CI/CD insights for Garnix.io - CLI tool, HTTP server, and MCP server for build status analysis |
| homepage | https://github.com/shift/garnix-insights |
| repository | https://github.com/shift/garnix-insights |
| max_upload_size | |
| id | 1795235 |
| size | 286,974 |
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.
cargo install garnix-insights
# Install to profile
nix profile install github:shift/garnix-insights
# Or run directly
nix run github:shift/garnix-insights -- --help
git clone https://github.com/shift/garnix-insights.git
cd garnix-insights
nix build
./result/bin/garnix-insights --help
Set your JWT token as an environment variable:
export GARNIX_JWT_TOKEN="your_jwt_token_here"
Currently, the JWT token is only available through browser developer tools:
api.garnix.io in the network listCookie headerNote: 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!
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
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}
For AI assistant integration:
export GARNIX_JWT_TOKEN="your_jwt_token_here"
garnix-insights mcp
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
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.
# 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
See PUBLISHING.md for detailed instructions on publishing to crates.io.
This project is licensed under AGPL-3.0 with commercial approval requirements.
test: trigger clean release check