salesforce-deployment-guard
Salesforce Deployment Guard MCP
Ein ausschließlich lokaler Server für das Model Context Protocol, der Salesforce-typische Deployment-Nachweise in strukturierte Befunde und Behebungsschritte umwandelt.
Dies ist ein Clean-Room-Portfolio-Projekt. Es verwendet deterministische Regeln und synthetische Beispiele – keine Salesforce-Org, keine Zugangsdaten, kein LLM, keine Telemetrie und kein Netzwerkzugriff.
Werkzeuge
Werkzeug | Zweck |
| Klassifiziert fehlende Metadaten, ungültige Referenzen, Apex-Test-Fehler, Berechtigungsfehler, fehlerhaftes XML und unbekannte Nachweise. |
| Erkennt fehlende Abhängigkeiten, Duplikate, ungültige Namen, Selbstabhängigkeiten und Zyklen. |
| Kennzeichnet breite Systemberechtigungen, Modify-All für Objekte, doppelte Änderungen und Schreib-ohne-Lese-Kombinationen. |
| Wandelt Befunde in eine deterministische, nach Priorität geordnete Checkliste um. |
Jedes Werkzeug ist schreibgeschützt und gibt sowohl menschenlesbaren Text als auch strukturiertes JSON zurück.
Related MCP server: Security & GRC MCP Server
Schnellstart
Voraussetzungen: Node.js 20.19 oder neuer.
git clone https://github.com/qpulce-dev/salesforce-deployment-guard-mcp.git
cd salesforce-deployment-guard-mcp
npm ci
npm run verify
npm run buildMCP-Client verbinden
Codex CLI:
codex mcp add salesforce-deployment-guard -- node "/absolute/path/to/salesforce-deployment-guard-mcp/dist/server.js"Mit Claude Desktop kompatible Konfiguration:
{
"mcpServers": {
"salesforce-deployment-guard": {
"command": "node",
"args": [
"/absolute/path/to/salesforce-deployment-guard-mcp/dist/server.js"
]
}
}
}Nachdem Sie die MCP-Konfiguration geändert haben, starten Sie den Client neu.
Live-MCP-Transkript
Aufgezeichnet von einem echten MCP-Client, der über stdio mit dem erstellten Server verbunden ist:
connected: salesforce-deployment-guard-mcp
tools: analyze_deployment_log, validate_metadata_manifest, assess_permission_risk, build_remediation_plan
call: analyze_deployment_log
arguments: {"log":"Error: no CustomField named Demo__c.Region__c found"}
{
"status": "issues_found",
"findings": [
{
"code": "SF_MISSING_METADATA",
"category": "missing_dependency",
"severity": "error",
"evidence": "Error: no CustomField named Demo__c.Region__c found",
"likelyCause": "A referenced metadata component is absent from the deployment set or target org.",
"nextChecks": [
"Confirm the referenced component exists in source control.",
"Add the dependency to the deployment manifest before its consumer."
]
}
]
}Das Verzeichnis fixtures/ enthält zusätzliche synthetische Eingaben.
Architektur
MCP client
-> Zod input schema
-> small tool handler
-> deterministic domain function
-> structured JSON + concise textsrc/server.tsregistriert Werkzeuge und übernimmt den stdio-Start.src/domain/enthält die reine Diagnose- und Planungslogik.src/tools/result.tsformatiert stabile MCP-Antworten.tests/umfasst Domänenverhalten, Datenschutzregeln und einen echten stdio-MCP-Handshake.fixtures/enthält ausschließlich synthetische Beispiele.
Verifikation
npm run verifyDieser Befehl führt Formatierung, ESLint, strikte TypeScript-Prüfungen, 39 Tests, einen Produktions-Build und den Datenschutz-Scan aus. Der MCP-Smoke-Test startet den erstellten Server, handelt die Client-Verbindung aus, listet alle vier Werkzeuge auf und ruft ein Werkzeug auf.
CI führt dieselbe Verifikation unter Node.js 20.19 und 22 aus.
Datenschutz und Sicherheit
Keine Netzwerkaufrufe zur Laufzeit.
Keine Datenspeicherung oder Telemetrie.
Keine Umgebungsvariablen oder Zugangsdaten erforderlich.
Eingaben werden vor der Analyse begrenzt.
Fehler geben keine Stack-Traces oder lokalen Pfade zurück.
Enthaltene Beispiele verwenden Namen wie
Demo__cundDemo_Access.Der Datenschutz-Scanner meldet nur Datei- und Regelkennungen, niemals den tatsächlich übereinstimmenden Geheimtext.
Zur zusätzlichen lokalen Prüfung des Organisationsnamens:
PRIVATE_ORG_NAMES="Private Org One,Private Org Two" npm run privacy:scanFügen Sie keine echten Produktionsprotokolle in öffentliche Issues, Commits oder Fixtures ein.
Einschränkungen
Dieser Server bietet deterministische Prüfempfehlungen. Er verbindet sich nicht mit Salesforce, validiert keine Live-Org, ersetzt kein Sicherheitsreview und garantiert keinen Deployment-Erfolg. Unbekannte Nachweise bleiben als unknown klassifiziert.
Lizenz
MIT © 2026 Queanu Pulce
Available Tools
4 toolsanalyze_deployment_logAnalyze Salesforce Deployment LogARead-only
Classify common Salesforce deployment failures using deterministic, local-only rules.
Inputs: log (required). Returns: status, findings
assess_permission_riskAssess Salesforce Permission RiskARead-only
Review synthetic permission changes for broad access and least-privilege concerns.
Inputs: changes (required). Returns: risk, findings
build_remediation_planBuild Salesforce Deployment Remediation PlanBRead-only
Turn diagnostic findings into a deterministic, prioritized remediation checklist.
Inputs: findings (required). Returns: steps, status
validate_metadata_manifestValidate Salesforce Metadata ManifestARead-only
Detect missing dependencies, duplicate entries, invalid names, self-references, and dependency cycles.
Inputs: components (required). Returns: valid, findings, componentCount
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct role in the deployment-guard workflow: analyzing logs, validating manifests, reviewing permissions, and generating remediation plans. There is no overlap or ambiguity between them.
All tool names follow the same verb_noun pattern (analyze_, validate_, assess_, build_), creating a predictable and consistent naming convention that makes it easy for an agent to infer each tool's purpose.
Four tools is well-scoped for a deployment guard server. The set covers the essential phases—diagnosis, validation, risk assessment, and remediation—without unnecessary bloat or missing core functionality.
The four tools form a coherent pipeline from failure analysis through remediation planning. Minor gaps exist, such as no direct tool for retrieving raw deployment logs or applying fixes, but these are likely outside the server's declared guard purpose.
Related MCP Connectors
Detects database migration table locks, terraform cost leaks, and OWASP API flaws.
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Generate SBOMs, scan vulnerabilities, and analyze dependencies from local projects or Git repos.
Deep security scans of repos you own from your editor: dependency CVEs, SAST, git-history secrets.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables auditors to scan cloud IAM policies for privilege-escalation paths, wildcards, and risky grants directly within Cursor or Claude Code, using a deterministic rule engine that runs entirely on local infrastructure.1-
- FlicenseNot gradedqualityNot gradedmaintenanceEnables local security scanning and compliance gap analysis for code and text, detecting secrets, PII, and OWASP vulnerabilities, and assessing readiness across major frameworks like NCA, ISO 27001, NIST CSF, and SOC 2.-
- AlicenseNot gradedqualityDmaintenanceEnables safe, local DevOps inspection through a JSON-lines server with schema validation, path isolation, and redaction, supporting read-only Git operations, Kubernetes YAML validation, Terraform plan summaries, and sanitized log analysis.MIT
- AlicenseNot gradedqualityCmaintenanceEnables read-only diagnosis of deployment failures across AWS, Vercel, Docker, CI/CD, and application stacks by correlating project files, logs, and provider evidence into ranked findings with safe recommendations and verification steps.2MIT