JCB 6.2.0 Is Here! - Build Any Component with a Complete API, MCP Integration, and Much More! #1028
Pinned
lemuelvdm
started this conversation in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Joomla Component Builder 6.2.0, 5.2.0, and 4.2.0 are now available as stable releases.
This is an important moment for JCB. We are not only improving the way Joomla components are built; we are opening up how developers, applications, and AI agents can work with them.
The headline feature is full native REST API generation. JCB can now compile a component's API from the Admin Views, fields, and relationships already defined in your project. Choose the API coverage for each linked view, compile, and JCB builds the corresponding API implementation alongside your component.
Because JCB is itself built with JCB, these releases also bring that API capability to JCB itself. Combined with JoomEngine MCP and our MCP-enabled Docker images, this creates a practical route to agent-assisted component development: working with JCB's definitions and invoking its development tools through structured interfaces.
Alongside this comes a new Extrusion workspace, an extensive compiler refactor, stronger automated testing, and important security fixes in generated code.
The API is now part of the build
An API should not require a second implementation of everything your component already knows about its data.
JCB already has the view definitions, field configuration, relationships, and permission settings. This release uses that information to generate a native Joomla REST API with JSON:API responses, rather than leaving you to write and maintain the same structure again by hand.
Enable it where you link your Admin Views
Open your component's Admin Views linking configuration—the area where you connect Admin Views to the Joomla Component. For each linked view, choose its API setting:
Save the configuration and compile your component. The API selection belongs to the component-to-view link, so you decide which linked views participate and whether each needs list access, item access, or both.
The compiler generates the corresponding API files from the view's known structure and includes them in the component manifest for installation. For API-enabled Admin Views, the implementation supports create, read, update, and delete operations, together with relationships, filtering, pagination, and field-level permissions, according to the selected resources and configured access rules.
This release also adds route-generation placeholders,
API_ROUTESandAPI_ROUTES_METHOD, for linked webservices plugins, including supported routes by record ID, GUID, and unique fields. Install and enable your component's corresponding webservices plugin to register those routes with Joomla.Supported Site Views and Custom Admin Views can also provide read-only API resources using their existing Dynamic Gets. These are distinct from the editable resources generated from Admin Views.
The result is an API that belongs to your component and is regenerated with it—not a separate layer you have to keep rebuilding manually.
See the release changelog for the API additions and related fixes.
AI-connected development, without embedding an AI into JCB
The important distinction is how this integration works.
JCB is not tied to an embedded AI model or a single AI provider. JCB supplies the component definitions, native APIs, development commands, and compiler. JoomEngine MCP exposes supported operations to compatible MCP clients and agents.
An authorized agent can work with the available JCB resources to help create fields and Admin Views, connect them to components, maintain project definitions, and request compilation. The developer still directs the work, reviews changes, and controls the resulting extension.
Bring installed component APIs into MCP with one refresh
Open Components → JoomEngine MCP → Operations and click Refresh component API and JCB definitions.
The MCP component automatically inspects the registered APIs of installed, enabled components and synchronizes their supported operations, input schemas, and API bindings into its capabilities catalogue. It also refreshes JCB's available command definitions when JCB and its native command plugin are installed and enabled. Connected MCP clients and AI agents can then discover those operations and the inputs they require through the MCP tools.
This is not limited to JCB's own API—or only to components built with JCB. Other installed components with supported native Joomla APIs can join the same workflow. For a component built with JCB, compile it with the API enabled, install the component and its corresponding webservices plugin, enable the routes, and refresh the definitions in Operations.
Run the refresh again after installing or updating a component or changing its API or command plugins. Existing administrator customizations are preserved, and synchronization requires the relevant component administration permissions. The refresh discovers supported APIs already provided by installed components; it does not create an API for a component that has none.
For remote access, Joomla authentication and permissions remain authoritative. MCP adds explicit grants, reviewed plans, confirmation, and read-back for supported write operations. Connecting an agent does not mean giving it unrestricted access.
The MCP getting-started guide covers installation, permissions, API tokens, and JCB operations. The component API synchronization overview explains how installed APIs and command definitions become available through MCP.
Extrusion: bring existing work into JCB
The new Extrusion workspace provides a dedicated way to recover a useful JCB baseline from existing Joomla components and PHP libraries.
Instead of recreating everything manually, you can use component source folders, field XML, SQL definitions, and PHP class directories to discover and import Powers, fields, Admin Views, Custom Admin Views, and Site Views, where the source structure supports them. PHP classes can be harvested from selected source locations; the workflow is not restricted to one hard-coded libraries directory.
Extrusion includes class matching and dependency linking, reconstruction of database schemas, recovery of field settings and options, and restoration of language strings and compiler placeholders. View discovery also recovers supported templates and Dynamic Get relationships.
You remain in control of the import. Dry runs, per-record change previews, and Create, Update, or Skip choices let you review the proposed changes before applying them. Repeated imports detect unchanged records, preserve existing customizations where supported, and guard against ambiguous matches and conflicting paths.
This is a starting point for continued development—not a claim that every arbitrary extension can be reconstructed perfectly without review. The value is in bringing existing structure and reusable code into JCB so you can develop from that baseline rather than starting again.
A substantially refactored compiler
The compiler work behind this release is much more than a collection of small patches.
Generated-code responsibilities previously concentrated in the legacy Fields, Interpretation, and Infusion helpers have been moved into dedicated compiler services. Shared logic has been consolidated across Joomla versions, while generation that genuinely differs between versions remains version-specific.
The Power parser now uses PHP's native lexer to handle modern syntax, multiline declarations, and complex types more reliably. Power discovery also benefits from component-scoped matching, dependency indexes, and reusable parsing.
These changes give us a clearer foundation for maintaining the compiler and extending capabilities such as API generation and Extrusion. They also make it easier to isolate changes and test their effect on the code JCB produces.
Everyday reliability has received attention too: this release fixes duplicate Compile submissions that could start overlapping builds, skipped search results during batch processing, a Joomla 4 module compilation issue, and CLI repository-resolution errors.
Security improvements in the compiler and generated code
This release addresses six core areas of security fixes:
Extrusion also replaces execution of imported SQL with static parsing and validates source paths without executing imported PHP. Additional hardening corrects generated IIS library-access configuration and adds missing
index.htmlfiles to compiled folders.API permission handling has been improved as well, including support for read-only users and native JSON:API access-denied responses instead of administrator redirects.
Important for existing projects: updating JCB does not rewrite extensions already deployed elsewhere. Recompile, test, and redeploy affected components to carry the generated-code fixes into those installations. Review custom overrides and hand-written code separately.
Start JCB with the complete MCP package in Docker
Our official JoomEngine images can install Joomla, JCB, and the complete MCP package together on a fresh deployment.
Use the
-mcpimage-tag suffix:For the rolling stable MCP-enabled image:
The MCP package includes the MCP component, webservices plugin, and console plugin. Standard image tags, including
latest, do not include MCP.Compatibility: JCB 6.2.0, 5.2.0, and 4.2.0 ship their corresponding JCB APIs. The currently published MCP package requires Joomla 6.1–6.x and PHP 8.3 or later, so the bundled MCP Docker workflow is for the eligible Joomla 6 images—not Joomla 4 or 5. JCB and MCP have separate version numbers.
Local quick start: Joomla + JCB + MCP with persistent storage
With Docker Compose and OpenSSL installed, run the following in Bash. It creates a
jcb-mcpdirectory, generates local credentials without replacing an existing.env, writes the Compose configuration, and starts the services. The browser interface is bound to your own machine, and the database has no published host port.The example email address is for this local development account. Keep
.envprivate and out of version control. The persistent volumes retain the Joomla installation and database across ordinary container restarts.Once the first-start installation has completed and Joomla administrator is available, open Components → JoomEngine MCP → Operations and click Refresh component API and JCB definitions. You can also perform this refresh from the terminal and run the MCP self-test:
For a compatible local MCP host, the stdio server command is:
docker exec -i --user www-data jcb-mcp \ php cli/joomla.php joomla:mcp:serveThis command is intended to be launched by the MCP client, which communicates over stdin and stdout. Do not add
-t. Local console execution is trusted server access; it is not the same security boundary as a remote API-token connection.For remote clients and API forwarding, configure the canonical HTTPS API URL, Joomla API identity, token, and permissions as described in the MCP setup guide. Remote background compilation also needs the documented PHP worker facilities. The client connection guide explains supported connection methods.
On a fresh volume, the image installs its bundled JCB and MCP packages during bootstrap. Changing the image tag on an existing Joomla volume is not an extension-update procedure. Update the installed extensions through Joomla, then refresh the MCP definitions after API or command changes.
For deployment configuration and image-pinning guidance, see the official Docker documentation.
Get the release
Download the package matching your Joomla installation:
The official release archive remains available for release history. Back up your JCB installation and project definitions before upgrading, and validate freshly compiled extensions before deploying them.
Thank you for helping us get here
To everyone who has contributed code, tested a build, reported a difficult bug, improved the documentation, helped another developer, or supported JCB financially: thank you.
A release like this includes a great deal of work that is not immediately visible—untangling compiler responsibilities, checking generated output, refining permission handling, and making the different parts of the ecosystem work together. Your contributions make that work possible.
Our Open Collective supporters help sustain that continued development. We are grateful for your commitment to keeping JCB open and moving forward.
JCB now builds more than the component interface. It builds the API that lets your component participate in a wider development workflow—and gives developers a new way to build with JCB itself.
We look forward to seeing what you build with it.
All reactions