Skip to main content

vulkro-sf mcp serve

Runs Vulkro for Salesforce as a Model Context Protocol (MCP) server, so any MCP host (Claude Code, Cursor, Windsurf, VS Code and others) can call the scanner as a tool.

vulkro-sf mcp serve # stdio (default)
vulkro-sf mcp serve --port 9101 # SSE on http://127.0.0.1:9101/sse
FlagWhat it does
--port <n>Use an SSE transport on 127.0.0.1:<n> instead of stdio. Most hosts use stdio.

Exit codes: 0 served and shut down cleanly, 2 error (bad transport, port in use).

Local tools never write to your code. The sf_org_* tools read the org through your own sf CLI login, and the token stays there. Only the sf_cloud_* tools leave the machine, to your Vulkro Cloud workspace. No tool changes source or org configuration.

Set up​

Claude Code:

claude mcp add vulkro-sf -- vulkro-sf mcp serve

Cursor (~/.cursor/mcp.json) and most other hosts:

{ "mcpServers": { "vulkro-sf": { "command": "vulkro-sf", "args": ["mcp", "serve"] } } }

The VS Code extension registers this server for the editor's agent automatically, with VULKRO_OFFLINE=1, so the sf_cloud_* tools are refused there. Register the server yourself to use them.

Local tools​

target_org is an org alias or username known to sf org login.

ToolWhat it does
sf_scan_projectFull scan of an SFDX project or metadata folder, as vulkro-sf scan -f json.
sf_scan_metadata_onlyMetadata-only scan, for folders with no Apex source.
sf_antipatternsWell-Architected anti-pattern scan over Apex.
sf_list_checksThe check catalogue (no scan, no network).
sf_read_codeRead a file, one declaration or a line range, as numbered lines.
sf_code_graphApex method graph: map, impact, callers, callees.
sf_assess_changeBefore an edit, a symbol's blast radius, tests and findings; after, a verdict on the diff.
sf_check_changeAfter an edit: call sites on an old signature, removed names still used, findings on changed lines.
sf_run_compliance_reportRoll findings up against a framework (pci, hipaa, soc2, nist-ssdf, nist-800-53, iso27001, cis-v8, cwe-top25, gdpr, owasp-asvs).
sf_org_permsLive org: over-privileged grants and dormant privileged accounts.
sf_org_effective_permsLive org: the object, field and permission-set access users hold now.
sf_org_sessionLive org: session timeout, IP lock and high-assurance step-up.
sf_org_mfaLive org: MFA enforcement, including the API and integration-user gap.
sf_org_health_checkLive org: the Security Health Check score and failing controls.

Without an active trial or Pro, a scan tool returns JSON-RPC error -32001 with reason: "license_required" and the next step, never an empty result.

Vulkro Cloud workspace tools​

These work your Vulkro Cloud workspace through the connection vulkro-sf cloud connect saved (or VULKRO_SF_CLOUD_URL and VULKRO_SF_CLOUD_TOKEN). Your workspace role sets what you can do. They change triage state only, and are refused under VULKRO_OFFLINE. A finding is named by its fingerprint (fp_...) or issue key (VK-123).

ToolWhat it does
sf_cloud_connect_statusWorkspace URL, your sign-in and role.
sf_cloud_orgsThe workspace's orgs with queue counts and last scan.
sf_cloud_todoThe ranked triage queue (views to_triage, open, pending, mine and more).
sf_cloud_findingOne finding with remediation, history and trace hops.
sf_cloud_triageSet a state; false_positive and accepted_risk go to a person for approval.
sf_cloud_reviewList, approve, reject or withdraw review proposals.
sf_cloud_assignAssign a finding to me, a member or none.
sf_cloud_rulesList rules or get one with its findings (read-only).
sf_cloud_rule_policyRead or propose a rule's mode, severity and scope.
sf_cloud_custom_rulesList, get, test, create or change custom rules (changes are proposals).
sf_cloud_settingsThe workspace triage settings (read-only).
sf_cloud_scanStart a cloud scan of an org, or read its status.
sf_cloud_fix_planMap a finding to your local project: file, line, code and fix steps.
sf_cloud_verifyRe-scan locally and report whether the finding is gone; can mark it fixed.
sf_cloud_verify_orgScan the org again and report whether the finding is still there.

Set VULKRO_SF_MCP_LOG=1 for per-request trace lines on stderr.

See also: vulkro-sf cloud, vulkro mcp serve

Command reference​

Generated from vulkro-sf mcp --help (vulkro-sf 0.33.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.

Tool server for AI assistants (Model Context Protocol): run vulkro-sf mcp serve.

vulkro-sf mcp [OPTIONS] <COMMAND>
CommandWhat it does
serveStart the MCP server. Default transport is stdio; pass --port N to switch to SSE on 127.0.0.1:N instead.

Options​

FlagDescription
-v, --verbose...Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins)
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help (see a summary with '-h')

vulkro-sf mcp serve​

Start the MCP server. Default transport is stdio; pass --port N to switch to SSE on 127.0.0.1:N instead.

vulkro-sf mcp serve [OPTIONS]

Options​

FlagDescription
--port <PORT>Bind an SSE transport on 127.0.0.1:<port> instead of using stdio. SSE is the fallback for MCP hosts that prefer HTTP; most hosts (Claude Desktop, Cursor, Windsurf, Continue) use stdio.
-v, --verbose...Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins)
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help (see a summary with '-h')
Full vulkro-sf mcp --help
Tool server for AI assistants (Model Context Protocol): run `vulkro-sf mcp serve`.

Run Vulkro for Salesforce AS a Model Context Protocol server.

Makes the SF scanner callable from Claude Desktop, Cursor, Windsurf, Continue, VS Code's MCP client, and any other JSON-RPC 2.0 MCP host. The default transport is stdio (line-delimited JSON-RPC 2.0 over stdin / stdout); an SSE transport is opt-in via `--port`.

SF-specific tools exposed include:

sf_scan_project full project scan sf_scan_metadata_only metadata-only scan sf_antipatterns Well-Architected anti-patterns sf_org_perms live-org SF-PERM-001 + SF-PERM-002 sf_org_effective_perms live-org effective object / field perms sf_org_session live-org session-trust hardening sf_org_mfa live-org MFA posture sf_org_health_check live-org Security Health Check signals sf_run_compliance_report compliance-pack rollup for a scan sf_list_checks the check catalogue (static data)

Org tools require the user's `sf` CLI to be authenticated. The OAuth token never leaves the local CLI.

Environment variables:

VULKRO_SF_MCP_LOG=1 Per-request trace lines on stderr (off by default so the stdio JSON-RPC stream stays free of side-band output).

Exit codes: 0 = served and shut down cleanly; 2 = error (bad transport, port in use, internal crash).

Usage: vulkro-sf mcp [OPTIONS] <COMMAND>

Commands:
serve Start the MCP server. Default transport is stdio; pass `--port N` to switch to SSE on `127.0.0.1:N` instead
help Print this message or the help of the given subcommand(s)

Options:
-v, --verbose...
Bump stderr log verbosity. `-v` enables debug-level tracing for the `vulkro` + `vulkro_sf` targets; `-vv` enables trace. Honoured only when `RUST_LOG` is unset (an explicit `RUST_LOG` always wins)

-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged

--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb

-h, --help
Print help (see a summary with '-h')