@squirex.dev/mcp-server
MCP server that scans Salesforce Agentforce metadata for security vulnerabilities using 61+ SAST rules, integrating into AI coding workflows to guard against OWASP LLM top 10 risks.
README
@squirex.dev/mcp-server
SquireX MCP Server — Agentforce Capability Scanner for AI Coding Agents
Model Context Protocol server exposing the SquireX Agentforce Capability Scanner to AI-powered developer tools. Works with Claude Code, Gemini, GitHub Copilot, and any MCP-compatible IDE.
Why SquireX?
Salesforce Agentforce agents use LLMs to autonomously execute Apex, Flows, and external services. Without guardrails, this creates OWASP LLM Top 10 vulnerabilities:
- 🔴 Excessive Agency — Agents that modify data without user confirmation
- 🔴 Prompt Injection — User input that hijacks agent instructions
- 🔴 Privilege Escalation — Actions running in system context without sharing
- 🟠 Supply Chain — Stale API versions that silently skip metadata types
SquireX scans your Agentforce metadata with 61+ SAST rules across 27 categories and integrates directly into your AI coding workflow.
Quick Start
Add to your AI IDE configuration (Claude Code, Gemini, VS Code, JetBrains):
{
"mcpServers": {
"squirex": {
"command": "npx",
"args": ["-y", "@squirex.dev/mcp-server"],
"env": {
"SQUIREX_PROJECT_DIR": "/path/to/your/salesforce/project"
}
}
}
}
That's it. Your AI agent now has access to the Agentforce Capability Scanner.
MCP Surface
Tools (16)
Core Scanning (Primary Value)
| Tool | Description |
|---|---|
scan_agentforce |
Run all 61+ SAST rules against the project. Returns SARIF. |
scan_agentforce_file |
Scan a single metadata file (.genAiFunction-meta.xml, .agent, etc.) |
scan_agentforce_rule |
Run a specific rule (e.g., AGENTFORCE-1.1) |
Rule Intelligence
| Tool | Description |
|---|---|
list_scan_rules |
List all 61+ rules with ID, category, severity |
get_rule_details |
Deep dive: description + remediation guidance |
explain_violation |
Root-cause analysis for a specific violation |
suggest_fix |
Generate a code/metadata fix suggestion |
Apex Testing & Schema
| Tool | Description |
|---|---|
run_tests |
Execute Apex tests locally using the Go interpreter |
get_coverage |
Extract line-level code coverage data |
analyze_schema |
Aggregate inferred SObject schema from the codebase |
predict_conflicts |
Predict merge conflicts between branches |
generate_sarif_report |
Generate SARIF for CI/CD pipeline integration |
Testing Center Bridge
| Tool | Description |
|---|---|
generate_dx_tests |
Convert scan violations → Agentforce DX test YAML for Testing Center |
validate_dx_tests |
Validate DX test spec syntax and schema |
push_to_testing_center |
Push test spec to Salesforce via sf agent test run |
get_testing_center_results |
Get status/results of a Testing Center test run |
Resources (6)
| URI | Description |
|---|---|
squirex://scan/rules |
Complete 51+ rule catalog |
squirex://scan/rules/{id} |
Rule detail with remediation |
squirex://scan/results/latest |
Latest scan results (SARIF) |
squirex://schema/objects |
Inferred SObject schema |
squirex://test-results/latest |
Latest Apex test results |
squirex://coverage/latest |
Latest code coverage |
Prompts (4)
| Prompt | What It Does |
|---|---|
review-agentforce-security |
Full 51+ rule scan → prioritized remediation plan |
fix-agentforce-violation |
Diagnose + fix a specific violation |
harden-agent-metadata |
Proactive defense-in-depth review |
generate-test-evaluation |
Generate Agentforce DX test YAML specs for Testing Center |
Agentforce Capability Scanner — 61+ Rules
| # | Category | Rules | Severity |
|---|---|---|---|
| 1 | Action Configuration | Mandatory Confirmation, Schema Sync, Privilege Analysis | 🔴 Critical / 🟠 High |
| 2 | Agent Script Safety | Validation Guards, Transition Integrity, Prompt Injection Defense | 🔴 Critical / 🟠 High |
| 3 | Grounding Security | Hardcoded Secrets, FLS Masking Alignment | 🔴 Critical / 🟠 High |
| 4 | Structural Dependency | Planner Completeness, Deactivation Collision, Evaluation Governance | 🟠 High / 🟡 Medium |
| 5 | Flow Security | Flow Context/Silent State/Injection, API Injection, PT Poisoning/Activation | 🔴 Critical / 🟠 High |
| 6 | Supply Chain Security | API Downgrade, Schema Desync, Managed Package Origin | 🟠 High / 🟡 Medium |
| 7 | Agentic Architecture | Topic Bloat, Skill Semantics, Orphaned Bot Evaluation | 🟠 High / 🟡 Medium |
| 9 | Instruction Integrity | Metadata Instruction Poisoning, Cross-Topic Boundary | 🔴 Critical / 🟠 High |
| 10 | Operational Reliability | Validation Conflict | 🟡 Medium |
| 11 | Autonomous Scheduling | Unguarded Scheduled Action, Time-Window Privilege Drift | 🔴 Critical / 🟠 High |
| 12 | Copilot Studio Config | Memory Poisoning, API Version Drift | 🔴 Critical |
| 13 | Data Cloud Grounding | RAG Without Schema Classification | 🔴 Critical |
| 14 | Slack Integration | Slack Bot Without DLP Guard | 🟠 High |
| 15 | External Service Security | Certificate Pinning, Dynamic Cloaking RAG | 🟠 High |
| 16 | Custom Permission | Agent Action Without Permission Gate | 🟠 High |
| 17 | Commerce | Idempotency Key, Amount Bounds Check | 🔴 Critical |
| 18 | Multi-Agent Orchestration | Compositional Fragment Trap, Sybil Identity | 🔴 Critical / 🟠 High |
| 19 | Platform Event / CDC | Sub-agent Spawning Loop, CDC Field Filter | 🔴 Critical / 🟠 High |
| 20–24 | OWASP LLM Top 10 | Excessive Agency, Data Exfil, SSRF, DoS, MCP Auth | 🔴 Critical / 🟠 High |
| 30–34 | Enterprise Graph | PII Graph, Privilege Graph, Blast Radius, MCP Scope, XSS Graph | 🔴 Critical / 🟠 High |
Supported Metadata Types
.genAiFunction-meta.xml.genAiPlugin-meta.xml.genAiPlannerBundle-meta.xml.genAiPromptTemplate-meta.xml.genAiPromptTemplateActv-meta.xml.agentfiles.cls(Apex classes).trigger(Apex triggers).namedCredential-meta.xml.connectedApp-meta.xml.field-meta.xml.aiEvaluationDefinition-meta.xml.flow-meta.xmlschema.jsonsfdx-project.jsonpackage.xml- LWC components (
.jsinlwc/dirs)
How It Works
AI Coding Agent (Claude / Gemini / Copilot)
│
│ MCP Protocol (stdio)
▼
┌─────────────────────────┐
│ @squirex.dev/mcp-server │ ← This package
│ 16 tools, 6 resources │
│ 4 prompts │
└───────┬─────────────────┘
│ spawn
▼
┌─────────────────────────┐
│ squirex CLI │
│ scan / generate-tests │ ← Testing Center bridge
└───────┬─────────────────┘
│ JSON IPC
▼
┌─────────────────────────┐ ┌─────────────────────┐
│ squireinterp │ │ sf agent test run │
│ Go Execution Engine │ │ (Salesforce CLI) │
│ 61+ SAST Rules │ │ → Testing Center │
└─────────────────────────┘ └─────────────────────┘
The Testing Center bridge tools delegate to squirex generate-tests, which:
- Runs a capability scan (or reads existing SARIF)
- Converts violations to Agentforce DX test YAML (all 61+ rules, normalized
AGENTFORCE-X.YIDs) - Optionally validates and pushes to the Salesforce Testing Center via
sf agent test run
Requirements
- Node.js ≥ 18
squirexCLI installed (or available via npx)- A Salesforce project with Agentforce metadata
GitHub App Integration
For automated PR scanning, install the SquireX GitHub App — one-click setup, 51+ rule scan on every pull request, SARIF in your Security tab.
| Plan | Public Repos | Private Repos | Price |
|---|---|---|---|
| Free | Unlimited | — | $0 |
| Pro | Unlimited | 1 | $49/repo/month |
| Enterprise | Unlimited | Unlimited | $299/org/month |
License
Proprietary — See LICENSE.md
Copyright © 2026 SquireX. All Rights Reserved.
<sub>⚡ Built by <a href="https://squirex.dev">SquireX</a> — Securing the AI Agent Pipeline</sub>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。