Repository navigation
Conversation
Declare the Devframe 1.1 agentic runtime dependency, retain asynchronous Next hub startup, and avoid production sidecar setup. Align MCP playgrounds and browser test setup with Storybook 11 and main's port configuration. Validated frozen install, build, typecheck, 502 unit tests, 211 browser tests, and all 6 serial Storybook integration tests. Verified runtime props and the React component tree interactively.
Make tokens optional, preserve explicit token enforcement and origin checks, and allow agent: false to disable the endpoint. Remove playground token and opt-in setup so all hosts exercise the default. Validated build, typecheck, 503 unit tests, 211 browser tests, and all 6 serial Storybook integration tests. The React demo responds to MCP tool discovery without an Authorization header.
commit: |
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.
Summary
Add a read-only runtime MCP endpoint that lets agents query the application currently open in a browser, and install Storybook MCP in the playgrounds so both can be used together.
/__storybook-devtools/mcpon Vite, Nuxt and Rsbuild;/__devframes/storybook-devtools/mcpon Next). It exposes only the runtime tools, without the hub's terminals, story-writing actions, or shared-state resources.get-app-context(connected pages, mounted components, current selection),inspect-component(live props and matching stories for one instance),get-story-gaps(mounted components without a matching story), andget-component-tree(rendered React hierarchy, parent-first, capped at 500 nodes).agent: falsedisables it andagent: { token }requires a matching bearer header. Origin checks apply in every mode.status: "unsupported-framework"rather than an empty tree.@storybook/addon-mcpto the five playgrounds with a Storybook config, and move Storybook browser tests for React, Vue and Nuxt into separatevitest.config.tsfiles so the MCPtest-runtool finds a test project without starting the app's DevTools plugins.@devframes/agenticas a runtime dependency, since the Devframe MCP adapter loads its implementation from it. Production Next routes return 404 without allocating a development sidecar..codex/config.tomlwith a ready-to-use connection to the React demo's runtime MCP and Storybook MCP.Why
Storybook MCP knows a project's components, stories and docs, but not what is on screen in the running app. Runtime MCP supplies page, instance and selection identity plus current props and real ancestry, so an agent can go from "this button on this page" to its source file, its stories, and the states that have no story yet. It reuses the devtool's existing registry and story index instead of adding a second component catalogue.
Scope
e2e/common-agent-suite.tsruns on all six playgrounds)Validation
Passed locally:
agentoption and no MCPAuthorizationheader.test-runon React, Vue and Nuxt.nulloutput, multiple roots, and truncation. Browser tests verify ancestry, offscreen membership, stable IDs, and modal mount/unmount on the four React hosts.tools/listrequest without anAuthorizationheader returned all four tools, and opening then closing the modal changed the tree from 26 to 33 and back to 26 nodes with existing IDs unchanged.Screenshots / Evidence
No visible UI changes.
Documentation
docs/AGENT_MVP.mdwith setup, agent workflow, evidence limits, and validation historyPR Type
Notes for Reviewers
🤖 Generated with Claude Code