Live artifact connector grants don't survive update_artifact, and the re-approval prompt never appears
#828
Closed
cnv-azri
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Pre-submission Checklist
What would you like to share?
Summary
Any Cowork live artifact that calls an MCP connector tool loses that connector's access the moment the artifact's content is updated. The desktop app's own tooling reports that the user should be re-prompted to re-approve the connector, but no Allow/Deny prompt ever appears — the artifact just fails closed on every subsequent connector call. This was confirmed on two separate artifacts, including one (
bid-scraper) that had a long-standing, working Salesforce connection broken by a single content-only update with no code change to its connector usage.Environment
mcp__<connector-id>__soqlQuery)vendor-scorecard-dashboard,vendor-scorecard-dashboard-b,vendor-scorecard-dashboard-c(test),bid-scraper(test)Reproduction steps
vendor-scorecard-dashboard, a live artifact that calls a Salesforce SOQL connector (mcp__7fec64a8-7bb9-488b-8beb-762423d5ed94__soqlQuery). Push an update viaupdate_artifact(rebuild of the same app, no change to which connector it calls).Tool "mcp__7fec64a8-7bb9-488b-8beb-762423d5ed94__soqlQuery" is not in this artifact's mcp_tools allowlist.No Allow/Deny dialog appears at any point — before, during, or after the failure.vendor-scorecard-dashboard-b) from scratch withcreate_artifact, same content, same connector. Same result: no prompt, same allowlist failure.bid-scraper, a different, previously-working artifact that has called the same Salesforce connector successfully for weeks. Push an unrelated content update viaupdate_artifact(swapped in different HTML entirely, to isolate that the break is caused by the update mechanism itself, not by anything specific to Vendor Scorecard's code).bid-scraper's Salesforce feature immediately breaks the same way — no prompt, allowlist failure — despite having worked immediately before that update.bid-scraper's original content via a secondupdate_artifactcall. Confirmed: this restore call itself also clears the grant again (per the tool's own returned message, quoted below), sobid-scraperis now also left in the broken state, through no code change of its own.Exact error text
From the artifact's in-app log during Scan:
From the
update_artifacttool call itself, confirming the mechanism:What we ruled out
mcp__7fec64a8-...__soqlQuery) is used bycost-code-distributionandinvoice-auditor, both currently working. Confirmed by direct comparison of each artifact's source.Salesforce_Read-Only) works fine and returns real data throughout this investigation. The broken connection is specific to the artifact-level grant, not the underlying Salesforce credentials.bid-scrapercontrol test: an artifact with a long-established, working grant broke the exact same way after a content-only update.Impact
Any live artifact that uses an MCP connector will lose that connector's access on its very next update, with no way to restore it through the UI. This means:
cost-code-distributionandinvoice-auditorare currently working only because neither has been updated since its last successful grant — the next update to either will very likely break it the same way.Suggested fix / ask
update_artifact(and possiblycreate_artifact) handles connector re-approval — the intended flow ("approved during creation or update," per docs) should show an Allow/Deny prompt but doesn't fire, or fires somewhere the user never sees it.Related artifacts (for reference during investigation)
vendor-scorecard-dashboardvendor-scorecard-dashboard-bvendor-scorecard-dashboard-cbid-scrapercost-code-distributioninvoice-auditorRelevant Links
No response
All reactions