Skip to main content

MCP Tools Reference

All 16 tools available in @squirex.dev/mcp-server.


Core Scanningโ€‹

scan_agentforceโ€‹

Runs all security rules against the project. Returns SARIF JSON.

Parameters:

  • dir (optional) โ€” override SQUIREX_PROJECT_DIR
  • rules (optional) โ€” comma-separated rule IDs to restrict

scan_agentforce_fileโ€‹

Scans a single metadata file against applicable rules.

Parameters:

  • file โ€” absolute or relative path to the file

scan_agentforce_ruleโ€‹

Runs a single rule against the full project.

Parameters:

  • ruleId โ€” e.g. AGENTFORCE-1.1

Rule Intelligenceโ€‹

list_scan_rulesโ€‹

Returns all rules with id, category, severity, and short description.

get_rule_detailsโ€‹

Returns full rule documentation including remediation guidance.

Parameters:

  • ruleId

explain_violationโ€‹

Provides root-cause analysis for a specific SARIF result.

Parameters:

  • ruleId
  • location โ€” file + line from SARIF output

suggest_fixโ€‹

Generates a metadata or code fix for a violation.

Parameters:

  • ruleId
  • context โ€” the violating XML/Apex snippet

Apex Testing & Schemaโ€‹

run_testsโ€‹

Executes Apex tests using the Go runtime engine.

Parameters:

  • method (optional) โ€” ClassName.methodName for single-method runs
  • mockData (optional) โ€” path to testdata JSON

get_coverageโ€‹

Returns line-level coverage data from the last test run.

analyze_schemaโ€‹

Returns the inferred SObject schema from the codebase.

predict_conflictsโ€‹

Parameters:

  • branches โ€” comma-separated branch names (e.g. main,feature/my-branch)

generate_sarif_reportโ€‹

Generates SARIF output for CI integration from the last scan.


Testing Center Bridgeโ€‹

generate_dx_testsโ€‹

Converts scan violations to Agentforce DX test YAML.

Parameters:

  • rules (optional) โ€” filter to specific rule IDs

validate_dx_testsโ€‹

Validates the generated DX test spec syntax.

push_to_testing_centerโ€‹

Pushes the spec to Salesforce via sf agent test run.

Parameters:

  • targetOrg โ€” authenticated org alias

get_testing_center_resultsโ€‹

Returns the status and results of the latest Testing Center run.