Files
bjd-cms-content/install/agent-install-prompt.md
T

2.4 KiB

Universal Install Or Update Prompt

Use this unchanged prompt for a first installation, an update, or a current-version check.

Install or update BJD CMS Content from the newest stable Release at
https://git.justconn.top/gitea-admin/bjd-cms-content.

1. Resolve the newest Release that is neither a draft nor a prerelease. Fix its tag and asset URLs for the rest of this task. Download SHA256SUMS plus only one archive suitable for this operating system, verify that archive once against SHA256SUMS, and stop on a mismatch. Do not install from a branch or repository source archive.
2. Extract the archive to a temporary directory. Run its bundled install/install.sh on POSIX or install/install.ps1 on Windows. Reuse the existing absolute BJD CMS installation prefix when one is already registered. Pass the Python 3 executable already used by the current host when it is available; otherwise let the wrapper detect Python. Treat the installer's single JSON result as authoritative: it already performs the version checks, immutable install or reuse, rollback-safe current-pointer switch, and native MCP smoke test. Do not repeat those checks manually.
3. From that JSON, use python_executable as the local stdio MCP command, plugin_path/scripts/server.py as its only argument, and plugin_path as cwd. Add or update only the bjd-cms-content registration through the host's normal local MCP mechanism. Do not add a token or BJD_CMS_SKILL_ROOT. If local skills are supported, register the complete skill_path directory through the normal local-skill mechanism.
4. If the host provides a normal non-destructive MCP connection test, run it once and require 25 tools. Do not enumerate every tool, set up the CMS connection, or make any CMS request as part of installation.
5. Do not reload, stop, or restart the current host from inside its own process. If activation requires an external reload or restart, report that single action and ask the user to open a new session afterward; installation itself is already complete and does not continue across that restart.

Return only: installed release_version and action, plugin_path and skill_path, archive checksum result, native_smoke result, host registration result, and whether an external reload/new session is required. Preserve unrelated host configuration and any previous version directory. Never request, display, move, or modify a CMS credential during this task.