Skip to content

feat: add @vlocode/mcp — MCP server for Salesforce/Vlocity agent operations - #437

Draft
Codeneos with Copilot wants to merge 4 commits into
mainfrom
copilot/create-mcp-vscode-extension
Draft

feat: add @vlocode/mcp — MCP server for Salesforce/Vlocity agent operations#437
Codeneos with Copilot wants to merge 4 commits into
mainfrom
copilot/create-mcp-vscode-extension

Conversation

CopilotAI commented Mar 15, 2026

Copy link
Copy Markdown

Adds a new @vlocode/mcp package exposing a Model Context Protocol server over stdio, enabling AI agents (GitHub Copilot, Claude, etc.) to perform Salesforce and Vlocity datapack operations directly from the IDE.

Tools exposed

ToolDescription
deploy_datapacksDeploy Vlocity datapacks from local folders to Salesforce
retrieve_datapacksExport Salesforce objects as datapacks (by ID or SOQL query) with optional expand
deploy_metadataDeploy Salesforce metadata (Apex, LWC, triggers, etc.) from source paths
list_sobjectsList all SObjects with optional substring filter
describe_sobjectDescribe an SObject including all fields
describe_sobject_fieldDescribe a single field including picklist values
list_profilesList all Salesforce profiles
add_fls_to_profileSet FLS (editable / readable / none) per field on a named profile

Architecture

  • Uses the same DI container and SFDX auth pattern as @vlocode/cli (SfdxConnectionProvider, VlocityNamespaceService)
  • Logs exclusively to stderr to avoid corrupting the MCP stdio protocol on stdout
  • Namespace service initialization is deferred to the first tool call — the server process is ready immediately on startup
  • Built with tsdown (same as CLI); exposes a vlocode-mcp bin entry

VS Code MCP configuration

// .vscode/mcp.json
{
"servers": {
"vlocode": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@vlocode/mcp", "--user", "myorg@example.com"]
}
}
}

myorg@example.com is any SFDX-authenticated username or alias.

Original prompt

Create an MCP vscode extensions inside of Vlocode that enables agents to refresh or retrieve datapacks. describe the Salesforce Objects and Fields. List profiles, add FLS to profiles. Deploy metadata. Deploy Datapacks.


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

CopilotAIand others added 3 commits March 15, 2026 23:25
Co-authored-by: Codeneos <787686+Codeneos@users.noreply.github.com>
… operations
Co-authored-by: Codeneos <787686+Codeneos@users.noreply.github.com>
Co-authored-by: Codeneos <787686+Codeneos@users.noreply.github.com>
CopilotAI changed the title [WIP] Add MCP VSCode extension for refreshing datapacksfeat: add @vlocode/mcp — MCP server for Salesforce/Vlocity agent operationsMar 15, 2026
CopilotAI requested a review from CodeneosMarch 15, 2026 23:42
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Codeneos