Skip to main content
Glama
salesforce-deployment-guard

salesforce-deployment-guard

by qpulce-dev

Salesforce Deployment MCP

CI

Salesforce 스타일 배포 증거를 구조화된 발견 사항 및 수정 단계로 변환하는 로컬 전용 Model Context Protocol 서버입니다.

이 프로젝트는 클린룸 포트폴리오 프로젝트입니다. 결정적 규칙과 합성 예제를 사용하며, Salesforce 조직, 자격 증명, LLM, 원격 측정 또는 네트워크 액세스가 필요 없습니다.

도구

도구

용도

analyze_deployment_log

누락된 메타데이터, 잘못된 참조, Apex 테스트 실패, 권한 실패, 잘못된 형식의 XML 및 알 수 없는 증거를 분류합니다.

validate_metadata_manifest

누락된 종속성, 중복, 잘못된 이름, 자기 종속성 및 순환을 감지합니다.

assess_permission_risk

광범위한 시스템 권한, 객체 수정 모두, 중복 변경 및 읽기 없는 쓰기 조합을 플래그합니다.

build_remediation_plan

발견 사항을 결정적이고 우선순위가 정렬된 체크리스트로 변환합니다.

모든 도구는 읽기 전용이며 사람이 읽을 수 있는 텍스트와 구조화된 JSON을 모두 반환합니다.

Related MCP server: Security & GRC MCP Server

빠른 시작

요구 사항: Node.js 20.19 이상.

git clone https://github.com/qpulce-dev/salesforce-deployment-guard-mcp.git
cd salesforce-deployment-guard-mcp
npm ci
npm run verify
npm run build

MCP 클라이언트 연결

Codex CLI:

codex mcp add salesforce-deployment-guard -- node "/absolute/path/to/salesforce-deployment-guard-mcp/dist/server.js"

Claude Desktop 호환 구성:

{
  "mcpServers": {
    "salesforce-deployment-guard": {
      "command": "node",
      "args": [
        "/absolute/path/to/salesforce-deployment-guard-mcp/dist/server.js"
      ]
    }
  }
}

MCP 구성을 변경한 후 클라이언트를 다시 시작하세요.

실시간 MCP 트랜스크립트

stdio를 통해 빌드된 서버에 연결된 실제 MCP 클라이언트에서 캡처되었습니다:

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."
      ]
    }
  ]
}

fixtures/ 디렉토리에는 추가 합성 입력이 포함되어 있습니다.

아키텍처

MCP client
  -> Zod input schema
  -> small tool handler
  -> deterministic domain function
  -> structured JSON + concise text
  • src/server.ts는 도구를 등록하고 stdio 시작을 담당합니다.

  • src/domain/에는 순수 진단 및 계획 로직이 포함되어 있습니다.

  • src/tools/result.ts는 안정적인 MCP 응답을 형식화합니다.

  • tests/는 도메인 동작, 개인정보 보호 규칙 및 실제 stdio MCP 핸드셰이크를 다룹니다.

  • fixtures/에는 합성 예제만 포함되어 있습니다.

검증

npm run verify

해당 명령은 포맷팅, ESLint, 엄격한 TypeScript 검사, 39개 테스트, 프로덕션 빌드 및 개인정보 보호 스캔을 실행합니다. MCP 스모크 테스트는 빌드된 서버를 시작하고, 클라이언트 연결을 협상하며, 네 가지 도구를 모두 나열하고, 하나의 도구를 호출합니다.

CI는 Node.js 20.19 및 22에서 동일한 검증을 실행합니다.

개인정보 보호 및 보안

  • 런타임 네트워크 호출이 없습니다.

  • 데이터 영속성 또는 원격 측정이 없습니다.

  • 환경 변수 또는 자격 증명이 필요하지 않습니다.

  • 입력은 분석 전에 제한됩니다.

  • 오류는 스택 추적 또는 로컬 경로를 반환하지 않습니다.

  • 포함된 예제는 Demo__c 및 Demo_Access와 같은 이름을 사용합니다.

  • 개인정보 보호 스캐너는 파일 및 규칙 식별자만 보고하며 일치하는 비밀 텍스트는 절대 보고하지 않습니다.

추가 로컬 조직 이름 확인:

PRIVATE_ORG_NAMES="Private Org One,Private Org Two" npm run privacy:scan

실제 프로덕션 로그를 공개 이슈, 커밋 또는 픽스처에 붙여넣지 마세요.

제한 사항

이 서버는 결정적 검토 지침을 제공합니다. Salesforce에 연결하거나, 라이브 조직에 대해 검증하거나, 보안 검토를 대체하거나, 배포 성공을 보장하지 않습니다. 알 수 없는 증거는 unknown으로 분류된 상태로 유지됩니다.

라이선스

MIT © 2026 Queanu Pulce

Available Tools

4 tools
analyze_deployment_logAnalyze Salesforce Deployment LogA
Read-only

Classify common Salesforce deployment failures using deterministic, local-only rules.

Inputs: log (required). Returns: status, findings

assess_permission_riskAssess Salesforce Permission RiskA
Read-only

Review synthetic permission changes for broad access and least-privilege concerns.

Inputs: changes (required). Returns: risk, findings

build_remediation_planBuild Salesforce Deployment Remediation PlanB
Read-only

Turn diagnostic findings into a deterministic, prioritized remediation checklist.

Inputs: findings (required). Returns: steps, status

validate_metadata_manifestValidate Salesforce Metadata ManifestA
Read-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

    A4/5.0

    Scored across 4 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables 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.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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.
      2
      MIT