Skip to content

fix: hardcode prod MCP URL instead of ${CEDAR_MCP_URL:-...} templating#4

Merged
isabelle-cedar merged 1 commit into
mainfrom
fix/hardcode-mcp-url
Jul 14, 2026
Merged

fix: hardcode prod MCP URL instead of ${CEDAR_MCP_URL:-...} templating#4
isabelle-cedar merged 1 commit into
mainfrom
fix/hardcode-mcp-url

Conversation

@isabelle-cedar

Copy link
Copy Markdown
Contributor

Summary

  • The git-subdir source 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.
  • Next candidate, tested here: .mcp.json's url field used env-var expansion syntax (${CEDAR_MCP_URL:-https://api.mail.cedarcopilot.com/mcp}). Two matching upstream bugs:
    • anthropics/claude-code#9427: ${VAR} expansion fails specifically for .mcp.json files that live inside 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 this template, it may see a malformed URL and reject the plugin's content — surfacing as the same generic sync-failed message documented in #61271 for a completely different underlying cause (private-repo access).

Fix

-      "url": "${CEDAR_MCP_URL:-https://api.mail.cedarcopilot.com/mcp}"
+      "url": "https://api.mail.cedarcopilot.com/mcp"

Tradeoff

Removes the CEDAR_MCP_URL local-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

  • JSON validity + claude plugin validate ./cedar-plugin pass
  • Re-test in Cowork after merge: remove + re-add the marketplace, confirm sync succeeds
  • Confirm Claude Code install still works (literal URL is strictly simpler, should be unaffected)

🤖 Generated with Claude Code

…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.
@isabelle-cedar
isabelle-cedar merged commit 63f1da8 into main Jul 14, 2026
1 check passed
@isabelle-cedar
isabelle-cedar deleted the fix/hardcode-mcp-url branch July 14, 2026 00:44
Sign up for free to 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.

1 participant