fix(board): PARITY_STUDIO_URL accepts a full MCP endpoint (v0.28.1) - #317
Merged
Conversation
Studio deployments are org-scoped (https://studio.decocms.com/api/<org>/mcp/self) and the client appended /mcp/self to whatever was set, hitting the root path, which 404s on a real deployment. Use the value as-is when it already points at an /mcp/ endpoint; only append for a bare host. On an org-scoped URL the organization comes from the URL, not only the token — corrects the earlier note. Verified against the live Electrolux org: TASK_BOARD_ITEM_LIST returns {items: [], repos: ["ELX-LATAM-DevOps/electrolux-poc"]}. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Studio deployments are org-scoped (
/api/<org>/mcp/self); the client appended/mcp/selfto whatever was set and hit the root path, which 404s on a real deployment.Now uses the value as-is when it already points at an
/mcp/endpoint, and only appends for a bare host. On an org-scoped URL the organization comes from the URL, not only the token — corrects the earlier note.Verified against the live Electrolux org:
TASK_BOARD_ITEM_LISTreturns{items: [], repos: ["ELX-LATAM-DevOps/electrolux-poc"]}.1384 tests pass; new cases cover bare host, org-scoped URL, and trailing slashes.
🤖 Generated with Claude Code
Summary by cubic
Fixes Studio board endpoint resolution to support org‑scoped deployments. Previously we always posted to /mcp/self (root), which 404s on org‑scoped Studio; now
PARITY_STUDIO_URLmay be a full/mcp/selfendpoint, and we only append/mcp/selffor a bare host.@decocms/parityv0.28.1.Migration
PARITY_STUDIO_URLto the full org‑scoped endpoint: https://studio.decocms.com/api//mcp/self. The organization comes from the URL. Bare hosts still work for root deployments.Written for commit 67573ac. Summary will update on new commits.