Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
365deb0
feat: manage Cursor vendor sessions through host acquisitions
showxu Nov 25, 2026
525e829
test: verify managed Cursor lifecycle through installed package
showxu Nov 25, 2026
576afc1
test: verify registered adapter launch ownership
showxu Nov 25, 2026
5806595
test: verify retained sessions through the registered host router
showxu Nov 25, 2026
4069324
test: correlate native cancellation with each addressed turn
showxu Nov 25, 2026
49bf7e3
test: verify registered project access in Cursor worktrees
showxu Nov 25, 2026
c7e031e
ci: verify Cursor source and registered session workflows
showxu Nov 25, 2026
40265c1
test: verify retained Cursor cancellation results
showxu Nov 25, 2026
46e0de6
test: verify Cursor revocation against its owned worktree processes
showxu Nov 25, 2026
0905e7e
ci: pin the reviewed host for consumer acceptance
showxu Nov 25, 2026
629851f
fix: isolate Cursor source validation evidence
showxu Nov 26, 2026
8432be3
fix: check Cursor validation paths by filesystem identity
showxu Nov 26, 2026
8392aa2
ci: pin Host with reviewed Computer Use declarations
showxu Nov 26, 2026
04a83f2
feat: declare Cursor service access and report ACP sign-in requirements
showxu Nov 27, 2026
5b6c9a9
fix: classify Cursor ACP authentication by RPC code
showxu Nov 27, 2026
f803ed2
test: verify Cursor service access in Host registration
showxu Nov 27, 2026
0f48bb6
ci: run consumer checks against the corrected host fixtures
showxu Nov 28, 2026
2ba842b
fix: limit ACP sign-in hints to authentication required
showxu Nov 28, 2026
e297829
ci: verify the consumer against the mounted-project fix
showxu Nov 28, 2026
3d46520
fix: keep sign-in with the vendor
showxu Nov 28, 2026
2afb37c
ci: validate against the integrated Host candidate
showxu Nov 28, 2026
ba4f8c3
ci: test against the reviewed Host revision
showxu Nov 28, 2026
b2c0c17
ci: verify against the updated host diagnostics contract
showxu Nov 28, 2026
ab36e74
ci: pin Host for integrated candidate checks
showxu Nov 28, 2026
8ebbb42
ci: allow more time for the Cursor source suite
showxu Nov 28, 2026
f6a35b8
ci: verify against the parallel Host candidate
showxu Nov 29, 2026
bbddefa
ci: verify the accepted Host candidate
showxu Nov 29, 2026
54a21c5
docs: prepare 0.1.0 release notes
showxu Nov 30, 2026
cac39d5
ci: pin Computer MCP 0.1.0 for plugin validation
showxu Nov 30, 2026
185c01f
test: reuse Cursor sandbox probes after cancellation
showxu Dec 1, 2026
351f3a2
test: share the build for host consumer suites
showxu Dec 1, 2026
ad87fe1
test: verify packaged plugin behavior at its boundaries
showxu Dec 1, 2026
d0bf296
test: run provisioned host package smoke on macOS
showxu Dec 1, 2026
f7783e5
ci: pin the Host with registered-package smoke support
showxu Dec 1, 2026
af8405e
test: share exact-pair interoperability with the Host gate
showxu Dec 1, 2026
f703891
ci: verify packages with the integrated Host candidate
showxu Dec 1, 2026
9af6e15
ci: validate plugins with the reviewed Host candidate
showxu Dec 1, 2026
e54f685
ci: isolate plugin and Host checkouts in the runner workspace
showxu Dec 1, 2026
9725ef4
test: build only the host interop product
showxu Dec 2, 2026
8d6ecce
test: model native stop writes in the host carrier
showxu Dec 2, 2026
374de35
test: keep Cursor interop worktree calls off the cooperative pool
showxu Dec 2, 2026
97abb39
chore: integrate shared workflow policy with release checks
showxu Dec 3, 2026
de08399
ci: pin interoperability to the merged Host revision
showxu Dec 3, 2026
cfdbeed
test: pin the release Host for plugin checks
showxu Dec 3, 2026
56f3e71
feat: support editable plugin release attachments
showxu Dec 3, 2026
0154419
test: pin the Host release candidate for plugin checks
showxu Dec 3, 2026
c66c3a5
docs: explain recovery for editable releases
showxu Dec 3, 2026
c4996c5
test: bind the Cursor smoke peer to the selected Python
showxu Dec 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/computer-mcp-host.sha
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dec7150f3dc94411c290309e6f26e59d95da248d
61 changes: 55 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,38 @@ jobs:
python-version: ['3.13', '3.14']
env:
PYTHONDONTWRITEBYTECODE: '1'
defaults:
run:
working-directory: plugin
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
path: plugin
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
with:
python-version: ${{ matrix.python-version }}
- run: |
python3 -m unittest discover -s tests -p 'test_*.py'
python3 scripts/build_package.py dist > package-receipt.json
- name: Read the pinned Host revision
id: host
shell: bash
run: |
revision=$(cat .github/computer-mcp-host.sha)
[[ "$revision" =~ ^[0-9a-f]{40}$ && "$revision" != 0000000000000000000000000000000000000000 ]]
printf 'revision=%s\n' "$revision" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
repository: computer-mcp/computer-mcp
ref: ${{ steps.host.outputs.revision }}
path: host
persist-credentials: false
- uses: ./host/.github/actions/provision-plugin-smoke
- run: python3 scripts/test_plugin.py dist > package-receipt.json
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: cursor-plugin-${{ github.sha }}-${{ matrix.python-version }}
path: |
dist/cursor.zip
package-receipt.json
plugin/dist/cursor.zip
plugin/package-receipt.json
if-no-files-found: error
unsupported-runtime:
runs-on: macos-latest
Expand All @@ -53,9 +69,42 @@ jobs:
- run: python3 tests/check_runtime_rejection.py
runtime:
uses: computer-mcp/github-workflows/.github/workflows/plugin-runtime.yml@d1235cc8d2d86df99770c30b5a0b64469085e931
interop-scope:
runs-on: ubuntu-latest
outputs:
required: ${{ steps.scope.outputs.required }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
persist-credentials: false
- name: Check for changes to the plugin or interop contract
id: scope
env:
BASE: ${{ github.event.pull_request.base.sha || github.event.before }}
shell: bash
run: |
required=true
if [[ -n "$BASE" ]] && git cat-file -e "$BASE^{commit}" 2>/dev/null; then
changes=$(git diff --name-only --no-renames "$BASE" HEAD -- \
bin/ skills/ Examples/ computer-mcp-plugin.toml cli-tree.json \
cursor-vendor-execution.json scripts/build_package.py \
scripts/validate_host.py scripts/validate_host_source.py scripts/test-interop.sh \
tests/Fixtures/ tests/Interop/ .github/computer-mcp-host.sha .github/workflows/ci.yml \
.github/workflows/host-interop.yml .github/workflows/release.yml)
if [[ -z "$changes" ]]; then required=false; fi
fi
printf 'required=%s\n' "$required" >> "$GITHUB_OUTPUT"
host-consumer:
needs: interop-scope
if: needs.interop-scope.outputs.required == 'true'
uses: ./.github/workflows/host-interop.yml
with:
ref: ${{ github.sha }}
validate:
if: always()
needs: [package, unsupported-runtime, runtime]
needs: [package, unsupported-runtime, runtime, interop-scope, host-consumer]
uses: computer-mcp/github-workflows/.github/workflows/result.yml@d1235cc8d2d86df99770c30b5a0b64469085e931
with:
needs-json: ${{ toJSON(needs) }}
optional-jobs: ${{ needs.interop-scope.outputs.required == 'false' && '["host-consumer"]' || '[]' }}
68 changes: 68 additions & 0 deletions .github/workflows/host-interop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Host interoperability
on:
workflow_call:
inputs:
ref:
description: Plugin revision to check out
required: true
type: string
outputs:
commit:
description: Full plugin commit validated against the pinned Host
value: ${{ jobs.host-consumer.outputs.commit }}
permissions:
contents: read
jobs:
host-consumer:
runs-on: macos-latest
timeout-minutes: 25
outputs:
commit: ${{ steps.verify.outputs.commit }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
ref: ${{ inputs.ref }}
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
with:
python-version: '3.14'
- run: python3 -B -m unittest discover -s tests/Interop -p 'test_*.py'
- name: Verify the consumer against pinned Host source
id: verify
shell: bash
env:
GIT_TERMINAL_PROMPT: '0'
GIT_ASKPASS: /usr/bin/false
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_NOSYSTEM: '1'
GIT_ALLOW_PROTOCOL: file:https
run: |
host_sha=$(cat .github/computer-mcp-host.sha)
[[ "$host_sha" =~ ^[0-9a-f]{40}$ && "$host_sha" != 0000000000000000000000000000000000000000 ]]
plugin_sha=$(git rev-parse HEAD)
[[ "$plugin_sha" =~ ^[0-9a-f]{40}$ ]]
host_source="$RUNNER_TEMP/computer-mcp-host"
git init "$host_source"
git -C "$host_source" -c credential.helper= fetch --no-tags --depth=1 \
https://github.com/computer-mcp/computer-mcp.git "$host_sha"
git -C "$host_source" checkout --detach "$host_sha"
test "$(git -C "$host_source" rev-parse HEAD)" = "$host_sha"
sh "scripts/test-interop.sh" "$host_source" "$host_sha" "$RUNNER_TEMP/host-consumer"
printf 'commit=%s\n' "$plugin_sha" >> "$GITHUB_OUTPUT"
- name: Retain consumer evidence
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: cursor-host-consumer-${{ steps.verify.outputs.commit || github.run_id }}
path: |
${{ runner.temp }}/host-consumer/*/receipt.json
${{ runner.temp }}/host-consumer/*/cases.json
${{ runner.temp }}/host-consumer/vendor-stop/archive-validation.log
${{ runner.temp }}/host-consumer/vendor-stop/archive/*.json
${{ runner.temp }}/host-consumer/host-source-export.log
${{ runner.temp }}/host-consumer/plugin-source-export.log
${{ runner.temp }}/host-consumer/package-build.log
${{ runner.temp }}/host-consumer/swift-test.log
${{ runner.temp }}/host-consumer/swift-test.xml
if-no-files-found: ignore
retention-days: 14
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,25 @@ on:
default: false
permissions: {}
jobs:
host-interop:
permissions:
contents: read
uses: ./.github/workflows/host-interop.yml
with:
ref: ${{ inputs.ref }}
release:
needs: host-interop
permissions:
contents: write
actions: read
uses: computer-mcp/github-workflows/.github/workflows/plugin-release.yml@d1235cc8d2d86df99770c30b5a0b64469085e931
uses: computer-mcp/github-workflows/.github/workflows/plugin-release.yml@46a24bd92aed806eeea4aa870e7e402cad956204
with:
require_immutable_release: false
ref: ${{ inputs.ref }}
publish: ${{ inputs.publish }}
build: python3 scripts/build_package.py
build: >-
test "$(git rev-parse HEAD)" = "${{ needs.host-interop.outputs.commit }}"
&& python3 scripts/build_package.py
ci_artifact: cursor-plugin-${commit}-3.13
notify-catalog:
needs: release
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
All notable user-visible changes to the Cursor plugin are documented here.

## Unreleased

## 0.1.0 — 2026-11-30

### Added

- Open or resume Cursor sessions through ACP. Start prompts in the background, follow events, answer permission requests, questions and plans, or cancel the active prompt.
24 changes: 20 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,32 @@

Read the [architecture](docs/Architecture/README.md) and [interface contract](docs/Reference/Interface.md). Keep vendor-specific behavior in this repository and preserve the host manifest/CLITree/MCP boundaries.

CI runs these checks on Python 3.13 and 3.14; run them before opening a pull request:
Run the same package and plugin suite as CI on Python 3.13 or 3.14.
On macOS, set `COMPUTER_MCP_TEST_HOST` to the provisioned fixture for the pinned
Host revision before running this command.

```sh
python3 -m unittest discover -s tests -p 'test_*.py' -v
python3 scripts/build_package.py /new/output/directory
python3 scripts/test_plugin.py /new/output/directory
```

CI also runs `python3 tests/check_runtime_rejection.py` on Python 3.11 and 3.12 to confirm that unsupported interpreters are refused. When changing the native interface, inspect the matching real executable and run `scripts/validate_native.py --executable PATH`. Never use authenticated model calls as ordinary unit tests.
The suite runs the archive's adapter with deterministic ACP and Host channel
peers. It checks CLI binding, MCP metadata, permission choices, native result
translation, cancellation, and cleanup reporting. On macOS, the provisioned
Host also installs the same ZIP and checks a public one-shot ACP call. For
portable package and plugin coverage, run
`python3 scripts/test_plugin.py --plugin-only /new/output/directory`.
CI also runs
`python3 tests/check_runtime_rejection.py` on Python 3.11 and 3.12 to verify that
the packaged entrypoint refuses unsupported interpreters before vendor execution.
When changing the native interface, inspect the matching real executable with
`scripts/validate_native.py --executable PATH`.

Do not commit caches, local credentials or generated runtime state. Publishing a repository or release is a separate explicit action.

Contributions are licensed under this repository's [LICENSE](LICENSE),
FSL-1.1-ALv2.

The [exact-pair interop gate](docs/Reference/Installation.md#deterministic-source-consumer)
checks actual Host installation, authorization, sandbox enforcement, and process
ownership. CI requires it when plugin implementation or the interop contract
changes. Release dry runs and publication require it for the release commit.
4 changes: 0 additions & 4 deletions Examples/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
"acp": {
"enabled": true,
"hostServices": false,
"args": [
"--executable",
"/absolute/path/to/agent"
],
"exposure": "reexport",
"prefix": "",
"allowAnyTool": true
Expand Down
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ vendor behavior needs no host release.
The CLI contribution describes verified non-interactive commands; the native baseline and its
exact version assertion live in `cli-tree.json`. It is deliberately partial: interactive setup,
installation and unsupported administrative flows are not callable tools. The adapter owns
streaming and session and run state. The host owns registration, profile grants, the initial
streaming and session and run state. The host owns registration, provider/caller grants, private containers, the initial
working directory and audit.

## Quick look
Expand All @@ -50,8 +50,8 @@ from `Examples/settings.json`.

## Install

1. Install and authenticate Cursor Agent yourself, and provide Python 3.13 or newer on the
Computer MCP launch `PATH`. The plugin installs neither and never copies credentials.
1. Install Cursor Agent separately and sign in on your computer using Cursor.
Provide Python 3.13 or newer on the Computer MCP launch `PATH`.
2. Build the archive:

```sh
Expand All @@ -61,9 +61,13 @@ from `Examples/settings.json`.
3. Install the ZIP through Computer MCP's plugin UI or the owner CLI. Installation is neither
activation nor a permission grant.
4. Review `Examples/settings.json`, replace its placeholder paths, and configure the plugin
through the same UI or `plugins configure`. The CLI dependency binding selects the executable
for the CLI contribution; the MCP launch `args` supply `--executable` for the adapter. Point
both at the same verified installation.
through the same UI or `plugins configure`. The `cursor-agent` dependency selects the
executable for the CLI and Host-managed ACP contributions.

At enablement, review the provider Project-write request, MCP caller requirements
and sandbox network request. The request covers `api2.cursor.sh` and
`api5.cursor.sh`. The owner can narrow it, and Host policy still applies.
Sandbox execution is the default.

See the [installation guide](docs/Reference/Installation.md) for revisions, configuration
publication and validation.
Expand Down Expand Up @@ -92,8 +96,7 @@ semantics.
## Requirements

- Computer MCP on an arm64 computer.
- Cursor Agent (`agent`), installed and authenticated separately; its version must match
`cli-tree.json`.
- Cursor Agent (`agent`) at the version declared in `cli-tree.json`.
- Python 3.13 or newer.

## Documentation
Expand All @@ -102,11 +105,14 @@ The [documentation index](docs/README.md) links the architecture, the interface,
guide and the [release process](docs/Reference/Release.md). To validate a checkout:

```sh
python3 -m unittest discover -s tests -p 'test_*.py' -v
python3 scripts/test_plugin.py /new/output/directory
python3 scripts/validate_native.py --executable /absolute/path/to/agent
```

Tests use deterministic peers, not a model. Authenticated execution and production activation are
The [source consumer](docs/Reference/Installation.md#deterministic-source-consumer)
takes explicit clean full-SHA host/plugin inputs and exercises all three contributions
with isolated host-owned state. Its native host execution and the final host pin remain
integration acceptance steps. Tests use deterministic peers, not a model. Authenticated execution and production activation are
separate acceptance steps.

## Contributing
Expand Down
8 changes: 8 additions & 0 deletions VERSIONING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Versioning

This plugin adopts the organization's
[versioning policy](https://github.com/computer-mcp/.github/blob/master/VERSIONING.md)
with one exception. Maintainers may replace the attachments of a published
GitHub Release while keeping its signed tag on the original source commit.
Replace the checksums and release receipt with the records for the replacement
archive. The receipt must identify the CI artifacts that produced those bytes.
Loading
Loading