You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: remove every uvx invocation — marketplace is the only path
Anthropic's official install path is the plugin marketplace
(``/plugin install cortex@cortex-plugins``). uvx was never an Anthropic
sanctioned distribution channel — it was an optional convenience that
fragmented our deploy story (PyPI version drift, parallel cache lines,
opaque failure modes when uvx wasn't on PATH). Removing it leaves
exactly one supported path: the marketplace clone runs through
scripts/launcher.py.
Changes
-------
- pyproject.toml: drop ``neuro-cortex-memory`` and ``cortex-hook``
console scripts (only kept ``cortex-doctor`` for local CLI use of
the doctor from a checkout).
- mcp_server/hook_runner.py + tests: deleted (obsolete — hooks now run
via launcher.py per .claude-plugin/plugin.json).
- mcp_server/doctor.py: removed _uvx_available() check and its entry
in CHECKS. Doctor now runs 8 checks instead of 9.
- mcp_server/infrastructure/ap_bridge.py: removed the uvx fallback
in _resolve_command(); removed "uvx" from _extra_allowed_commands.
- mcp_server/infrastructure/mcp_client.py: removed "uvx" and "uv"
from _ALLOWED_COMMANDS.
- README.md: replaced uvx-based doctor invocation with
``python3 -m mcp_server.doctor``.
Defense-in-depth: PEP 706 tar filter
------------------------------------
mcp_server/infrastructure/pipeline_install_release.py:
the tarfile.extract call now passes ``filter="data"`` (PEP 706) so
the extraction is safe by default — no symlinks outside dest, no
special files, no setuid bits — preventing CVE-2007-4559-class
issues when consuming the upstream prebuilt tarball.
Tests
-----
269 tests pass. Two install tests required a try_install_prebuilt
mock now that automatised-pipeline v0.0.2 is live and the GitHub
Releases fast-path actually returns assets (the tests were written
before the release shipped).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments