Skip to content

fix: update ENRICHMENT enum value to 'enrich_metadata'#429

Closed
fabiobarcelona wants to merge 3 commits intosalesforcecli:mainfrom
fabiobarcelona:fix/enrich-metadata-enum
Closed

fix: update ENRICHMENT enum value to 'enrich_metadata'#429
fabiobarcelona wants to merge 3 commits intosalesforcecli:mainfrom
fabiobarcelona:fix/enrich-metadata-enum

Conversation

@fabiobarcelona
Copy link
Copy Markdown

What does this PR do?

Currently, the MCP Server is failing to connect when using the enrich_metadata toolset due to a mismatch between the docs and the Toolset enum, using enrichment instead works as expect. Here are the logs I got from debugging a Claude Code session:

 »   Error: Expected --toolsets=enrich_metadata to be one of: all, core, data, 
 »   orgs, metadata, testing, users, mobile, mobile-core, aura-experts, 
 »   lwc-experts, devops, code-analysis, scale-products, enrichment, other
 »   See more help with --help
2026-03-29T22:33:16.182Z [DEBUG] MCP server "Salesforce DX": Connection failed after 12733ms: MCP error -32000: Connection closed

This is the .mcp.json file I used:

{
    "mcpServers": {
        "Salesforce DX": {
            "type": "stdio",
            "command": "cmd",
            "args": [
                "/c",
                "npx",
                "-y",
                "@salesforce/mcp@latest",
                "--orgs",
                "DEFAULT_TARGET_ORG",
                "--toolsets",
                "core,data,enrich_metadata,lwc-experts,metadata,scale-products,testing",
                "--allow-non-ga-tools"
            ]
        }
    }
}

@fabiobarcelona fabiobarcelona requested a review from a team as a code owner March 30, 2026 08:41
@salesforce-cla
Copy link
Copy Markdown

Thanks for the contribution! Before we can merge this, we need @fabiobarcelona to sign the Salesforce Inc. Contributor License Agreement.

@iowillhoit
Copy link
Copy Markdown
Collaborator

Hey @fabiobarcelona, thank you so much for this PR! This is actually a docs issue, we want the --toolset to be enrichment. The owning team submitted this PR #437 to correct the docs. Thanks for bring this to our attention

@iowillhoit iowillhoit closed this Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants