Repository navigation
feat: add MCP prompts and session resources (#126) - #149
Merged
Merged
Conversation
Four workflow prompts (bug-repro-clip, demo-gif, verify-ui-change, review-recording) that clients surface as slash commands, and session resources (list, per-session JSON, JPEG poster) with resources/list_changed sent when a recording starts or stops. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Closes #126.
Prompts (
src/prompts.ts)Four workflows clients surface as slash commands; each returns one user message that spells out the tool sequence, with the arguments filled in:
bug-repro-clip{target?, notes?}: record → scene frames to find the moment →find_textsecret check +redact_region→ trim/clip →callout→export_gifunder 10 MB.demo-gif{target?, maxMB?}: record →contact_sheetto pick the stretch → trim →export_gif(falling back to WebP).verify-ui-change{target?, expectation?}: screenshot → change →wait_for_changesettle →screen_diff→find_textfor expected text.review-recording{path}:get_media_info→contact_sheet→ scene frames → timestamped summary.Resources (
src/resources.ts)screencast://sessions: every session (JSON).screencast://sessions/{id}: one record, plusfileExists; listable through the template'slistcallback.screencast://sessions/{id}/poster: a JPEG frame from the middle of the recording (blob), so a client can show or attach a recording with no filesystem tool.SessionStore.onChange()(listener after each write) →server.sendResourceListChanged()when connected, so clients refresh as recordings start and stop.Tests
promptsResources.test.ts: a real MCP client overInMemoryTransport(runs in CI on any OS): lists the prompts, fills arguments, every tool a prompt names exists inmcp-tools.json, sessions appear as resources,list_changedarrives on a write, reading a record works, and a missing poster or session errors clearly.Version 0.23.0; README (new "Prompts and resources" section), CHANGELOG.
🤖 Generated with Claude Code