@joomengine/mcp lets an agent build and test Joomla extensions in JoomEngine Playground. The server supplies the JoomEngine Skills workflows, operates the active Joomla site and development tools, and delivers compiled installers and complete site archives.
| Workspace | Connection | Lifecycle |
|---|---|---|
| Agent's own cloud browser | workspace_open launches an isolated Chromium instance on the MCP host |
The agent selects a deployment and exports wanted work before closing. |
| Client's browser | workspace_attach connects to the designated running owner in Chromium or Firefox |
The client and agent share the same live files and database. Detach leaves the site running. |
| JoomEngine Desktop | workspace_attach connects to the application's designated webview |
The desktop profile retains its site. Browser and desktop setup |
Use Node.js 22.16 or newer. In the directory where you run your MCP client, install the server and the Chromium build that matches its Playwright dependency. The browser installation is needed when the agent launches its own Playground. On Linux, add --with-deps to install any missing system libraries.
npm install @joomengine/mcp
npx --no-install playwright install chromium
npx --no-install joomengine-playground-mcp --helpFor a client that supports mcpServers, the following configuration starts the published server over stdio:
{
"mcpServers": {
"joomengine": {
"command": "npx",
"args": ["--yes", "@joomengine/mcp"]
}
}
}A global installation with npm install --global @joomengine/mcp also exposes joomengine-playground-mcp on PATH. Use the client's environment settings for JOOMENGINE_BROWSER_ENDPOINT to attach to an existing browser or desktop and JOOMENGINE_ARTIFACT_DIR to exchange files. npm package
git clone https://github.com/joomengine/mcp.git
cd mcp
npm ci
npm run skills
npm run build
npx --no-install playwright install chromium
mkdir -p artifacts
export JOOMENGINE_ARTIFACT_DIR="$PWD/artifacts"
node dist/cli.js- Read
joomengine://skills/SKILL.mdand the request-to-extension workflow, or select a build prompt through MCP. Tool-only clients can useskills_listandskills_readfor the same guidance. Skills, supporting examples and tools are available offline in the package. Each build records the exact upstream revision inskills/manifest.json. - Call
deployment_catalogto inspect the available recipes and Joomla, JCB, and PHP releases. Callworkspace_openwith{"deployId":"jcb-mcp"}to start Joomla with JCB and the native MCP. Use{"deployId":"blank"}for Joomla only. Useworkspace_attachwhen you want an existing site. Inspect the returned workspace identity before editing. - Discover the site's actions with
native_toolsand usenative_callwith the returned schemas. The maintained TypeScript implementation exposes Joomla Web Services viajoomla_toolsandjoomla_call. The optional Composer bridge connects to its configured remote site. The site controls its grants and write confirmations. Joomla connections - Author native JCB records, compile, install the resulting package, exercise its administrator and site pages, and verify any generated API. Browser tools can inspect and operate Joomla forms. Editor, database, PHP debugger, and mail tools operate on that workspace. Compilation and verification
- Save the installer and a complete site archive to the artifact directory, then restore the archive in a fresh workspace and read back the expected data. Wait for the result of each install, compile or restore before starting the next mutation. For a client with a short tool-call timeout, wrap a long-running tool in
operation_startand polloperation_statuson the same MCP connection. For example, start{"tool":"jcb_compile","arguments":{"componentId":1,"joomlaMajor":6}}with the actual component ID returned byjcb_list_components. If a start response is lost, calloperation_statuswithout an ID to find the existing operation. Artifact transfer
| Variable | Purpose |
|---|---|
JOOMENGINE_CHROMIUM_PATH |
Use an existing compatible Chromium executable for an agent-owned browser. |
JOOMENGINE_HEADED=1 |
Show the agent-owned Chromium window on a host with a display. |
JOOMENGINE_BROWSER_ENDPOINT |
Enable attachment to a specific loopback browser or desktop debugging endpoint. |
JOOMENGINE_PLAYGROUND_URL |
Select a trusted alternative Playground root. The default is https://playground.joomengine.org/. |
JOOMENGINE_ARTIFACT_DIR |
Existing host directory for binary import and export. |
JOOMENGINE_COMPOSER_SITE |
Enable the existing Composer client's stdio bridge for this configured site alias. |
JOOMENGINE_MCP_COMPOSER_BIN |
Absolute path to the Composer launcher when it is outside PATH. |
JOOMENGINE_MCP_TOKEN |
Bearer credential for the optional Streamable HTTP listener. |
For a single operator using a Streamable HTTP client, set JOOMENGINE_MCP_TOKEN and start node dist/cli.js --http --port 8787. Connect to http://127.0.0.1:8787/mcp with the matching Bearer header. A cloud agent can run the server and browser together in its own environment. Each MCP session has its own active workspace. Runtime handles, artifact IDs, and client-browser attachments belong to the session that created them. Keep the debug endpoint private to the machine running the browser.
npm run skills
npm run build
npm test
node test/cloud-live.mjs blank
node test/cloud-live.mjs jcb-mcp
node test/jcb-live.mjs
npm packThe live checks use the hosted Playground and need network access. Prepack resolves the current canonical Skills revision and includes its full distribution and license. The Joomla providers retain their upstream licenses and release cycles. Playground · JoomEngine Desktop · JoomEngine Skills
Run npm version patch --no-git-tag-version (or choose the intended minor or major increment) and merge package.json and package-lock.json into main. The Publish npm release workflow builds and tests the MCP, packages the current Skills revision and installs the tarball as a consumer. It records the source tag and exact tarball in a GitHub release, publishes to public npm with provenance, and verifies the registry integrity before making the GitHub release public. Stable releases use latest and prereleases use next. To resume the current version, run the same workflow from main. A retry uses the saved release tarball.
Configure npm trusted publishing for GitHub organization joomengine, repository mcp, workflow publish-release.yml, and environment release. For the first publication, the workflow can also use the NPM_TOKEN secret in the GitHub release environment with permission to publish under @joomengine. npm trusted publishing