A Salesforce DX project wired for Claude Code through the Salesforce DX MCP server. Use a free Developer Edition org or a sandbox, never production. Total time: about 45 to 60 minutes.
npm install @salesforce/cli --global then sf --version.vscode/extensions.json)git clone https://github.com/arindambarman/agentforce.git wealth-demo
cd wealth-demo && code .
sf org login web --alias wealthdev --set-default # browser opens; click Allow
sf project retrieve start --manifest manifest/package.xml
sf data query --query "SELECT Name, AnnualRevenue FROM Account LIMIT 5"
npm install -g @anthropic-ai/claude-codeclaude and sign in.mcp.json is already in this repo and limits Claude to the wealthdev org with the
orgs,metadata,data,users,testing toolsets. Avoid all, because it floods Claude with tools.
claude, type /mcp, and confirm salesforce-dx shows as connected"command": "cmd" and put "/c", "npx" at the start of argsCLAUDE.mdPaste these into Claude one at a time:
Renewal_Case__c metadata in force-app, then deploy it to wealthdev.”Or deploy the starter object yourself:
sf project deploy start --source-dir force-app --target-org wealthdev
Lets Claude query live business data instead of working on metadata.
sobject-all).http://localhost:38000/callback (Claude Code) or https://claude.ai/api/mcp/auth_callback (Claude Desktop)refresh_token, offline_access, mcp_apiclaude mcp add --transport http salesforce-sobject-all <SERVER_URL> \
--callback-port 38000 --client-id "<CONSUMER_KEY>" --client-secret
/mcp, choose Authenticate, and allow access.--orgs..sf/ and .sfdx/ are git-ignored).| Path | Purpose |
|—|—|
| .mcp.json | Salesforce DX MCP server config for Claude Code |
| CLAUDE.md | Conventions Claude reads automatically |
| sfdx-project.json | SFDX project definition (API 65.0; bump if your org is newer) |
| manifest/package.xml | What retrieve pulls from the org |
| force-app/.../Renewal_Case__c | Starter object: Status (picklist), Request ID (text), Facility (lookup to Account) |