DevOps & Cloud Code Auditor MCP server
Commit 20 Sep 2026Memberikan alat static analysis kepada AI assistant untuk mendeteksi kebocoran biaya cloud, risiko migrasi database, dan kerentanan keamanan API.
Juga dikenal sebagai Ansarii/devops-code-auditor, devops-code-auditor
- Stars
- 0
- Tools
- 9
- Unduhan, 30 hari
- —
- Versi terbaru
- 1.0.0
- Commit terakhir
- 20 Sep 2026
- Lisensi
- MIT
Apa itu DevOps & Cloud Code Auditor MCP?
DevOps & Cloud Code Auditor adalah MCP server. Memberikan alat static analysis kepada AI assistant untuk mendeteksi kebocoran biaya cloud, risiko migrasi database, dan kerentanan keamanan API. Server ini menyediakan 9 tool, seperti repository_url, sub_directory, status.
Ringkasan dibuat dari README proyek
Tentang DevOps & Cloud Code Auditor MCP server
Mencegah outage di production dan pengeluaran cloud yang tidak terduga adalah fungsi utama DevOps & Cloud Code Auditor bagi engineer yang menggunakan AI assistant seperti Claude Desktop, Cursor, atau Windsurf. Dengan mengintegrasikan MCP server ini via stdio atau Docker, developer dapat memberikan kemampuan kepada AI agent mereka untuk melakukan static analysis pada infrastruktur dan kode aplikasi. Server ini berfokus pada tiga area kritis: optimasi biaya cloud untuk Terraform dan AWS, keamanan migrasi PostgreSQL untuk mencegah table locks, serta keamanan Next.js API untuk menghentikan kebocoran kredensial atau SQL injection.
User dapat mengaudit seluruh repositori Git publik menggunakan tool audit_devops_repository, memindai direktori filesystem lokal dengan audit_local_devops_directory, atau mengirimkan potongan kode mentah secara langsung ke audit_devops_code untuk mendapatkan feedback instan. Sistem ini menyediakan temuan dalam format JSON terstruktur dan laporan Markdown yang menyertakan kode perbaikan spesifik untuk masalah seperti missing S3 lifecycle transitions, unindexed foreign keys, atau unvalidated fetch calls. Karena sepenuhnya mengandalkan AST pattern matching dan regex, tool ini menjamin keamanan dengan tidak pernah mengeksekusi shell command yang tidak terpercaya atau koneksi database.
Apa yang bisa Anda lakukan dengannya
- 1Identifikasi kebocoran biaya AWSMinta AI Anda untuk memindai file Terraform guna mencari konfigurasi mahal seperti legacy EBS volumes atau public IP yang tidak diperlukan.
- 2Cegah database migration locksMinta assistant untuk memeriksa script migrasi PostgreSQL guna memastikan tidak akan menghentikan proses penulisan tabel di production.
- 3Audit keamanan Next.js APIVerifikasi bahwa Next.js Server Actions Anda menyertakan autentikasi yang tepat dan tidak membocorkan secret ke sisi client.
- 4Pindai direktori infrastruktur lokalJalankan audit keamanan dan biaya pada folder lokal sebelum melakukan submit pull request.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Cara menginstal DevOps & Cloud Code Auditor MCP
Format diverifikasi 10 Nov 2026Instal DevOps & Cloud Code Auditor MCP di Claude Code
$ claude mcp add --transport http devops-code-auditor https://neon_innovation_lab--devops-code-auditor.apify.actor/mcpInstal DevOps & Cloud Code Auditor MCP di Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"devops-code-auditor": {
"url": "https://neon_innovation_lab--devops-code-auditor.apify.actor/mcp"
}
}
}Instal DevOps & Cloud Code Auditor MCP di VS Code
.vscode/mcp.json
{
"servers": {
"devops-code-auditor": {
"type": "http",
"url": "https://neon_innovation_lab--devops-code-auditor.apify.actor/mcp"
}
}
}Instal DevOps & Cloud Code Auditor MCP di Codex
~/.codex/config.toml
[mcp_servers.devops-code-auditor] url = "https://neon_innovation_lab--devops-code-auditor.apify.actor/mcp"
Instal DevOps & Cloud Code Auditor MCP di Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"devops-code-auditor": {
"httpUrl": "https://neon_innovation_lab--devops-code-auditor.apify.actor/mcp"
}
}
}Tool DevOps & Cloud Code Auditor MCP 9
Terdeteksi dari READMErepository_urlsub_directorystatustotal_findingsfindingsmarkdown_reportcodefile_typedirectory_path
| repository_url | — | |
| sub_directory | — | |
| status | — | |
| total_findings | — | |
| findings | — | |
| markdown_report | — | |
| code | — | |
| file_type | — | |
| directory_path | — |
README
Lihat di GitHubDevOps & Cloud Code Auditor (MCP Server)
A production-ready Model Context Protocol (MCP) Server providing AI coding assistants (Claude Desktop, Cursor, Windsurf, Cline) with automated static analysis tools to prevent production outages, cloud cost leaks, and security vulnerabilities.
🌟 Capabilities & Audited Rule Sets
This server inspects codebases across three mission-critical engineering vectors:
-
Cloud Cost Leaks (Terraform / HCL / AWS):
EBS_GP2: Identifies legacygp2EBS volumes (gp3provides equal durability with ~20% baseline cost reduction and higher baseline IOPS).PUBLIC_IP: Flags unneededassociate_public_ip_address = trueincurring hourly AWS IPv4 charges ($0.005/hr/IP).CW_NO_RETENTION: Catchesaws_cloudwatch_log_groupmissing retention policies (preventing infinite unbudgeted log ingestion costs).S3_NO_LIFECYCLE: Detects S3 buckets lacking Glacier lifecycle transitions.RDS_MULTIAZ_NONPROD&RDS_PROVISIONED_IOPS_NONPROD: Flags doubled database infrastructure costs on development and staging environments.
-
PostgreSQL Migration Table Lock Hazards:
INDEX_NOT_CONCURRENT: DetectsCREATE INDEXmissingCONCURRENTLY(which acquires anEXCLUSIVElock and halts table writes in production).NOT_NULL_VOLATILE_DEFAULT: CatchesADD COLUMN ... NOT NULL DEFAULT <func()>rewriting every table row under anACCESS EXCLUSIVElock.FK_NO_INDEX: Flags unindexed foreign key constraints causing cascading table-level sequential lock scans on parent updates/deletes.FOR_UPDATE_UNBOUNDED: CatchesSELECT ... FOR UPDATEmissingLIMITorSKIP LOCKED, preventing deadlocks.
-
OWASP & Full-Stack Next.js API Security:
NEXT_PUBLIC_SECRET_LEAK: Flags sensitive tokens and private API keys prefixed withNEXT_PUBLIC_that leak into public client browser bundles.NEXTJS_SERVER_ACTION_NO_AUTH: Flags Next.js 14/15 Server Actions exporting mutations without explicit session auth verification.SQLI_RAW_INTERPOLATION: Identifies raw SQL query templates using string interpolation instead of parameterized inputs.SSRF_UNVALIDATED_FETCH: Catches external fetch calls consuming user inputs without protocol/hostname validation.
🛠️ MCP Tools Exposed
This server implements the official Model Context Protocol specification (tools/list and tools/call):
1. audit_devops_repository
Clones a public Git repository shallowly without executing hooks, performs AST and regex static syntax audits, and returns structured findings and a formatted Markdown report.
- Parameters:
repository_url(string, required): Public Git URL of the repository to audit (e.g.https://github.com/example/cloud-infra).sub_directory(string, optional): Specific subdirectory within the repository to inspect (e.g.terraform/orprisma/migrations/).
- Returns:
status: "success" | "error"total_findings: Number of detected issuesfindings: Array of detailed vulnerability records (file, line number, rule ID, severity, message, fix code)markdown_report: Human-readable summary table
2. audit_devops_code
Directly audits a raw code snippet of Terraform (HCL), PostgreSQL migration (SQL), or Next.js API/Server Action code.
- Parameters:
code(string, required): The source code string to audit.file_type(string, optional, default: "auto"): One of"terraform","postgres","nextjs", or"auto".
- Returns: Structured JSON findings with exact drop-in code fixes.
3. audit_local_devops_directory
Audits a local filesystem directory on the host machine before submitting a Pull Request or deploying to staging.
- Parameters:
directory_path(string, required): Absolute filesystem path to the target folder.
- Returns: Structured JSON findings and severity breakdown.
🚀 Client Configuration & Quickstart
1. Claude Desktop Setup
Add the server to your claude_desktop_config.json:
{
"mcpServers": {
"devops-code-auditor": {
"command": "python3",
"args": ["/path/to/devops-code-auditor/server.py"]
}
}
}
2. Cursor IDE / Windsurf Setup
In Cursor, navigate to Settings → Features → MCP → Add New MCP Server:
- Name:
devops-code-auditor - Type:
command - Command:
python3 /absolute/path/to/devops-code-auditor/server.py
3. Docker Execution
Run the isolated container via Docker:
{
"mcpServers": {
"devops-code-auditor": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/ansarii/devops-code-auditor"
]
}
}
}
💻 Example Agent Usage
Once connected, your AI assistant can evaluate migration files and cloud manifests on demand:
User: "Check this PostgreSQL migration before I run it on production:
CREATE INDEX idx_orders_user_id ON orders (user_id);"
Claude (Tool Call):
audit_devops_code({
"code": "CREATE INDEX idx_orders_user_id ON orders (user_id);",
"file_type": "postgres"
})
Result:
{
"status": "success",
"total_findings": 1,
"findings": [
{
"suite": "postgres-locks",
"rule": "INDEX_NOT_CONCURRENT",
"severity": "high",
"file": "migration.sql",
"line": 1,
"message": "CREATE INDEX on \"orders\" without CONCURRENTLY blocks table writes during build.",
"fix": "CREATE INDEX CONCURRENTLY idx_orders_user_id ON orders (user_id);"
}
]
}
🔒 Security Guarantee: Zero Execution
This server executes 100% static analysis using AST pattern matching and regex verification. It never executes untrusted shell commands, arbitrary Python code, or database connections on your machine.
📜 License
MIT License — Copyright (c) 2026 Neon Innovation Lab. Maintained by Neon Innovation Lab.
Pertanyaan tentang DevOps & Cloud Code Auditor MCP
Bagaimana cara menambahkan DevOps & Cloud Code Auditor MCP ke Claude Code?
Jalankan claude mcp add --transport http devops-code-auditor https://neon_innovation_lab--devops-code-auditor.apify.actor/mcp di terminal Anda. Tambahkan --scope user agar tersedia di semua proyek.
Bagaimana cara menambahkan DevOps & Cloud Code Auditor MCP ke Cursor?
Buka ~/.cursor/mcp.json dan tambahkan server di bawah mcpServers, menggunakan config Cursor yang ditunjukkan di bagian instalasi di atas.
Tool apa yang disediakan DevOps & Cloud Code Auditor MCP?
Server ini menyediakan 9 tool, termasuk repository_url, sub_directory, status, total_findings, findings.
Jenis kode apa yang bisa diaudit oleh server ini?
Server ini dapat mengaudit Terraform (HCL), migrasi PostgreSQL, serta kode Next.js API atau Server Action.
Apakah server ini mengeksekusi kode saya?
Tidak, server ini menggunakan 100% static analysis melalui AST pattern matching dan regex, sehingga memastikan tidak ada perintah yang tidak terpercaya atau koneksi database yang dijalankan.
Bisakah saya mengaudit repositori GitHub publik?
Ya, tool audit_devops_repository memungkinkan Anda untuk melakukan clone dan inspeksi repositori Git publik secara shallow.