Skip to content

feat(plugin): bundle Cursor with REA runtime and skill - #3003

Closed
GamerDubz wants to merge 46 commits into
morluto:mainfrom
GamerDubz:feat/cursor-plugin
Closed

GamerDubz wants to merge 46 commits into
morluto:mainfrom
GamerDubz:feat/cursor-plugin

Conversation

@GamerDubz

@GamerDubz GamerDubz commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add Cursor's plugin manifest and MCP declaration to REA's shared packaged runtime. Cursor receives the canonical generated skill and shared REA icon, and launches the matching bundled runtime in-process.

This replaces #2134. The branch now merges upstream 72d5e72e6, preserving its existing commits and authorship. The obsolete stacked Claude/Codex implementation and extra npm-runner child are superseded by upstream's shared implementation.

Changes

  • Pin Cursor's manifest and launcher to the current package version, and include both files in the production archive.
  • Add Cursor to Release Please, immutable release-checkpoint validation, release-only history comparison and archive verification.
  • Test stale manifest/launch pins and simulated release updates. Commit the history fixture's version changes before verifying its source snapshot; reject launcher behavior changes.
  • Bundle ./skills and ./assets/rea-plugin.png. Update installation, release and skill-recovery guidance to avoid a duplicate setup-owned MCP registration.
  • Retain upstream's in-process launcher: no temporary npm prefix, local package resolution or Windows cmd.exe wrapper remains in this PR's launcher.

No provider capability, dependency, release version or runtime API change is introduced.

Latest validation

Commit: df4225796 (8 November 2026). The fork's Android metadata workflow initially failed on repeated HTTP 504 responses from GitHub browser download URLs. The fixture downloader now requests the same official JADX and ApiDemos release assets through GitHub's asset API with binary content negotiation. Versions and SHA-256 pins are unchanged. Transient HTTP retries are bounded to three attempts within the existing per-artifact deadline; checksum and permanent HTTP failures remain fatal.

  • Actual local downloads verified both original SHA-256 pins. Five bootstrap/retry/content-negotiation/checksum tests passed, plus typecheck, lint/module boundaries, formatting, build, documentation (9 README cases) and normal commit/pre-push hooks. Lint retains 3,347 advisory warnings with zero errors.
  • The fork's Real Android metadata bridge run passed: both downloads, Java compilation and real metadata/external-reference regressions succeeded on this commit.
  • Current upstream PR CI/review is separate and may still be running. Live Cursor IDE installation was not rechecked.

Merge validation

Commit: 9fc75e4ba (8 November 2026), merging current main. The documentation conflicts are resolved at their current paths, docs/getting-started/installation.md and docs/development/releasing.md.

  • Dependency check, typecheck, lint/module boundaries, formatting, build, documentation checks and normal commit/pre-push hooks passed. Lint retains 3,349 advisory warnings with zero errors.
  • Selected release configuration/checkpoint, release notes, plugin metadata and MCP launcher suites: 85 passed, 5 platform-specific skips; documentation checks include 9 passing README consistency cases.
  • The release-notes fixture now runs an isolated Node-backed gh.exe on Windows instead of accidentally calling the installed GitHub CLI. Its 14 tests reproduced the fixture failure and now pass; the final extracted fixture script passed again. Production release commands are unchanged.
  • The commit hook consolidated duplicate imports in two upstream files; those import-only changes were reviewed.
  • Fresh hosted CI is pending. No new production archive installation or live Cursor IDE verification was performed for this merge.

Earlier validation

Commit: bf65bc9e2, Windows, Node 24.22.1.

  • Typecheck, repository lint, formatting, metadata, build and normal pre-push check:fast passed. Changed release tests have no lint diagnostics; repository lint retains existing advisory warnings.
  • Focused release configuration/checkpoint, launcher, product catalog and analysis-view tests: 119 passed, 5 skipped on Windows. Both assertions that failed in the old Portable run now pass.
  • Final release-configuration rerun: 18 passed.
  • Documentation checks passed, including 9 README consistency tests.
  • Real Git history self-check passed: committed Cursor version-only changes accepted; a committed launcher-command change rejected.
  • Official Cursor plugin manifest schema validation passed.
  • Production archive verification passed for all three plugin clients. The packed Cursor declaration completed real MCP initialize, ping and clean EOF shutdown from a separate caller directory. Both verification runs and cleanup returned exit code 0.
  • Scoped lint-staged checks passed on the 15-file contribution; the normal pre-push hook remained enabled. git diff --check passed, and Git's merge check passed against fetched upstream 1ef591817.

The initial dependency extraction was incomplete despite npm reporting success. Reinstalling the lockfile with reduced download concurrency repaired it before the successful checks. Compiler checks used reduced concurrency and garbage-collection settings for this Windows host.

Compatibility and verification limits

The runtime and generated skill must exist before loading a source checkout; clone-only Git installation does not build them. Cursor marketplace submission and real Cursor IDE installation/UI are not verified or performed here. Existing published npm packages are unchanged and a maintainer release remains necessary.

The release-notes suite now passes on Windows using the isolated GitHub CLI fixture; its POSIX launcher path and full repository/package/provider E2E were not run locally. The Windows real-Git check exercises the changed history boundary, and the archive stage plus actual packed MCP launch were executed. No real reverse-engineering provider claim is made.

Hosted CI for this revision is pending.

Author readiness

Human owner: @GamerDubz

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

The older PR predates the current readiness template. These declarations require the human owner's review; they have not been completed by an agent.

GamerDubz and others added 30 commits October 11, 2026 23:53
Add .claude-plugin/plugin.json at the repository root so Claude Code plugin
directories and marketplaces can list REA. The manifest bundles the authored
reverse-engineer-anything skill from .agents/skills/ and registers the
existing stdio server through npx; it adds no second distribution artifact.

Release Please now bumps the manifest version with each release, which is
when installed plugins refresh the bundled skill.
Add .codex-plugin/plugin.json so Codex loads REA with its own display
metadata, and make the repository a single-plugin marketplace for both
clients through .agents/plugins/marketplace.json and
.claude-plugin/marketplace.json. Users can now add morluto/rea as a
marketplace and install the plugin without waiting for a directory listing.

Release Please bumps the Codex manifest version alongside the Claude one.
Release PRs now bump .claude-plugin/plugin.json and .codex-plugin/plugin.json,
but the publication history check rejected them as post-notes product
changes and the release configuration test still expected the previous
extra-files list. Admit both manifests in the release-only allowlist, expect
them in the Release Please configuration, and assert that each manifest
version matches package.json.
The release-only allowlist gained both plugin manifests without a test
naming them. The publication history test now commits both manifests in
the release commit, so it fails with "Product changed after notes target"
if either path is dropped from the allowlist.
Codex's plugin validator rejects a manifest whose interface omits
capabilities. Declare them in .codex-plugin/plugin.json and assert the
required interface fields in the release configuration test.
…eout

The Codex manifest left startup_timeout_sec at the client default, unlike
the registration rea setup writes, so a cold npx start could be cut off
before tools appeared. Carry the owned timeout in the Codex server entry
and assert it against MCP_STARTUP_POLICY.
rea doctor's client and skill checks only read state that rea setup
manages, so a plugin-only install reports missing and recommends the
second registration the plugin section warns against. Say so, and point
plugin users at the client's own plugin listing and provider-scoped
doctor checks.
A plugin-only install has no rea executable on PATH, so the documented
rea doctor command failed with "command not found". Show the package
runner form instead.
Both manifests started `rea-agents@latest`, so a server start could run a
different package version from the installed plugin and bundled skill, and
would execute whatever npm's latest tag pointed at. Pin the launch to the
manifest version and have Release Please rewrite it with each release.

Release Please reserializes JSON extra-files with JSON.stringify, which the
formatter would reject in every release PR. Store both manifests in that
form, exempt them from the formatter, and assert the form in conformance.
The bundled skill said installing it never registers the MCP server and
sent every missing-tools case to rea doctor --client and rea setup. For a
plugin-only install those report missing and setup would add a second rea
server. Tell the agent how to recognise a plugin install and to use the
client's own plugin and MCP listings instead.
The publication checkpoint validated package, lockfile, server and
generated metadata versions but not the plugin manifests, so a candidate
could be tagged with a manifest version or pinned server launch left at
the previous release. Validate both fields in both manifests.
…idation

The checkpoint stripped an optional rea-agents@ prefix before comparing,
so a manifest launching a bare release number passed even though npx
would fetch a package named after that number. Compare the whole
specifier and report the launched value.
Add .cursor-plugin/plugin.json and the server file it names so Cursor can
load REA as a plugin. It registers the same version-pinned stdio server as
the Claude Code and Codex plugins. The skill is not bundled, because Cursor
loads plugin skills from a directory of skill folders and .agents/skills
also holds maintainer-only skills.

Release Please, the publication checkpoint, the release-only allowlist and
the formatter exemption cover both new files.
…e notes target

The publication history check admitted the plugin manifests whole, so a
release could change plugin behavior, such as the bundled skill path or the
server environment, and still pass as release-only. Compare each manifest
across the release with its version and pinned server launch blanked, and
treat any other difference as a product change.
# Conflicts:
#	scripts/lib/release-notes.mjs
#	tests/boundary/filesystem/releaseNotes.test.ts
…nifests

The version-only comparison blanked the whole launch argument, so a release
that swapped rea-agents for another package passed the notes check as a
version bump. Mask only the version after the last "@" and test a changed
package name.

The plugin readiness command in the installation guide now uses the pinned
release version, so its report describes the server the plugin starts.
The release notes tests built every plugin file from the inline manifest
shape, so the Cursor manifest carried an inline server and its server file
carried a version and skills. Build each file from its shipped shape and
reject a changed server file reference, launched package and server
environment.
…n guide

The conformance test read only the first Release Please version block, so
adding the plugin readiness block ahead of the MCP Registry example left
the registry example unchecked. Check every block, and require each known
example to sit inside exactly one, so a stale version or a lost marker in
any of them fails.
The plugin guidance said a package-runner doctor report describes the
server the plugin starts. Doctor reads the invoking shell's environment,
while the plugin server inherits the client's, so the two can disagree
about settings such as GHIDRA_INSTALL_DIR. Point plugin users and the
bundled recovery guide at binary_session tool availability, and say what
the terminal check does and does not cover.
The plugin recovery section left the package-runner version to the skill's
generic @latest fallback, so a doctor run could describe a newer release
than the server an installed plugin starts. Tell the agent to use the
version pinned in the plugin manifest.
Two files from the last commits on morluto#2134 failed `oxfmt --check`, which
fails the static gate. Apply the formatter; no behavior changes.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@GamerDubz GamerDubz changed the title feat(plugin): add a Cursor plugin that registers the pinned REA server feat(plugin): bundle Cursor with REA runtime and skill Oct 29, 2026
@CassieFox23

CassieFox23 commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR: I tested head bf65bc9 in a Fedora VM. All 77 tests in the three changed files pass on Node 22, 24 and 26, with none skipped. The Cursor files ship in the package. The launcher answers MCP calls when I fill in the plugin path myself. I did not try real Cursor, and the branch now conflicts with main.

Edit (8 Nov): I ran the new head, df42257, in a VM, and the results are here.

Check Node 22.23.4 Node 24.22.1 Node 26.12.1
releaseCheckpoint.test.ts (45 tests) pass pass pass
releaseNotes.test.ts (14 tests) pass pass pass
releaseConfiguration.test.ts (18 tests) pass pass pass

Findings

  • The Windows skips ran. The four cases under it.skipIf(process.platform === "win32").each (releaseCheckpoint.test.ts, line 751) are two preflight jobs, release-please and merged-release. Each runs with valid and with invalid metadata. Linux ran them: the summary says 77 passed and has no skipped line. The log does not list those four names, so I read the summary instead.
  • The POSIX release-notes suite ran. The PR body says it was not run locally. Its 14 tests passed. The suite writes its own fake gh script, and the VM has no real gh.
  • What ships. npm pack --dry-run --json lists 2,621 files for rea-agents 6.8.0. They include .cursor-plugin/plugin.json, .cursor-plugin/mcp.json, assets/rea-plugin.png, scripts/plugin-mcp-launcher.mjs and 8 files under skills/. The skills/ folder is not in the head tree. The build makes it from .agents/skills/ (artifacts:skills, which ran in the test step). Both Cursor files say 6.8.0, the same as package.json.
  • Launcher. With ${CURSOR_PLUGIN_ROOT} replaced by a script of mine (not Cursor), plugin-mcp-launcher.mjs 6.8.0 ran from another folder. It answered initialize (server rea 6.8.0) and ping, then exited 0 when stdin closed. I ran it in the checkout and in a folder holding exactly the 2,621 packed files. That folder used the dev node_modules, so it is not a clean production install. A wrong pin (6.7.0) exits 1 with "version pin does not match its installed rea-agents package".
  • Launcher change test. In releaseNotes.test.ts, the Cursor negative case changes only command. I added three Cursor cases to a scratch copy. One had a different launcher path, one an extra argument, and one the path without ${CURSOR_PLUGIN_ROOT}. The check rejected all three with "Product changed after notes target", so the file ran 17 of 17. The check catches these three. Only the committed test misses them. I put the file back, and its sha256 matches the head's copy.
  • Read, not run. The Cursor test fixture adds startup_timeout_sec: 30. The shipped .cursor-plugin/mcp.json has no such key. The test compares fixture to fixture, so it does not matter for the result.
  • CI. Hosted CI finished on this head: 24 passed, 19 skipped, 7 cancelled, of 50 runs. The passes include CI required, Portable tests, Test shard 1 to 8, Static checks, Build package, Source tests, Documentation, Windows capability and package lane, and the Linux and macOS Native package baseline runs. The 7 cancelled are repeats: Conventional PR title (3) and Validate author declaration (4). Each of those also has a pass. The 19 skipped include Deep static checks, Reverse tools quality, Source-built conformance fixtures, Real Apple artifact CLI/MCP E2E and lanes like ghidra_bridge, nativeaot and browser. So not every lane ran. The PR body says CI was pending, so it has finished since.
  • Conflict. GitHub marks this PR as conflicting with main (b81da90). I tested the head as it stands. Main has no .cursor-plugin folder, so the Cursor work is not already there.

Not run

  • Real Cursor IDE (none in the VM): whether Cursor expands ${CURSOR_PLUGIN_ROOT}, loads the skill or shows the icon.
  • The merge with main. I did not look at the conflicting files or test a merged tree.
  • The rest of the 119 tests in your Windows run: the launcher, product catalog and analysis view tests.
  • The full repository, package and provider E2E.
  • A real npm pack tarball and a clean production install. I used the dry-run file list.
  • scripts/verify-package-pack.mjs. It only exports a function and has no command-line mode.
  • test:fast, test:built and rea doctor. The word "doctor" shows up in releaseConfiguration.test.ts only as an example string and in a test title.
Test setup
  • Box: Fedora 44 VM (4 vCPUs, 8 GB) on my Nobara 44 box, guest Linux 7.2.11
  • Node: 22.23.4, 24.22.1, 26.12.1 (npm 11.19.1 on Node 24)
  • Test runner: vitest 5.0.3 through npm run test:focused
  • Head / main: bf65bc9 / b81da90 (main now; the PR's own base on GitHub is 01e00da)
  • Other: no real Cursor, no real gh
Commands

All run in the VM, offline, with the npm cache filled beforehand. Node 24.22.1 unless noted.

npm --prefix ~/pr-3003/src ci --offline                       exit 0
npm --prefix ~/pr-3003/src run prepare                        exit 0
npm --prefix ~/pr-3003/src run test:prepare                   exit 0
npm --prefix ~/pr-3003/src run test:focused -- tests/boundary/filesystem/releaseCheckpoint.test.ts tests/boundary/filesystem/releaseNotes.test.ts tests/conformance/releaseConfiguration.test.ts
    Node 24.22.1: exit 0, 77 passed, 10.91s
    Node 22.23.4: exit 0, 77 passed, 10.65s
    Node 26.12.1: exit 0, 77 passed, 10.52s
env -C ~/pr-3003/src npm pack --dry-run --json --ignore-scripts   exit 0
scratch mutation of releaseNotes.test.ts (3 extra Cursor cases), then test:focused on that file: exit 0, 17 passed, 11.75s; file restored, sha256 equal
node launch.mjs                 (scratch; swaps ${CURSOR_PLUGIN_ROOT}, sends initialize and ping)   exit 0
node launch.mjs 6.7.0           (wrong pin)                                                       launcher exit 1
node launch-staged.mjs          (same, in a folder of the 2,621 packed files)                     exit 0

test:focused takes exact test paths only, so a first try with --reporter=verbose stopped with exit 1 and ran nothing.

🤖 Written and tested with Claude Code (Sonnet 5.5, verified by Opus 5.5), posted with my OK 🦊

@CassieFox23

Copy link
Copy Markdown
Contributor

TL;DR: I re-tested df42257 on Node 22.23.4, 24.22.1 and 26.12.1. The 5 changed test files passed on all three, with 89 tests each. The conflict from my comment above is gone, but I could not run the new download path offline.

Check Node 22.23.4 Node 24.22.1 Node 26.12.1
5 changed test files pass: 5 files, 89 tests, 0 skipped pass: 5 files, 89 tests, 0 skipped pass: 5 files, 89 tests, 0 skipped
  • The conflict I reported in my comment above is gone. GitHub now says the PR is mergeable. Its merge state is blocked.
  • Main was merged in. Then two commits changed how Android test files download. They are e4333a6 and df42257. They touch scripts/fixtures/android/fetch.mjs, scripts/fixtures/android/apidemos.json, src/android/JadxRelease.ts, docs/testing-lanes.md and tests/boundary/process/androidFixtureBootstrap.test.ts.
  • I read CI on df42257 live with gh. The CI workflow run succeeded. Passing check runs include CI required, Source tests, Portable tests and Test shard (1/8) to Test shard (8/8).
  • In total, 26 check runs passed and 22 were skipped. None failed. PR readiness passed.
  • The head is 6 commits behind main 88cf498.

Not run

  • npm run fixtures:android: it downloads from GitHub, and the VM is offline, so the new download path wasn't exercised.
  • Real Cursor, as before.
Test setup
  • Box: Fedora 44 VM (4 vCPUs, 8 GB) on my Nobara 44 PC, Linux 7.2.11
  • Node: 22.23.4, 24.22.1, 26.12.1
  • Head: df42257
  • Install: npm ci --offline and npm run test:prepare on Node 24.22.1, exit 0
Commands
npm ci --offline
npm run test:prepare
xvfb-run -a npm run test:focused -- tests/boundary/filesystem/releaseCheckpoint.test.ts tests/boundary/filesystem/releaseNotes.test.ts tests/boundary/mcp/ghidraFailureDiagnostics.test.ts tests/boundary/process/androidFixtureBootstrap.test.ts tests/conformance/releaseConfiguration.test.ts

🤖 Written and tested with Claude Code (Sonnet 5.5, verified by Opus 5.5), posted with my OK 🦊

Copy link
Copy Markdown
Contributor Author

Thanks @CassieFox23 for testing all three Node versions. The online download path was also exercised on df42257: the fork's Real Android metadata bridge run passed, including both checksum-pinned downloads, Java compilation and the metadata/external-reference regressions. Both artifacts were also downloaded and checksum-verified locally.

Current required CI is green and GitHub reports no conflicts. Real Cursor IDE installation/UI remains unverified.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@GamerDubz
GamerDubz force-pushed the feat/cursor-plugin branch 2 times, most recently from 6f35172 to 2726823 Compare November 10, 2026 22:06
Bring the branch current with morluto/rea main. Resolve Cursor plugin
conflicts to the Marketplace layout already on main, and keep this
branch's Android GitHub asset API download and retry fixes.
@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Thanks for driving Cursor support. The Cursor Marketplace plugin with the skill and pinned MCP server shipped in a54e84830 (#9878), and this branch's diff no longer contains Cursor changes. The remaining Android fixture download retries in scripts/fixtures/android/fetch.mjs would be welcome as a separate PR.

@N0zoM1z0 N0zoM1z0 closed this Nov 14, 2026
@morluto morluto added the area: runtime Process capture and runtime observation label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation area: server Server layer and tool wiring enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants