René's URL Explorer Experiment


Title: feat(devframe): add MCP resource subscriptions and templates by dvcolomban · Pull Request #292 · devframes/devframe · GitHub

Open Graph Title: feat(devframe): add MCP resource subscriptions and templates by dvcolomban · Pull Request #292 · devframes/devframe

X Title: feat(devframe): add MCP resource subscriptions and templates by dvcolomban · Pull Request #292 · devframes/devframe

Description: Summary Adds resource-content invalidations and RFC 6570 URI templates to Devframe's agent API while preserving the stateless MCP architecture introduced in 8d58eb5. Devframe authors use one API: concrete resource handles call notifyUpdated(), and template handles call notifyUpdated(concreteUri). Protocol negotiation stays inside the MCP SDK adapter; MCP callers do not select a mode. Architecture HTTP list, template-list, and read requests remain stateless. The SDK builds a fresh MCP server instance for each request. One endpoint-level bridge publishes Devframe resource invalidations to the SDK notification bus. MCP 2026 owns the long-lived streaming POST used by subscriptions/listen and filters invalidations through each call's resourceSubscriptions. Stdio keeps the SDK-owned, connection-pinned server instance and publishes MCP 2026 invalidations through that instance. MCP 2025 retains list, template-list, and read access. Resource contents remain pull-based because the deprecated resources/subscribe and resources/unsubscribe methods are not registered. No Mcp-Session-Id, URI subscription map, cleanup registry, or other HTTP session state is introduced. Resources and URI templates Concrete resources keep generated, custom, and nested URIs. RFC 6570 templates are registered through the same registerResource() API. Template readers receive the concrete URL and parsed variables. resources/templates/list exposes dynamic templates; those templates remain absent from resources/list. Reads resolve exact URIs before templates, and overlapping templates follow registration order. Shared-state creation and removal publish catalog changes. Mutations publish the encoded devframe://state/... URI, with endpoint disposal removing every listener. Protocol compatibility Transport MCP 2026-07-28 MCP 2025 fallback HTTP Stateless list/read/template requests plus resource updates through a subscriptions/listen streaming POST Stateless list/read/template requests, pull-only resource contents stdio Connection-pinned list/read/templates plus resource updates through subscriptions/listen Connection-pinned list/read/templates, pull-only resource contents Resource subscription methods subscriptions/listen with resourceSubscriptions resources/subscribe and resources/unsubscribe are not registered Session state No Mcp-Session-Id or subscription map No HTTP session machinery; stdio keeps only the SDK-owned connection Compatibility preserves resource discovery and reads across both protocol revisions. Push invalidations use the MCP 2026 subscription model. Verification pnpm lint pnpm knip pnpm test — 119 files passed; 1,329 tests passed and 9 skipped pnpm typecheck — 38 tasks passed pnpm build — 27 tasks passed Coverage includes concrete and template registration, parsed variables, nested paths, precedence, unregistering, update events, MCP 2026 HTTP and stdio delivery, URI filtering, MCP 2025 pull access, shared-state lifecycle notifications, listener disposal, event-document parity, and API snapshots.

Open Graph Description: Summary Adds resource-content invalidations and RFC 6570 URI templates to Devframe's agent API while preserving the stateless MCP architecture introduced in 8d58eb5. Devframe authors use one AP...

X Description: Summary Adds resource-content invalidations and RFC 6570 URI templates to Devframe's agent API while preserving the stateless MCP architecture introduced in 8d58eb5. Devframe authors use on...

Opengraph URL: https://github.com/devframes/devframe/pull/292

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:dcf9c901-c54e-d998-b58a-c3c126b18049
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE9DA:3C556:11DE79D:187348B:6AFB6B05
html-safe-nonce03f6abef2c89cd90d3f5890dd96fafa6282a4e815a7b0938809ba95e31c6d33f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOURBOjNDNTU2OjExREU3OUQ6MTg3MzQ4Qjo2QUZCNkIwNSIsInZpc2l0b3JfaWQiOiI3MDUyNjUzNDYzNjg2ODM0OTQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc58c67c89fcc43e9972cbb7af5c75d33304e4969b2af2dafa9ffd9ea253d6d47
hovercard-subject-tagpull_request:4358972856
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/devframes/devframe/pull/292/files
twitter:imagehttps://avatars.githubusercontent.com/u/90617742?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/90617742?s=400&v=4
og:image:altSummary Adds resource-content invalidations and RFC 6570 URI templates to Devframe's agent API while preserving the stateless MCP architecture introduced in 8d58eb5. Devframe authors use one AP...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/devframes/devframe git https://github.com/devframes/devframe.git
octolytics-dimension-user_id279879373
octolytics-dimension-user_logindevframes
octolytics-dimension-repository_id1231722386
octolytics-dimension-repository_nwodevframes/devframe
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1231722386
octolytics-dimension-repository_network_root_nwodevframes/devframe
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
release88808b1fae5ab8a526a73e7ce5542a10eb9d6971
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/devframes/devframe/pull/292/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevframes%2Fdevframe%2Fpull%2F292%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%2Fdevframes%2Fdevframe%2Fpull%2F292%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=devframes%2Fdevframe
Reloadhttps://github.com/devframes/devframe/pull/292/files
Reloadhttps://github.com/devframes/devframe/pull/292/files
Reloadhttps://github.com/devframes/devframe/pull/292/files
devframeshttps://github.com/devframes
devframehttps://github.com/devframes/devframe
Codehttps://github.com/devframes/devframe
Issues12 (12)https://github.com/devframes/devframe/issues
Pull requests13 (13)https://github.com/devframes/devframe/pulls
Actionshttps://github.com/devframes/devframe/actions
Security and qualityhttps://github.com/devframes/devframe/security
Insightshttps://github.com/devframes/devframe/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fdevframes%2Fdevframe%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fdevframes%2Fdevframe%2Fissues%2Fnew%2Fchoose
dvcolombanhttps://github.com/dvcolomban
devframes:mainhttps://github.com/devframes/devframe/tree/main
dvcolomban:dvcol/mpc-ressourcehttps://github.com/dvcolomban/devframe/tree/dvcol/mpc-ressource
Conversation 21 https://github.com/devframes/devframe/pull/292
Commits 1 https://github.com/devframes/devframe/pull/292/commits
Checks 8 https://github.com/devframes/devframe/pull/292/checks
Files changed https://github.com/devframes/devframe/pull/292/files
Please reload this pagehttps://github.com/devframes/devframe/pull/292/files
feat(devframe): add MCP resource subscriptions and templates https://github.com/devframes/devframe/pull/292/files#top
Show all changes 1 commit https://github.com/devframes/devframe/pull/292/files
9789d03 feat(devframe): add MCP resource subscriptions and templates dvcolomban Aug 27, 2026 https://github.com/devframes/devframe/pull/292/commits/9789d038f5d7ebcf33c4e140d1f5884c9bb9a8b4
Clear filters https://github.com/devframes/devframe/pull/292/files
Please reload this pagehttps://github.com/devframes/devframe/pull/292/files
Please reload this pagehttps://github.com/devframes/devframe/pull/292/files
15.agent-native.md https://github.com/devframes/devframe/pull/292/files#diff-256cfb005765d3bb9564fe00fb2221c0453f7f4c809809eac90cd691096cc40b
3.events.md https://github.com/devframes/devframe/pull/292/files#diff-e690d18d47be4175f8635254e7bdf62c3701b3a0465b7f6691e0988646ca34cd
initiate.ts https://github.com/devframes/devframe/pull/292/files#diff-a9bcfb29d9c365ee0dd03456bdef86e93a812ea81bdada66f197d5e0d7631975
resource-stdio-server.ts https://github.com/devframes/devframe/pull/292/files#diff-a744e4e85cc19d981d96daf1d4423fca6533ac74b84fb6cb62cacec3b0336137
mcp-http.test.ts https://github.com/devframes/devframe/pull/292/files#diff-75298bb529f60691aa6fe98e627c3aa703ed6c38487099adce08fe052cbf8897
mcp-server.test.ts https://github.com/devframes/devframe/pull/292/files#diff-b9f4255e93bed1731f87358ad736ae48826b21b267c4d2cb6169e3c18453ff71
build-server.ts https://github.com/devframes/devframe/pull/292/files#diff-2b6bd0e918d09b12d611485e8fe7afea4ca092dc16a509c97d1002f74e9ad14a
fetch.ts https://github.com/devframes/devframe/pull/292/files#diff-a3559c52ab6089920f5b15fcba76789dcb2dd60d53b4b2c698c5baaba21b8431
rpc-shared-state.ts https://github.com/devframes/devframe/pull/292/files#diff-7c77ed971e646bb3cc99e0ac03db6a736e4371fb730bb4c04afcaa6d06f568bc
events.ts https://github.com/devframes/devframe/pull/292/files#diff-3b2cc3e5583c447eb874f44080449b916076311e910d379822b5c6c031544be9
host-agent.test.ts https://github.com/devframes/devframe/pull/292/files#diff-e3d264c6c012094539ff2e01a94d7f6ea473661074ba85d85809000d61de97b7
host-agent.ts https://github.com/devframes/devframe/pull/292/files#diff-63fbd99a42e65cbf7a699f7894a47dee701c6747ae6115e03fd67ec81f53fd72
rpc-shared-state.ts https://github.com/devframes/devframe/pull/292/files#diff-8cc18347186150a72c2d96f76fcbdc7398f546504c5b982d4bc1840f1c59d76f
agent.ts https://github.com/devframes/devframe/pull/292/files#diff-441c37b938a907d4c8c872ae5cb27f505659ce95f1b9c998561502f16970a20f
devframe.ts https://github.com/devframes/devframe/pull/292/files#diff-753444a22cd40457a3aeb4a48d0bda1e9c7768bca343ccf72f16699131320795
rpc.ts https://github.com/devframes/devframe/pull/292/files#diff-7383b19721d645064f5dc7ab789e3e688e22082307adb6592d0b26225cce3a27
initiate.ts https://github.com/devframes/devframe/pull/292/files#diff-500061a187e404009222ccd84a3d851545df0a3826241909a3b3b3d9580a4b02
SKILL.md https://github.com/devframes/devframe/pull/292/files#diff-8cf0d3c1d3a536a31480f46ea06b48988ff15262ea193aa47a5894e41f920e17
constants.snapshot.d.ts https://github.com/devframes/devframe/pull/292/files#diff-bddb4fcefc094b14796fa96b28e6183fded7aabd2d1185f22b993a3297567ee0
index.snapshot.d.ts https://github.com/devframes/devframe/pull/292/files#diff-e36c6d402239a03e9a6e3a7c285d18780f3584e9dd275c7e5220a6fc41fb160d
internal.snapshot.d.ts https://github.com/devframes/devframe/pull/292/files#diff-cf90d6f74b3f49997e90ee080ce227993bfabf8fadfa4f1d20f7644c507b10d0
types.snapshot.d.ts https://github.com/devframes/devframe/pull/292/files#diff-c53339d04f6316f1476d6844f94bc701efbac1c0e63dd7200d31a385ff9a3ad9
docs/content/1.guide/15.agent-native.mdhttps://github.com/devframes/devframe/pull/292/files#diff-256cfb005765d3bb9564fe00fb2221c0453f7f4c809809eac90cd691096cc40b
View file https://github.com/devframes/devframe/blob/9789d038f5d7ebcf33c4e140d1f5884c9bb9a8b4/docs/content/1.guide/15.agent-native.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/292/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/292/files#diff-256cfb005765d3bb9564fe00fb2221c0453f7f4c809809eac90cd691096cc40b
https://github.com/devframes/devframe/pull/292/files#diff-256cfb005765d3bb9564fe00fb2221c0453f7f4c809809eac90cd691096cc40b
https://github.com/devframes/devframe/pull/292/files#diff-256cfb005765d3bb9564fe00fb2221c0453f7f4c809809eac90cd691096cc40b
https://github.com/devframes/devframe/pull/292/files#diff-256cfb005765d3bb9564fe00fb2221c0453f7f4c809809eac90cd691096cc40b
docs/content/8.references/3.events.mdhttps://github.com/devframes/devframe/pull/292/files#diff-e690d18d47be4175f8635254e7bdf62c3701b3a0465b7f6691e0988646ca34cd
View file https://github.com/devframes/devframe/blob/9789d038f5d7ebcf33c4e140d1f5884c9bb9a8b4/docs/content/8.references/3.events.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/292/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/292/files#diff-e690d18d47be4175f8635254e7bdf62c3701b3a0465b7f6691e0988646ca34cd
https://github.com/devframes/devframe/pull/292/files#diff-e690d18d47be4175f8635254e7bdf62c3701b3a0465b7f6691e0988646ca34cd
packages/devframe/src/adapters/initiate.tshttps://github.com/devframes/devframe/pull/292/files#diff-a9bcfb29d9c365ee0dd03456bdef86e93a812ea81bdada66f197d5e0d7631975
View file https://github.com/devframes/devframe/blob/9789d038f5d7ebcf33c4e140d1f5884c9bb9a8b4/packages/devframe/src/adapters/initiate.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/292/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/292/files#diff-a9bcfb29d9c365ee0dd03456bdef86e93a812ea81bdada66f197d5e0d7631975
https://github.com/devframes/devframe/pull/292/files#diff-a9bcfb29d9c365ee0dd03456bdef86e93a812ea81bdada66f197d5e0d7631975
packages/devframe/src/adapters/mcp/__tests__/fixtures/resource-stdio-server.tshttps://github.com/devframes/devframe/pull/292/files#diff-a744e4e85cc19d981d96daf1d4423fca6533ac74b84fb6cb62cacec3b0336137
View file https://github.com/devframes/devframe/blob/9789d038f5d7ebcf33c4e140d1f5884c9bb9a8b4/packages/devframe/src/adapters/mcp/__tests__/fixtures/resource-stdio-server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/292/{{ revealButtonHref }}
packages/devframe/src/adapters/mcp/__tests__/mcp-http.test.tshttps://github.com/devframes/devframe/pull/292/files#diff-75298bb529f60691aa6fe98e627c3aa703ed6c38487099adce08fe052cbf8897
View file https://github.com/devframes/devframe/blob/9789d038f5d7ebcf33c4e140d1f5884c9bb9a8b4/packages/devframe/src/adapters/mcp/__tests__/mcp-http.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/292/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/292/files#diff-75298bb529f60691aa6fe98e627c3aa703ed6c38487099adce08fe052cbf8897
https://github.com/devframes/devframe/pull/292/files#diff-75298bb529f60691aa6fe98e627c3aa703ed6c38487099adce08fe052cbf8897
https://github.com/devframes/devframe/pull/292/files#diff-75298bb529f60691aa6fe98e627c3aa703ed6c38487099adce08fe052cbf8897
https://github.com/devframes/devframe/pull/292/files#diff-75298bb529f60691aa6fe98e627c3aa703ed6c38487099adce08fe052cbf8897
Please reload this pagehttps://github.com/devframes/devframe/pull/292/files
Please reload this pagehttps://github.com/devframes/devframe/pull/292/files
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.