fix: hardcode prod MCP URL instead of ${CEDAR_MCP_URL:-...} templating#4
Merged
Conversation
…lating Testing shows the marketplace sync in Cowork still fails identically after the git-subdir source fix (#3), ruling that out. Next candidate: this file's env-var expansion syntax. Two matching upstream bugs: - anthropics/claude-code#9427: \${VAR} expansion fails specifically for .mcp.json files that live in a plugin root (not a project root) — exactly this file's location. - anthropics/claude-code#40372: \${VAR} expansion fails specifically in the Desktop app, which Cowork runs inside/via. If Cowork's server-side marketplace-content validation can't expand \${CEDAR_MCP_URL:-https://api.mail.cedarcopilot.com/mcp}, it may see a malformed URL and reject the whole plugin's content — surfacing as the same generic "Marketplace sync failed. Check the repository URL and try again." message documented in #61271 for a completely different underlying cause. Trades away the CEDAR_MCP_URL local-dev override on this published repo in favor of Cowork compatibility; local/dev testing needs a separate override until this is confirmed and a lower-risk mechanism is worth revisiting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
git-subdirsource fix (fix: use explicit git-subdir source for Cowork marketplace-sync compatibility #3, merged) did NOT resolve the Cowork "Marketplace sync failed. Check the repository URL and try again." error — retested live, identical failure..mcp.json'surlfield used env-var expansion syntax (${CEDAR_MCP_URL:-https://api.mail.cedarcopilot.com/mcp}). Two matching upstream bugs:${VAR}expansion fails specifically for.mcp.jsonfiles that live inside a plugin root (not a project root) — exactly this file's location.${VAR}expansion fails specifically in the Desktop app, which Cowork runs inside/via.Fix
Tradeoff
Removes the
CEDAR_MCP_URLlocal-dev override from this published repo — local/dev testing against an ngrok tunnel needs a separate mechanism now. Deliberate, pending confirmation this actually fixes Cowork; revisit a lower-risk override mechanism once confirmed.Test plan
claude plugin validate ./cedar-pluginpass🤖 Generated with Claude Code