MCP for DPCalendar
MCP for DPCalendar is a free add-on for MCP for J. It gives an AI app connected to your Joomla site 43 tools for DPCalendar by Digital Peak: calendars, events and recurring series, locations, bookings and tickets, coupons, tax rates, external calendars and booking reports. It works with the free DPCalendar Core and with Digital Peak's paid plugins added on top.
New to MCP for DPCalendar? This page is the reference manual. For an overview of what MCP for DPCalendar does, and the download, see its page on cybersalt.com.
Release history. This page documents version 1.0.4. For what changed in each version, see the changelog.
Requirements. Joomla 5 or 6, PHP 8.2 or newer, MCP for J, and DPCalendar 10 (Core, with or without Digital Peak's paid plugins). Tested with DPCalendar Core 10.12.4 and its 10.12.4 paid plugins. The add-on is released under the GNU GPL v2 or later.
What's in the package
One plugin, System - MCP for DPCalendar (element csmcpforjdpcalendar). It adds its tools to MCP for J and has no admin screen of its own. The tools appear in your AI app the next time it asks MCP for J for its tool list. If DPCalendar isn't installed, each tool says so instead of failing.
Installing
Install MCP for J first and connect your AI app to it. Then pick one of these:
- From inside Joomla (recommended). Open Components → MCP for J → Browse MCP Add-ons and install the DPCalendar add-on. Updates then arrive through System → Update → Extensions.
- From the zip. Download it from the product page and install it in System → Install → Extensions.
First steps
Ask your AI app "What's on next month, and which events are close to capacity?". That's read-only. Then try something small that changes a thing, such as "Feature the garden workshop", and check the result in DPCalendar's own admin.
⤢ Click to enlarge
Permissions
The AI can never do more than the Joomla account it acts for could do in DPCalendar itself. Each tool needs MCP for J's Use permission (reading) or Write permission (changes), and on top of that DPCalendar's own permissions, set in DPCalendar's Options on the Permissions tab or on a calendar's own permissions:
| Tools | The account also needs |
|---|---|
| Every tool | Access Administration Interface on DPCalendar |
| Creating an event, location, coupon, tax rate or external calendar | Create (for an event, on its calendar) |
| Changing one | Edit, or Edit Own for an event or location the account created |
| Publishing, trashing, featuring, or setting publish dates | Edit State |
| Deleting | Delete |
| Bookings, tickets and the booking reports | Admin Booking; changing a booking also needs Edit |
Seeing external-calendar passwords in full (reveal) | Configure ACL & Options (a Super User has it) |
Event actions are checked on the event's own calendar, so a calendar's own permissions count, as they do in DPCalendar. Moving an event to another calendar needs Create there. Events, calendars and external calendars outside the account's view access levels are left out, as in DPCalendar's lists, and an event whose content level the account lacks shows Busy instead of its title.
With Joomla's default permissions, Super Users can use every tool, Administrators every tool except the booking ones (Admin Booking defaults to Super Users), and Managers none. The refusal names what's missing.
⤢ Click to enlarge
The tools
43 tools in 10 groups. Your AI app picks the right one from what you ask.
| Group | Tools | What they do |
|---|---|---|
| Calendars | 2 | List calendars with their event counts, and read one. |
| Events | 8 | List with filters, read one with its venue, hosts and tickets by state, create, update, copy, publish or trash, feature, and delete. Recurring series use an iCal RRULE. |
| Locations | 5 | List, read, create, update and delete venues. |
| Bookings | 4 | List with filters, read one with its tickets, coupon and totals, update its details or state, delete. |
| Tickets | 5 | List, read, check in, undo a check-in, delete. |
| Coupons | 5 | List, read, create, update, delete. |
| Tax rates | 5 | List, read, create, update, delete. |
| External calendars | 5 | List, read, create, update and delete the calendars DPCalendar's plugins pull in (iCal, CSV, Google, Exchange and others). |
| Countries | 1 | DPCalendar's country list with names, for addresses and tax rates. |
| Reports | 3 | A dashboard snapshot, per-event booking summaries, and revenue by currency. |
Events
An event read gives everything about it in one reply: dates, recurrence, calendar, venue, hosts and its tickets counted by state.
⤢ Click to enlarge
Text is cleaned as DPCalendar's own forms clean it. Titles and descriptions go through Joomla's text filter for the account the AI acts for (System → Global Configuration → Text Filters), so script that account couldn't save in DPCalendar is removed. Other text fields lose any HTML tags, colours must be hex values such as 3366CC, and links must start with http:// or https://.
⤢ Click to enlarge
Publishing needs Edit State. Without it, a state or publish date is refused, and a new event is saved unpublished, as DPCalendar would save it.
An event someone has open is left alone. DPCalendar marks an item as checked out while someone has it open in the editor; their Save would overwrite a change made meanwhile. The update tools for events, locations, coupons and tax rates refuse such an item. Pass force_checked_out: true to save anyway.
⤢ Click to enlarge
Copies and deletes. A copy is saved unpublished and doesn't take the original's online meeting with it. Copying needs Edit (or Edit Own) on the original and Create on its calendar. Like DPCalendar's admin, the delete tools for events and locations only delete items already in the trash; trash first with set_dpcalendar_event_state (state -2), which is also the reversible option.
Bookings and tickets
A booking is a checkout: it can hold tickets for several events. A booking read gives its tickets with each attendee, the coupon and the totals. The booking's private link token and the payment gateway's raw data are left out of the reply.
⤢ Click to enlarge
Check-in. check_in_dpcalendar_ticket sets DPCalendar's own Checked in state (9), so the seat stays counted as taken. check_out_dpcalendar_ticket undoes a mistaken check-in.
⤢ Click to enlarge
Booking states are DPCalendar's: 0 inactive, 1 active, 2 tickets reviewed, 3 confirmation, 4 on hold, 5 invited, 6 cancelled, 7 refunded, 8 waiting, 10 partially paid. To cancel a booking use 6, which goes through DPCalendar's cancellation rule. Changing a booking keeps its coupon, and may send DPCalendar's notification emails as its settings say.
Reports
⤢ Click to enlarge
The per-event summary lists who is booked for one event, or the events with the most tickets. Revenue is summed per currency from active bookings.
External calendars and secrets
External calendars are the feeds DPCalendar's plugins pull in. Their settings can hold passwords, keys, tokens and private feed addresses. These come back masked (••••), including the user name, password and query part of a feed address. A Super User can ask for them in full with reveal: true.
⤢ Click to enlarge
Settings sent to update_dpcalendar_extcalendar are merged into the stored ones, so a partial change keeps the rest. A masked value sent back is replaced by the stored value, never saved as the mask. Meeting passwords that online-meeting plugins keep in an event's settings are masked the same way.
What these tools don't do
- No new bookings. Bookings come from DPCalendar's own booking form, which takes payment. The tools read, change, check in and delete them.
- No component settings. DPCalendar's Options and its plugins' settings are changed in Joomla.
- No feed syncing. External calendars are read and edited here; DPCalendar's plugins fetch them.
What's been tested
Version 1.0.4 was tested on Joomla 5.4 and 6.1 with PHP 8.4, each with DPCalendar Core 10.12.4 and then with its 10.12.4 paid plugins (Exchange, Google, iCal, CSV, Zoom, Stripe, Manual payment, Web Services). On each site every tool ran as a Super User on real data: a weekly series, a venue, a coupon, a tax rate, an Exchange external calendar with a password, and bookings with tickets. The permission checks ran on every tool with Super User, Administrator and Manager accounts and with permissions granted one at a time, and the event page was checked on the front end as a visitor.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| No DPCalendar tools in the AI app | Check that MCP for J is installed, System - MCP for DPCalendar is enabled in System → Plugins, and the AI app has refreshed its tool list. |
| A tool says the account lacks a DPCalendar permission | See Permissions. A Super User grants them in DPCalendar's Options, on the Permissions tab, or on the calendar. |
| An event saved by the AI is unpublished | The account has no Edit State permission, so DPCalendar's rule applies: publish it in DPCalendar, or grant Edit State. |
| "is checked out" | Someone has the item open in DPCalendar. Wait for them to close it, check it in from DPCalendar's list, or pass force_checked_out: true. |
| A booking change fails with "Could not instantiate mail function" | DPCalendar sends notification emails when a booking or ticket changes. Fix the site's mail settings in Global Configuration. |
Getting help
Questions and bug reports are welcome through the Cybersalt support form. Please include your Joomla, PHP, DPCalendar, MCP for J and add-on versions, and the tool response that surprised you.
MCP for DPCalendar is developed by Cybersalt Consulting Ltd. and released under the GNU General Public License v2 or later. It is not made or endorsed by Digital Peak.
An event whose content the account can't see shows "Busy" — click anywhere to closeClose ×
One event, with its venue and tickets — click anywhere to closeClose ×
A Manager's event: script removed, saved unpublished — click anywhere to closeClose ×
An event another user has open — click anywhere to closeClose ×
A booking with its tickets and coupon — click anywhere to closeClose ×
A ticket checked in — click anywhere to closeClose ×
The dashboard snapshot — click anywhere to closeClose ×
An external calendar, credentials masked — click anywhere to closeClose ×