René's URL Explorer Experiment


Title: fix: accurate page and component publish state over MCP by ysamcode · Pull Request #603 · ycode/ycode · GitHub

Open Graph Title: fix: accurate page and component publish state over MCP by ysamcode · Pull Request #603 · ycode/ycode

X Title: fix: accurate page and component publish state over MCP by ysamcode · Pull Request #603 · ycode/ycode

Description: Summary Fix issues found while testing the Ycode MCP server: duplicate page rows, wrong component publish state, deleted pages staying live after an MCP publish, and confusing errors or missing docs that made agents give up. Changes list_pages: return one row per page (the draft) with has_published_version and has_unpublished_changes; folders are no longer duplicated either. Same fix for the site-pages resource and the page sweep in delete_component_variable list_components: replace the draft row's is_published with has_published_version / has_unpublished_changes, computed from the published copy's content_hash so it agrees with get_unpublished_changes get_unpublished_changes: include a status per page (new, modified, unpublishing, deleted) and explain that layer-tree changes count even when the page-level hash matches publish: remove the live copies of deleted pages, components, and layer styles, matching the builder's full publish Page layer tools: when given a component ID, return a clear error pointing to update_component_layers instead of "Layer not found"; note this in update_layer_image add_layer ops (page batches and components): accept image_alt. The update_image op's alt already shipped in 1.33.1 get_settings / set_setting: document the real setting keys (incl. favicon_asset_id, web_clip_asset_id) and leave draft_css / published_css out of the full listing upload_asset: flag inline SVGs with stored_inline: true and document why public_url is null Test plan list_pages returns each page once with correct publish flags Edit a component, publish, then list_components shows has_unpublished_changes: false Delete a page via MCP and publish — it disappears from the live site and from get_unpublished_changes update_layer_image with a component ID returns the update_component_layers hint batch_operations / update_component_layers add_layer with image_alt sets the alt text get_settings without a key omits the CSS blobs; upload_asset with an SVG returns stored_inline: true Verified locally against a dev database: list_pages returns 6 rows / 6 unique ids, get_settings omits CSS, unknown and page ids still return "Layer not found" Made with Cursor

Open Graph Description: Summary Fix issues found while testing the Ycode MCP server: duplicate page rows, wrong component publish state, deleted pages staying live after an MCP publish, and confusing errors or missing doc...

X Description: Summary Fix issues found while testing the Ycode MCP server: duplicate page rows, wrong component publish state, deleted pages staying live after an MCP publish, and confusing errors or missing doc...

Opengraph URL: https://github.com/ycode/ycode/pull/603

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e578b77a-6af4-4bd3-79c2-27a63c99d279
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC128:298763:27F62C:342750:6AFE4A36
html-safe-nonce98465829c87e924a89964863f9309c42aada1101b3c8c5458c04e3712bf2ed3d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTI4OjI5ODc2MzoyN0Y2MkM6MzQyNzUwOjZBRkU0QTM2IiwidmlzaXRvcl9pZCI6Ijg0NTMzMTU2NDgzNjQxMDQyNDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc7e93cd83b0078be27062f2c9a825ee183be21252a87c43016e145f0eaa8f470
hovercard-subject-tagpull_request:4801150234
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/ycode/ycode/pull/603/files
twitter:imagehttps://avatars.githubusercontent.com/u/7631193?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/7631193?s=400&v=4
og:image:altSummary Fix issues found while testing the Ycode MCP server: duplicate page rows, wrong component publish state, deleted pages staying live after an MCP publish, and confusing errors or missing doc...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef1a5901e2377b0af2a0b303f9528678f1475d04b9219dca1e993344196eaa07c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/ycode/ycode git https://github.com/ycode/ycode.git
octolytics-dimension-user_id65892203
octolytics-dimension-user_loginycode
octolytics-dimension-repository_id1165452593
octolytics-dimension-repository_nwoycode/ycode
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1165452593
octolytics-dimension-repository_network_root_nwoycode/ycode
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasece393ea11ad276623b946bc9663d3e7d6f564275
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/ycode/ycode/pull/603/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fycode%2Fycode%2Fpull%2F603%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fycode%2Fycode%2Fpull%2F603%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=ycode%2Fycode
Reloadhttps://github.com/ycode/ycode/pull/603/files
Reloadhttps://github.com/ycode/ycode/pull/603/files
Reloadhttps://github.com/ycode/ycode/pull/603/files
ycodehttps://github.com/ycode
ycodehttps://github.com/ycode/ycode
Codehttps://github.com/ycode/ycode
Issues7 (7)https://github.com/ycode/ycode/issues
Pull requests1 (1)https://github.com/ycode/ycode/pulls
Discussionshttps://github.com/ycode/ycode/discussions
Actionshttps://github.com/ycode/ycode/actions
Projectshttps://github.com/ycode/ycode/projects
Security and quality1 (1)https://github.com/ycode/ycode/security
Insightshttps://github.com/ycode/ycode/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fycode%2Fycode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fycode%2Fycode%2Fissues%2Fnew%2Fchoose
ysamcodehttps://github.com/ysamcode
develophttps://github.com/ycode/ycode/tree/develop
fix/mcp-tool-accuracyhttps://github.com/ycode/ycode/tree/fix/mcp-tool-accuracy
Conversation 0 https://github.com/ycode/ycode/pull/603
Commits 1 https://github.com/ycode/ycode/pull/603/commits
Checks 0 https://github.com/ycode/ycode/pull/603/checks
Files changed https://github.com/ycode/ycode/pull/603/files
Please reload this pagehttps://github.com/ycode/ycode/pull/603/files
fix: accurate page and component publish state over MCP https://github.com/ycode/ycode/pull/603/files#top
Show all changes 1 commit https://github.com/ycode/ycode/pull/603/files
d1265fb fix: make MCP page and component listings accurate ysamcode Oct 9, 2026 https://github.com/ycode/ycode/pull/603/commits/d1265fbcc635c9122f65917ec46a39a2b4f25865
Clear filters https://github.com/ycode/ycode/pull/603/files
Please reload this pagehttps://github.com/ycode/ycode/pull/603/files
Please reload this pagehttps://github.com/ycode/ycode/pull/603/files
page-layers.ts https://github.com/ycode/ycode/pull/603/files#diff-dd3c266f3e926fa120dded56de2b8fab5daba5be3e72b4a0db8d788cc0a2aac7
site.ts https://github.com/ycode/ycode/pull/603/files#diff-cf8902f0f20391c3030d7c5cab71ca5288fabedb2017a66ab4bcf8f49d4ef82d
assets.ts https://github.com/ycode/ycode/pull/603/files#diff-d394151402597b45998a244acf51c2c32ef2f3dcc561fc38de34d60dc4cce1e9
batch.ts https://github.com/ycode/ycode/pull/603/files#diff-7094f3dd81bf3528c5e6887a1e25562cddaf5d09c39fc92117415adc31bf45f7
components.ts https://github.com/ycode/ycode/pull/603/files#diff-7717da539a795ba2bd00f7b68739b6febca36e5fbe253c38d679de24b28a29ad
layers.ts https://github.com/ycode/ycode/pull/603/files#diff-28b20a5a644175adbc53624b91e5c2d281857283b1d16c1dc6b44ddbe5701a1c
pages.ts https://github.com/ycode/ycode/pull/603/files#diff-e5112a93bdd55760a19898a1c55c990101069f0d9c120e55d954cbf3c7c6e098
publishing.ts https://github.com/ycode/ycode/pull/603/files#diff-5218978b06c79cb6fd6dc9ac7f87ee185808ae8994043dbfde8f0291eec841cb
settings.ts https://github.com/ycode/ycode/pull/603/files#diff-8fc1d098b325cc68b159ebbe979222ba7a00e0220dc9008eef8e9b2d54dc890e
https://github.com/ycode/ycode/blob/develop/.github/CODEOWNERS#L1
lib/mcp/page-layers.tshttps://github.com/ycode/ycode/pull/603/files#diff-dd3c266f3e926fa120dded56de2b8fab5daba5be3e72b4a0db8d788cc0a2aac7
View file https://github.com/ycode/ycode/blob/d1265fbcc635c9122f65917ec46a39a2b4f25865/lib/mcp/page-layers.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/ycode/ycode/pull/603/{{ revealButtonHref }}
https://github.com/ycode/ycode/pull/603/files#diff-dd3c266f3e926fa120dded56de2b8fab5daba5be3e72b4a0db8d788cc0a2aac7
https://github.com/ycode/ycode/pull/603/files#diff-dd3c266f3e926fa120dded56de2b8fab5daba5be3e72b4a0db8d788cc0a2aac7
https://github.com/ycode/ycode/pull/603/files#diff-dd3c266f3e926fa120dded56de2b8fab5daba5be3e72b4a0db8d788cc0a2aac7
https://github.com/ycode/ycode/pull/603/files#diff-dd3c266f3e926fa120dded56de2b8fab5daba5be3e72b4a0db8d788cc0a2aac7
https://github.com/ycode/ycode/blob/develop/.github/CODEOWNERS#L1
lib/mcp/resources/site.tshttps://github.com/ycode/ycode/pull/603/files#diff-cf8902f0f20391c3030d7c5cab71ca5288fabedb2017a66ab4bcf8f49d4ef82d
View file https://github.com/ycode/ycode/blob/d1265fbcc635c9122f65917ec46a39a2b4f25865/lib/mcp/resources/site.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/ycode/ycode/pull/603/{{ revealButtonHref }}
https://github.com/ycode/ycode/pull/603/files#diff-cf8902f0f20391c3030d7c5cab71ca5288fabedb2017a66ab4bcf8f49d4ef82d
https://github.com/ycode/ycode/pull/603/files#diff-cf8902f0f20391c3030d7c5cab71ca5288fabedb2017a66ab4bcf8f49d4ef82d
https://github.com/ycode/ycode/blob/develop/.github/CODEOWNERS#L1
lib/mcp/tools/assets.tshttps://github.com/ycode/ycode/pull/603/files#diff-d394151402597b45998a244acf51c2c32ef2f3dcc561fc38de34d60dc4cce1e9
View file https://github.com/ycode/ycode/blob/d1265fbcc635c9122f65917ec46a39a2b4f25865/lib/mcp/tools/assets.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/ycode/ycode/pull/603/{{ revealButtonHref }}
https://github.com/ycode/ycode/pull/603/files#diff-d394151402597b45998a244acf51c2c32ef2f3dcc561fc38de34d60dc4cce1e9
https://github.com/ycode/ycode/pull/603/files#diff-d394151402597b45998a244acf51c2c32ef2f3dcc561fc38de34d60dc4cce1e9
https://github.com/ycode/ycode/pull/603/files#diff-d394151402597b45998a244acf51c2c32ef2f3dcc561fc38de34d60dc4cce1e9
https://github.com/ycode/ycode/pull/603/files#diff-d394151402597b45998a244acf51c2c32ef2f3dcc561fc38de34d60dc4cce1e9
https://github.com/ycode/ycode/blob/develop/.github/CODEOWNERS#L1
lib/mcp/tools/batch.tshttps://github.com/ycode/ycode/pull/603/files#diff-7094f3dd81bf3528c5e6887a1e25562cddaf5d09c39fc92117415adc31bf45f7
View file https://github.com/ycode/ycode/blob/d1265fbcc635c9122f65917ec46a39a2b4f25865/lib/mcp/tools/batch.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/ycode/ycode/pull/603/{{ revealButtonHref }}
https://github.com/ycode/ycode/pull/603/files#diff-7094f3dd81bf3528c5e6887a1e25562cddaf5d09c39fc92117415adc31bf45f7
https://github.com/ycode/ycode/pull/603/files#diff-7094f3dd81bf3528c5e6887a1e25562cddaf5d09c39fc92117415adc31bf45f7
https://github.com/ycode/ycode/pull/603/files#diff-7094f3dd81bf3528c5e6887a1e25562cddaf5d09c39fc92117415adc31bf45f7
https://github.com/ycode/ycode/pull/603/files#diff-7094f3dd81bf3528c5e6887a1e25562cddaf5d09c39fc92117415adc31bf45f7
https://github.com/ycode/ycode/blob/develop/.github/CODEOWNERS#L1
lib/mcp/tools/components.tshttps://github.com/ycode/ycode/pull/603/files#diff-7717da539a795ba2bd00f7b68739b6febca36e5fbe253c38d679de24b28a29ad
View file https://github.com/ycode/ycode/blob/d1265fbcc635c9122f65917ec46a39a2b4f25865/lib/mcp/tools/components.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/ycode/ycode/pull/603/{{ revealButtonHref }}
https://github.com/ycode/ycode/pull/603/files#diff-7717da539a795ba2bd00f7b68739b6febca36e5fbe253c38d679de24b28a29ad
https://github.com/ycode/ycode/pull/603/files#diff-7717da539a795ba2bd00f7b68739b6febca36e5fbe253c38d679de24b28a29ad
https://github.com/ycode/ycode/pull/603/files#diff-7717da539a795ba2bd00f7b68739b6febca36e5fbe253c38d679de24b28a29ad
https://github.com/ycode/ycode/pull/603/files#diff-7717da539a795ba2bd00f7b68739b6febca36e5fbe253c38d679de24b28a29ad
https://github.com/ycode/ycode/pull/603/files#diff-7717da539a795ba2bd00f7b68739b6febca36e5fbe253c38d679de24b28a29ad
https://github.com/ycode/ycode/pull/603/files#diff-7717da539a795ba2bd00f7b68739b6febca36e5fbe253c38d679de24b28a29ad
https://github.com/ycode/ycode/pull/603/files#diff-7717da539a795ba2bd00f7b68739b6febca36e5fbe253c38d679de24b28a29ad
https://github.com/ycode/ycode/pull/603/files#diff-7717da539a795ba2bd00f7b68739b6febca36e5fbe253c38d679de24b28a29ad
https://github.com/ycode/ycode/blob/develop/.github/CODEOWNERS#L1
lib/mcp/tools/layers.tshttps://github.com/ycode/ycode/pull/603/files#diff-28b20a5a644175adbc53624b91e5c2d281857283b1d16c1dc6b44ddbe5701a1c
View file https://github.com/ycode/ycode/blob/d1265fbcc635c9122f65917ec46a39a2b4f25865/lib/mcp/tools/layers.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/ycode/ycode/pull/603/{{ revealButtonHref }}
https://github.com/ycode/ycode/pull/603/files#diff-28b20a5a644175adbc53624b91e5c2d281857283b1d16c1dc6b44ddbe5701a1c
https://github.com/ycode/ycode/pull/603/files#diff-28b20a5a644175adbc53624b91e5c2d281857283b1d16c1dc6b44ddbe5701a1c
https://github.com/ycode/ycode/blob/develop/.github/CODEOWNERS#L1
lib/mcp/tools/pages.tshttps://github.com/ycode/ycode/pull/603/files#diff-e5112a93bdd55760a19898a1c55c990101069f0d9c120e55d954cbf3c7c6e098
View file https://github.com/ycode/ycode/blob/d1265fbcc635c9122f65917ec46a39a2b4f25865/lib/mcp/tools/pages.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/ycode/ycode/pull/603/{{ revealButtonHref }}
https://github.com/ycode/ycode/pull/603/files#diff-e5112a93bdd55760a19898a1c55c990101069f0d9c120e55d954cbf3c7c6e098
https://github.com/ycode/ycode/pull/603/files#diff-e5112a93bdd55760a19898a1c55c990101069f0d9c120e55d954cbf3c7c6e098
https://github.com/ycode/ycode/blob/develop/.github/CODEOWNERS#L1
lib/mcp/tools/publishing.tshttps://github.com/ycode/ycode/pull/603/files#diff-5218978b06c79cb6fd6dc9ac7f87ee185808ae8994043dbfde8f0291eec841cb
View file https://github.com/ycode/ycode/blob/d1265fbcc635c9122f65917ec46a39a2b4f25865/lib/mcp/tools/publishing.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/ycode/ycode/pull/603/{{ revealButtonHref }}
https://github.com/ycode/ycode/pull/603/files#diff-5218978b06c79cb6fd6dc9ac7f87ee185808ae8994043dbfde8f0291eec841cb
https://github.com/ycode/ycode/pull/603/files#diff-5218978b06c79cb6fd6dc9ac7f87ee185808ae8994043dbfde8f0291eec841cb
https://github.com/ycode/ycode/pull/603/files#diff-5218978b06c79cb6fd6dc9ac7f87ee185808ae8994043dbfde8f0291eec841cb
https://github.com/ycode/ycode/pull/603/files#diff-5218978b06c79cb6fd6dc9ac7f87ee185808ae8994043dbfde8f0291eec841cb
https://github.com/ycode/ycode/pull/603/files#diff-5218978b06c79cb6fd6dc9ac7f87ee185808ae8994043dbfde8f0291eec841cb
https://github.com/ycode/ycode/pull/603/files#diff-5218978b06c79cb6fd6dc9ac7f87ee185808ae8994043dbfde8f0291eec841cb
https://github.com/ycode/ycode/blob/develop/.github/CODEOWNERS#L1
lib/mcp/tools/settings.tshttps://github.com/ycode/ycode/pull/603/files#diff-8fc1d098b325cc68b159ebbe979222ba7a00e0220dc9008eef8e9b2d54dc890e
View file https://github.com/ycode/ycode/blob/d1265fbcc635c9122f65917ec46a39a2b4f25865/lib/mcp/tools/settings.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/ycode/ycode/pull/603/{{ revealButtonHref }}
https://github.com/ycode/ycode/pull/603/files#diff-8fc1d098b325cc68b159ebbe979222ba7a00e0220dc9008eef8e9b2d54dc890e
https://github.com/ycode/ycode/pull/603/files#diff-8fc1d098b325cc68b159ebbe979222ba7a00e0220dc9008eef8e9b2d54dc890e
https://github.com/ycode/ycode/pull/603/files#diff-8fc1d098b325cc68b159ebbe979222ba7a00e0220dc9008eef8e9b2d54dc890e
https://github.com/ycode/ycode/pull/603/files#diff-8fc1d098b325cc68b159ebbe979222ba7a00e0220dc9008eef8e9b2d54dc890e
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.