@cloudverse/devx
v3.5.0
Published
CloudVerse DevX CLI - Local cost analysis for developers with MCP server support
Downloads
106
Maintainers
Readme
CloudVerse DevX CLI
Cloud cost issues are introduced through code and IaC changes. DevX surfaces cost impact locally and in pull requests.
Install (recommended)
npm install -g @cloudverse/devxAuthenticate
devx auth loginCommon usage
devx scan
devx scan --staged
devx scan --iacHooks
devx hooks install
devx hooks status
git commit --no-verifySecurity
- No cloud credentials required
- No full repo uploads
- Only changed files are analyzed
Verification
Every release includes checksums and GPG signatures:
shasum -a 256 <artifact>
gpg --verify SHA256SUMS.sig SHA256SUMSSee SECURITY.md for details.
Exit Codes
| Code | Meaning | |------|---------| | 0 | Clean (no findings, or advisory-only) | | 1 | Warnings present (non-blocking) | | 2 | Blocked by policy | | 3 | CLI / auth / backend error |
Commands
devx auth login # Authenticate via browser
devx auth status # Check authentication status
devx auth logout # Clear credentials
devx scan # Analyze working directory changes
devx scan --staged # Analyze staged changes only
devx hooks install # Install pre-commit/pre-push hooks
devx hooks uninstall # Remove DevX hooks
devx hooks status # Show hook installation status
devx explain <ruleId> # Get rule explanation
devx doctor # Run diagnostics
devx mcp # Start MCP server for AI agentsMCP Server (Model Context Protocol)
DevX includes an MCP server for integration with AI agents like Replit Agent, Claude, and other MCP-compatible tools.
Starting the MCP Server
# As a command
devx mcp
# Or via standalone binary
devx-mcpReplit Agent Configuration
Add to your MCP configuration:
{
"mcpServers": {
"devx-costlint": {
"command": "devx-mcp",
"args": []
}
}
}Available Tools
| Tool | Description |
|------|-------------|
| costlint_scan | Analyze code for cloud cost optimization opportunities |
| costlint_explain | Get detailed explanation of a CostLint rule |
Example Usage
The MCP server speaks JSON-RPC over stdio:
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"costlint_scan","arguments":{"code":"const client = new S3Client({});","language":"typescript"}}}Distribution
Official binaries and signatures are available at: https://github.com/CloudVerse-Pte-Ltd/devx/releases
License
MIT
