-
Notifications
You must be signed in to change notification settings - Fork 34
Add display-review tool for agentic review
#230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
fc2e0ef
feat: add apply-review-state tool for agentic review
yannbf f9727f0
update schema
yannbf 4e3acfe
add retries to story index fetch
yannbf a2c1c20
fix tests and review comments
yannbf 755eb12
add branch name
yannbf d047ca8
sampleStoryIds -> storyIds renaming
yannbf 1556adc
improve agent phrasing at the end of session
yannbf cf02775
fix feature gating
yannbf 2e5d2fc
add tests
yannbf a9adf32
improve security and prompt
yannbf 7592218
Merge branch 'main' into yann/agentic-review-mcp-integration
yannbf d4317d9
rename review-changes to review
yannbf 3734bc5
prepare release
yannbf 61d7eb7
apply review changes
yannbf edb6a5b
introduce opening the reviewUrl in instructions
yannbf e73e0de
rename tools from *-review-state to *-review
yannbf a8be3ac
Merge branch 'main' into yann/agentic-review-mcp-integration
yannbf 2d0b6bc
ci: re-trigger workflows
yannbf 7bc5477
ci: re-trigger workflows
yannbf d225bf4
Apply review feedback, move logic from MCP to addon review, gate feat…
yannbf fe11c73
improve getReviewStatus
yannbf f3bee6f
PR review fixes
yannbf f2116fc
Merge branch 'main' into yann/agentic-review-mcp-integration
yannbf 5fe1a6d
fixes
yannbf f453508
improve prompt and data
yannbf ca09074
improve url handling
yannbf e406bc8
update prompt
yannbf 238729f
extract default MCP endpoint to a constant
yannbf 7d424c1
improve server instructions
yannbf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@storybook/addon-mcp": minor | ||
| --- | ||
|
|
||
| Added the `display-review` tool. The agent pushes a curated review of current changes and returns the review-page URL. Pairs with the `@storybook/addon-review` Storybook addon. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,20 @@ | ||
| export const MCP_APP_PARAM = 'mcp-app'; | ||
| export const MCP_APP_SIZE_CHANGED_EVENT = 'storybook-mcp:size-changed'; | ||
|
|
||
| /** | ||
| * Channel event shared with `@storybook/addon-review` (cross-repo contract). | ||
| * Emitted by the `display-review` tool to hand the agent's payload off to the | ||
| * addon-review server preset | ||
| */ | ||
| export const PUSH_REVIEW_EVENT = 'storybook/addon-review/push-review'; | ||
|
|
||
| /** Storybook manager route the review page is registered at. */ | ||
| export const REVIEW_PAGE_PATH = '/review/'; | ||
|
|
||
| /** | ||
| * Default path the MCP server is mounted at on the Storybook dev server. | ||
| * The user can override this via the addon's `endpoint` option; everywhere | ||
| * else in the codebase that needs to compare against or fall back to the | ||
| * default should import this constant rather than hard-coding `'/mcp'`. | ||
| */ | ||
| export const DEFAULT_MCP_ENDPOINT = '/mcp'; |
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.