From d2b9483450f7de5cf18aca003c9f5bb618d94b96 Mon Sep 17 00:00:00 2001 From: Ichwan Sholihin <34907490+ichwansh03@users.noreply.github.com> Date: Tue, 11 Aug 2026 06:00:35 +0700 Subject: [PATCH] Add OpenCode configuration section to README Added configuration instructions for OpenCode with Salesforce DX MCP Server. --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index e35c9bc2..5cbe1a58 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,27 @@ To configure [Cursor](https://cursor.com/docs/context/mcp) to work with Salesfor } ``` +### OpenCode + +To configure [OpenCode](https://opencode.ai/docs/mcp-servers/) to work with Salesforce DX MCP Server, add this snippet to your OpenCode `opencode.json` file: + +```json +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "Salesforce DX": { + "type": "local", + "command": ["npx", "-y", "@salesforce/mcp", + "--orgs", "DEFAULT_TARGET_ORG", + "--toolsets", "orgs,metadata,data,users", + "--tools", "run_apex_test", + "--allow-non-ga-tools"] + } + } +} +``` + + ### Other MCP Clients For these other clients, refer to their documentation for adding MCP servers and follow the same pattern as in the preceding examples to configure the Salesforce DX MCP Server: