Repository navigation
feat: add guided MCP workflow prompts - #104
Merged
Merged
Conversation
…letion # Conflicts: # scripts/verify-package.mjs
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
feat: add guided MCP workflow prompts
2 tasks done
3 tasks done
DrAbdulmalek
pushed a commit
to DrAbdulmalek/rea
that referenced
this pull request
Oct 26, 2026
DrAbdulmalek
pushed a commit
to DrAbdulmalek/rea
that referenced
this pull request
Oct 26, 2026
Rebase of useful morluto#105 content onto main after morluto#104. Keep uv/ZIP security in UV-AND-DOWNLOAD-SECURITY.md; do not close morluto#51.
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
Closes #102.
This PR adds provider-neutral MCP workflow prompts and live, session-scoped argument completion without moving Hopper-specific behavior into the domain or application layers.
investigate_feature,compare_application_versions,verify_reconstruction,trace_crash,audit_residual_unknowns, andprepare_bounded_process_capture.prompts.listChangedand emitsnotifications/prompts/list_changedwhen a registered workflow is updated.Behavior and safety
Prompts compose the existing 68 tools; they do not invoke tools or duplicate analysis logic. Each workflow uses current tool names and explicit ordering, and requires agents to keep observed evidence, inference, and unknowns separate. Prompt arguments and completion selections are rendered as untrusted data rather than instructions or authorization.
Completion is a read-only live projection of the active provider and session. Results are Unicode-normalized, case-insensitive prefix matches, deduplicated, deterministically sorted, and bounded to 10,000 scanned candidates. Procedure discovery is additionally capped at 5,000 unique addresses in pages of 500. Procedure names are offered only after exhaustive discovery proves that the name resolves to one address; partial discovery returns observed addresses only.
The MCP response remains bounded by the SDK's 100-value wire limit and reports
totalandhasMore. Malformed provider output, unsupported operations, stale sessions, and provider failures produce empty completion rather than unverified identifiers. Switching or closing a target immediately changes the next completion result because REA does not cache completion data.MCP currently defines completion for prompt arguments and resource-template variables, not arbitrary tool-call arguments. This implementation therefore exposes completion through guided prompt arguments and does not claim completion for every tool input.
Contract impact
This is additive:
Verification
npm run checknpm run verify:packagenpm run knipnpm run jscpdnpm run scan:todosReal Hopper verification
npm run verify:hopperwas not run. This change does not modify Hopper launch, bridge, socket protocol, or provider behavior; the packaged stdio MCP path and provider boundary are exercised through the repository's production seams.