Skip to main content
Glama
qpulce-dev

salesforce-deployment-guard

by qpulce-dev

Salesforce Deployment Guard MCP

CI

一个仅限本地的 Model Context Protocol 服务器,可将 Salesforce 风格的部署证据转化为结构化的发现结果和修复步骤。

这是一个净室(clean-room)作品集项目。它使用确定性规则和合成示例——不涉及 Salesforce 组织、凭据、LLM、遥测或网络访问。

工具

工具

用途

analyze_deployment_log

对缺失元数据、无效引用、Apex 测试失败、权限失败、格式错误的 XML 和未知证据进行分类。

validate_metadata_manifest

检测缺失依赖、重复项、无效名称、自依赖和循环依赖。

assess_permission_risk

标记宽泛的系统权限、对象 Modify All 权限、重复更改以及只写不读的组合。

build_remediation_plan

将发现结果转化为确定性的、按优先级排序的检查清单。

每个工具都是只读的,并同时返回人类可读的文本和结构化 JSON。

Related MCP server: VibeGuard 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__cDemo_Access 之类的名称。

  • 隐私扫描器仅报告文件和规则标识符,绝不报告匹配到的机密文本。

如需额外的本地组织名称检查:

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

请勿将真实的生产日志粘贴到公开的 issue、提交或 fixtures 中。

限制

此服务器提供确定性的审查指导。它不会连接 Salesforce、不会针对真实组织进行验证、不会替代安全审查,也不会保证部署成功。未知证据仍归类为 unknown

许可证

MIT © 2026 Queanu Pulce

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI-powered code safety analysis including risk detection, secret scanning, dependency checking, and code snapshot management. Works offline for basic features with optional cloud integration for advanced ML analysis and team collaboration.
    9
    1
    Apache 2.0
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI coding tools to scan projects for security vulnerabilities, hardcoded secrets, injection flaws, and privacy violations with 699 rules and 76 MCP tools, all running locally with zero telemetry.
    52
    6
    MIT
  • F
    license
    Not graded
    quality
    C
    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.

View all related MCP servers

Related MCP Connectors

  • 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.

  • Compliance & security scan for your app: secrets, exposed files, headers, privacy, AI-disclosure.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/qpulce-dev/salesforce-deployment-guard-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server