Skip to main content
Glama

🛡️ Publish Control

Pre-publish security & code quality analysis MCP server for AI coding assistants (Google Antigravity, Cursor, Claude Desktop, Codex).

Publish Control, yapay zeka kodlama asistanları ile geliştirilen projeleri yayına almadan önce 17 farklı güvenlik ve mimari kategorisinde otomatik analizden geçiren, açık kaynaklı bir Model Context Protocol (MCP) sunucusudur.


🎯 17 Güvenlik & Kalite Denetim Modülü

AI asistanınıza /publish-control yazdığınızda sistem aşağıdaki 17 kontrolü eşzamanlı çalıştırır:

No

Modül

İkon

Açıklama

Seviye

1

Secrets Detection

🔑

AWS, Stripe, GitHub, JWT, Google API anahtarları ve Shannon entropi analizi

CRITICAL

2

Environment Security

📁

.env dosyalarının gitignore durumu, açıkta kalan anahtarlar ve fallback riskleri

CRITICAL / HIGH

3

Injection Protection

💉

SQL string concat, NoSQL ($where), komut çalıştırma (exec), XSS kontrolleri

CRITICAL / HIGH

4

Auth & Authorization

🔒

JWT none algoritması, zayıf hashler (MD5/SHA1), yetkisiz Express rotaları

CRITICAL / HIGH

5

Server Config Audit

🌐

0.0.0.0 dinleme, açık debug bayrakları, eksik Helmet koruması

HIGH / MEDIUM

6

CORS Misconfiguration

🛡️

Wildcard (*) origin, credentials: true çakışması

HIGH / CRITICAL

7

HTTPS / TLS Security

🔐

rejectUnauthorized: false, düz HTTP dış istekleri

CRITICAL / HIGH

8

Path Traversal

📂

path.join/fs çağrılarında kullanıcı girdisiyle dizin dışına çıkma

CRITICAL

9

SSRF Detection

🌍

Kullanıcı kontrollü URL istekleri, 169.254.169.254 bulut metadata sızıntısı

CRITICAL / HIGH

10

Docker Security

🐳

USER root, :latest tag, privileged: true, .dockerignore denetimi

HIGH / MEDIUM

11

Dependency Audit

📦

Eksik lockfile (package-lock.json), wildcard (*) versiyonlar, riskli paketler

HIGH / MEDIUM

12

Rate Limiting

⚡

Brute-force ve DoS risklerine karşı rate limiter koruma eksikliği

MEDIUM / HIGH

13

File Permissions

🗂️

chmod 777 kullanımı, filtresiz dosya yükleme (multer)

HIGH / MEDIUM

14

Error Handling

❌

Stack trace sızıntısı, istemciye çiğ hata objesi dönülmesi

MEDIUM

15

Sensitive Logging

📝

console.log ile şifre, token ve request body yazdırılması

MEDIUM / HIGH

16

Security Config

🔧

Eksik httpOnly çerez bayrakları, TypeScript strict mod eksikliği

MEDIUM / HIGH

17

Code Quality Hygiene

📊

@ts-ignore aşırılığı, çözülmemiş güvenlik TODO/FIXME notları, any kirliliği

LOW / MEDIUM


Related MCP server: Security-Use MCP Server

🛠️ Sunulan MCP Araçları (Tools)

  • publish_control: 17 kategoride tam tarama yapar, 0-100 güvenlik skoru ve görsel Markdown raporu üretir.

  • publish_control_quick: Sadece en kritik güvenlik açıklarını (Secrets, Env, Injection, Auth, Server) hızla inceler.

  • publish_control_fix: Tespit edilen herhangi bir bulgunun ID'sine (ör. SEC-001, INJ-002) göre kod düzeltme ve refactor önerisi verir.


🚀 Hızlı Başlangıç

1. Kurulum & Derleme

git clone https://github.com/EthYusuf/publish-control.git
cd publish-control
npm install
npm run build

2. İstemcinize MCP Konfigürasyonunu Ekleyin

Google Antigravity

~/.gemini/config/mcp_config.json:

{
  "mcpServers": {
    "publish-control": {
      "command": "node",
      "args": ["<PATH_TO_PUBLISH_CONTROL>/dist/index.js"]
    }
  }
}

Cursor IDE

~/.cursor/mcp.json veya .cursor/mcp.json:

{
  "mcpServers": {
    "publish-control": {
      "command": "node",
      "args": ["<PATH_TO_PUBLISH_CONTROL>/dist/index.js"]
    }
  }
}

Claude Desktop

%APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "publish-control": {
      "command": "node",
      "args": ["<PATH_TO_PUBLISH_CONTROL>\\dist\\index.js"]
    }
  }
}

🧪 Testleri Çalıştırma

npm test

📄 Lisans

Bu proje MIT Lisansı altında lisanslanmıştır.

Available Tools

3 tools
publish_controlB

Projedeki tüm kodları 17 farklı güvenlik kategorisinde analiz eder. Hardcoded secrets, env güvenliği, server açıkları, SQL/NoSQL injection, authentication, dependency güvenliği, Docker, CORS, SSRF, path traversal, HTTPS/TLS, rate limiting, dosya izinleri, error handling, logging, güvenlik konfigürasyonu ve kod kalitesi kontrolleri yapar. Yayına almadan önce kapsamlı güvenlik raporu üretir.

Inputs: projectPath (required), severity, categories.

publish_control_fixA

Belirli bir güvenlik bulgusu için detaylı düzeltme önerileri ve kod örnekleri üretir. Önce publish_control ile tarama yapın, ardından bulgu ID'si ile düzeltme önerisi alın.

Inputs: findingId (required), projectPath (required).

publish_control_quickA

Sadece CRITICAL ve HIGH seviye kontrolleri çalıştırır. Secrets, env exposure, injection ve auth gibi en kritik kontrolleri yapar. Hızlı güvenlik değerlendirmesi için kullanılır.

Inputs: projectPath (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 3 tools

    Disambiguation4/5

    The three tools have distinct roles: a full 17-category scan, a critical/high-only fast scan, and a per-finding remediation helper. The only mild overlap is between publish_control and publish_control_quick, but the descriptions make the scope difference (comprehensive vs CRITICAL/HIGH only) explicit.

    Naming Consistency4/5

    All tools share a single predictable prefix ('publish_control') with consistent snake_case suffixes (_quick, _fix). The base tool carries no verb, so the pattern is more 'namespace + variant' than verb_noun, but it is internally consistent and readable.

    Tool Count4/5

    Three tools cover the realistic modes of a pre-deploy security gate: full audit, fast check, and fix guidance. It is on the lean side but each tool has a clear reason to exist rather than being redundant padding.

    Completeness3/5

    The scan-to-fix lifecycle is present, but there is no standalone way to list or re-query findings, filter by category or severity, export/report results, or suppress/baseline known issues. publish_control_fix also has a hard dependency on finding IDs that only appear in scan output, creating a potential dead end.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables security scanning of codebases through integrated tools for secret detection, SCA, SAST, and DAST vulnerabilities, with AI-powered remediation suggestions based on findings.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides AI coding assistants with real-time security scanning superpowers, including SAST, secrets detection, dependency CVE scanning, and web vulnerability assessment.
      24 npm
      Apache 2.0