Repository navigation
Replies: 7 comments
|
We should work with @cybersalt to look at the plan. |
|
Thanks for the write-up, Brent. This is careful work, and I'd love to see a Proclaim add-on for MCP for J. Yes, let's look at the plan together. A couple of quick answers:
You're also right that the add-on hook is thinly documented. I'll look at the points in your "Constraints in the source" section and open issues for the ones we should fix or write up. |
|
We have an API layer, fully documented, that we have created that we could interface with as well. REST-API |
|
Thanks, Tim. Agreed on reads first and on 2.15.0 as the minimum; Proclaim will pin to it once it's tagged on GitHub (the repo still shows v2.14.0 as latest, so a release link when it's out would help). Small note: the And yes, on the Proclaim side the Joomla 5.4.11 / 6.2.1 change is handled: #2425 (released in 10.7.9) declares |
|
Thanks, Brent, and good catch on the link. I've edited my comment so it points to cybersalt/cs-mcp-for-j#63. Thanks for the REST API link too. Reading it changed one thing in the guide below. An MCP request is a Joomla API request to MCP for J, not to Proclaim. So Joomla's I went through your "Constraints in the source" against the code for 2.15.0:
The add-on guide is here: https://github.com/cybersalt/cs-mcp-for-j/blob/next-release/docs/ADDON-DEVELOPMENT.md (cybersalt/cs-mcp-for-j#69). Corrections welcome. I'll post the 2.15.0 release link here when it's tagged. The Browse MCP Add-ons listing is still on offer whenever your add-on is ready. |
|
MCP for J 2.15.0 is out: https://github.com/cybersalt/cs-mcp-for-j/releases/tag/v2.15.0 It has the three fixes from your notes (cybersalt/cs-mcp-for-j#66, cybersalt/cs-mcp-for-j#67, cybersalt/cs-mcp-for-j#68) and the Access Web Services change (cybersalt/cs-mcp-for-j#63), so it's the version to pin to. You're credited in the changelog. The add-on guide is now on main: https://github.com/cybersalt/cs-mcp-for-j/blob/main/docs/ADDON-DEVELOPMENT.md I'm going to start working on the add-on for Proclaim, and I hope to have it ready on Monday. Thanks again for the careful review, Brent. |
|
Brent, the Proclaim add-on is ready: MCP for Proclaim 1.0.0.
It follows your write-up closely. Every tool checks Proclaim's own permissions (the section rules, Edit Own for messages, campus access levels) and saves through Proclaim's admin models with the same rules as your REST API: unpublished and marked for review without Edit State, It needs MCP for J 2.15.0. In the end I covered all of Proclaim rather than reads first, 158 tools, including scripture search, so "sermons on Romans 8" works. Adding While building it I noticed a few things in Proclaim itself. I've emailed you the list, and I'm opening issues for them here today. The security-related ones I'll send through GitHub's private vulnerability reporting instead. Thanks again for the careful plan. It made this much easier. |
Uh oh!
There was an error while loading. Please reload this page.
This is research into letting AI assistants (Claude, ChatGPT, Copilot and others) work with Proclaim content through CS MCP for J, Cybersalt's free MCP server for Joomla. The findings come from reading the source of its v2.14.0 package and Proclaim's own code. Nothing is built yet. I'm posting it here so we can settle the open decisions before scoping issues.
Where things stand
It's feasible, and CS MCP for J was built for this. It has a hook that lets other extensions register their own MCP tools, and Cybersalt's own add-ons use it. A Proclaim add-on would be one small system plugin plus five or six tool classes.
The real work is security. CS MCP checks only its own "Use MCP endpoint" and "Write through MCP endpoint" permissions. Whether a user may see or edit a given Proclaim item is left entirely to the add-on.
How CS MCP for J works
POST /api/index.php/v1/mcp. Clients sign in with a Joomla API token, or with OAuth 2.1 when the site switches it on.?categories=, to scope a session;The contract an add-on implements
onCsMcpRegisterTools, then call$event->getRegistry()->register($tool)for each tool. The hook dates from 1.0.0 (April 2026); annotations were added in 2.1.0.ToolInterface:useorwrite;execute(array $arguments, User $actor): ToolResult.AbstractTool: extending it adds error sanitising and helpers.getModel()loads another component's admin model with its form paths registered, which the API app needs.saveAdminModel()reports a save's real outcome.Constraints in the source (not in their README)
list_,get_,read_,check_,validate_,fetch_. A tool namedsearch_proclaim_messageswould count as a write, and vanish in read-only mode.list_proclaim_messages, with the categoryproclaim.What Proclaim already has
CwmlocationHelper::applySecurityFilter()has no administrator-only guard. The REST API already reads through these models:SermonsController::getModel()mapssermons→Cwmmessages. Read tools built on them inherit Proclaim's visibility rules.fieldsToRenderListshow what's safe to expose. The Servers view, for one, leaves out the stored API credentials.ScriptureHelper::parseReference()parses the text.CwmsermonsModelfilters byfilter.bookthrough#__bsms_study_scriptures.CwmmessagesModelhas no scripture filter yet.AbstractWritableController. So MCP write tools must log their own changes.Proposed work
Phase 1: read-only
The plugin: a new
plg_system_proclaimmcp(name open), inert unless CS MCP is installed at a minimum version. One listener, which catches everything.Five or six tools in the category
proclaim:Results are paged with a capped limit, as compact JSON with ids and site URLs. Leave out comments (visitor-written text is the easiest prompt-injection channel), server settings and analytics.
A Proclaim read check in every tool (decision 2), followed by reads through the admin models.
Scripture filtering in the admin messages model.
Separation: query and permission logic in plain Proclaim classes. The classes that extend Cybersalt's stay thin, in the plugin folder.
Packaging: the steps the REST API missed (plg_webservices_proclaim is never installed — REST API unreachable on all package installs #1309, API controllers and JSON:API views are never deployed to the api application #1310, api_access has no UI — REST API cannot be enabled on any install #1328):
build/pkg_proclaim.xml, and the install queue inproclaim.script.php;cwm-build.config.json;PLG_SYSTEM_PROCLAIMMCP_*language files.Tests:
A live check on a dev site with CS MCP installed, as a Super User and as a restricted user.
A wiki page: setup, the permissions required, Tool access, and exactly what's exposed.
Phase 2: writes
core.create,core.editorcore.edit.own, andcore.edit.stateoncom_proclaim.message.Open decisions
core.manageoncom_proclaim, meaning anyone who can open Proclaim's back end may read it over MCP? Or a Proclaim-declaredcore.api("Access Web Services"), the action Joomla 5.4.11 and 6.2.1 added?Risks
ApiDispatcher::checkAccess()now requirescore.apion the component unless a route is marked public.v1/mcproute isn't marked public, and itsaccess.xmldoesn't declarecore.api.cybersalt/cs-mcp-for-j#63, still open), and no release fixes it yet.?categories=proclaim.Sources
All reactions