From 4fe951459ce0481c056d0f081e2fa92d63bc7f8d Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 4 Nov 2026 09:16:30 +0000 Subject: [PATCH 1/3] Add Eventbrite connection tools CP-9013: an agent can check whether an Organisation is connected to Eventbrite (and test it), choose the Eventbrite organisation when the sign-in has several, and disconnect. Signing in needs a browser, so the tools hand the user the Connect > Eventbrite page_url for that. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01F1a5xodTwsfAtwUgwkAT9S --- makerble-mcp-vercel-README.md | 4 +-- makerble-tools.js | 64 ++++++++++++++++++++++++++++++++++- 2 files changed, 65 insertions(+), 3 deletions(-) diff --git a/makerble-mcp-vercel-README.md b/makerble-mcp-vercel-README.md index 0a245fc..5e4457d 100644 --- a/makerble-mcp-vercel-README.md +++ b/makerble-mcp-vercel-README.md @@ -1,6 +1,6 @@ # Makerble MCP Server — Vercel Deployment -Connects Claude, ChatGPT, and other AI assistants directly to Makerble. Exposes **236 tools** covering the full Makerble API. +Connects Claude, ChatGPT, and other AI assistants directly to Makerble. Exposes **239 tools** covering the full Makerble API. Non-technical users get their personal link from **`/connect`** — no curl, no config files, no tokens to hunt down. @@ -11,7 +11,7 @@ Non-technical users get their personal link from **`/connect`** — no curl, no | File | Purpose | |---|---| | `server.js` | Express HTTP server — routing, auth, /connect page | -| `makerble-tools.js` | All 236 Makerble API tool definitions | +| `makerble-tools.js` | All 239 Makerble API tool definitions | | `package.json` | Dependencies | | `vercel.json` | Vercel routing config | | `.gitignore` | Keeps secrets and node_modules out of git | diff --git a/makerble-tools.js b/makerble-tools.js index dce761e..1231ae4 100644 --- a/makerble-tools.js +++ b/makerble-tools.js @@ -1,6 +1,6 @@ /** * makerble-tools.js - * All 236 Makerble MCP tool definitions. + * All 239 Makerble MCP tool definitions. * Imported by server.js and used by both transports (stdio & HTTP). */ @@ -5348,6 +5348,68 @@ export function buildTools(api) { patch(`/guidance_panels/${encodeURIComponent(key)}`, { guidance_panel }), }, + // ── Eventbrite ──────────────────────────────────────────────────────────── + { + name: "makerble_get_eventbrite_connection", + description: + "See whether an Organisation (Charity) is connected to Eventbrite, the ticketing site, and whether " + + "the connection still works. Makerble's Eventbrite integration brings Eventbrite events, ticket " + + "holders and check-ins into Makerble as Events, Contacts (beneficiaries) and attendance Stories. " + + "Returns status: not_connected, choosing_organisation (signed in, but the Eventbrite sign-in belongs " + + "to several Eventbrite organisations and one must be chosen; see available_organizations and " + + "makerble_choose_eventbrite_organization), active, or reconnect_required (Eventbrite no longer " + + "accepts the sign-in). Also returns the chosen eventbrite_organization, who connected it, " + + "last_checked_at, last_error, and page_url. Set test: true to check the connection with Eventbrite " + + "now (test_succeeded says whether it worked). Signing in to Eventbrite needs a browser, so to connect " + + "or reconnect, give the user page_url: the Connect > Eventbrite page in Makerble, where they press " + + "'Connect Eventbrite'. Only the Organisation's admins can use the Eventbrite tools.", + inputSchema: { + type: "object", + properties: { + charity_id: { type: "number", description: "The Organisation (Charity) ID" }, + test: { type: "boolean", description: "Check the connection with Eventbrite now" }, + }, + required: ["charity_id"], + }, + handler: ({ charity_id, test }) => + test ? post("/eventbrite_connection/test", { charity_id }) : get("/eventbrite_connection", { charity_id }), + }, + + { + name: "makerble_choose_eventbrite_organization", + description: + "Choose which Eventbrite organisation an Organisation's Eventbrite connection uses, when " + + "makerble_get_eventbrite_connection reports status choosing_organisation. The ID must be one of its " + + "available_organizations. Returns the connection, now active.", + inputSchema: { + type: "object", + properties: { + charity_id: { type: "number", description: "The Organisation (Charity) ID" }, + eventbrite_organization_id: { type: "string", description: "An id from available_organizations" }, + }, + required: ["charity_id", "eventbrite_organization_id"], + }, + handler: ({ charity_id, eventbrite_organization_id }) => + patch("/eventbrite_connection", { charity_id, eventbrite_connection: { eventbrite_organization_id } }), + }, + + { + name: "makerble_disconnect_eventbrite", + description: + "Disconnect an Organisation from Eventbrite. Makerble stops bringing in changes from Eventbrite; " + + "Events, Contacts and Stories already brought in stay, with their links to Eventbrite. Reconnecting " + + "needs the user to sign in to Eventbrite again on the page_url page, so confirm with the user first.", + inputSchema: { + type: "object", + properties: { charity_id: { type: "number", description: "The Organisation (Charity) ID" } }, + required: ["charity_id"], + }, + handler: async ({ charity_id }) => { + await del("/eventbrite_connection", { charity_id }); + return { disconnected: true, charity_id }; + }, + }, + // ── Webhooks ────────────────────────────────────────────────────────────── { name: "makerble_list_webhook_endpoints", From 7dfc79d9a34471fdd42815050923de73e289fa74 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 4 Nov 2026 11:34:54 +0000 Subject: [PATCH 2/3] Add Eventbrite sync, settings, events and mapping tools CP-9013 PRs 3-6: sync now, read the sync log, choose what to bring in (Workspace, Event format, Contact type, check-in tracker and Story Category), list and pick Eventbrite events, and read or replace the event and ticket holder field mappings. 239 -> 246 tools. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01F1a5xodTwsfAtwUgwkAT9S --- makerble-mcp-vercel-README.md | 4 +- makerble-tools.js | 155 +++++++++++++++++++++++++++++++++- 2 files changed, 156 insertions(+), 3 deletions(-) diff --git a/makerble-mcp-vercel-README.md b/makerble-mcp-vercel-README.md index 5e4457d..ef6182d 100644 --- a/makerble-mcp-vercel-README.md +++ b/makerble-mcp-vercel-README.md @@ -1,6 +1,6 @@ # Makerble MCP Server — Vercel Deployment -Connects Claude, ChatGPT, and other AI assistants directly to Makerble. Exposes **239 tools** covering the full Makerble API. +Connects Claude, ChatGPT, and other AI assistants directly to Makerble. Exposes **246 tools** covering the full Makerble API. Non-technical users get their personal link from **`/connect`** — no curl, no config files, no tokens to hunt down. @@ -11,7 +11,7 @@ Non-technical users get their personal link from **`/connect`** — no curl, no | File | Purpose | |---|---| | `server.js` | Express HTTP server — routing, auth, /connect page | -| `makerble-tools.js` | All 239 Makerble API tool definitions | +| `makerble-tools.js` | All 246 Makerble API tool definitions | | `package.json` | Dependencies | | `vercel.json` | Vercel routing config | | `.gitignore` | Keeps secrets and node_modules out of git | diff --git a/makerble-tools.js b/makerble-tools.js index 1231ae4..8344259 100644 --- a/makerble-tools.js +++ b/makerble-tools.js @@ -1,6 +1,6 @@ /** * makerble-tools.js - * All 239 Makerble MCP tool definitions. + * All 246 Makerble MCP tool definitions. * Imported by server.js and used by both transports (stdio & HTTP). */ @@ -5410,6 +5410,159 @@ export function buildTools(api) { }, }, + { + name: "makerble_sync_eventbrite_now", + description: + "Bring the latest from an Organisation's Eventbrite account into Makerble now, instead of waiting for the " + + "catch-up every 3 hours (changes normally arrive within seconds by webhook). It runs in the background; " + + "makerble_get_eventbrite_connection shows syncing: true until it finishes and then last_synced_at. Check " + + "makerble_list_eventbrite_sync_log afterwards for what came in.", + inputSchema: { + type: "object", + properties: { charity_id: { type: "number", description: "The Organisation (Charity) ID" } }, + required: ["charity_id"], + }, + handler: ({ charity_id }) => post("/eventbrite_connection/sync", { charity_id }), + }, + + { + name: "makerble_list_eventbrite_sync_log", + description: + "The Eventbrite sync log, newest first, kept 90 days: what Makerble brought in from Eventbrite, updated, " + + "skipped or removed, and why. Each entry has outcome (imported, updated, skipped, removed, needs_review, " + + "error), object_type (event, attendee = ticket holder, check_in, connection), message, the Eventbrite " + + "eventbrite_id and eventbrite_url, and record: the Makerble record it concerns ({type: Contact, Event or " + + "Story, id}). needs_review means a ticket holder's email matched existing Contacts unclearly; the Contacts " + + "are on the Suggested Merges list (makerble_list_suggested_merges, source eventbrite).", + inputSchema: { + type: "object", + properties: { + charity_id: { type: "number", description: "The Organisation (Charity) ID" }, + page: { type: "number" }, + per_page: { type: "number" }, + last_synced_datetime: { type: "string", description: "Only entries after this ISO 8601 time" }, + }, + required: ["charity_id"], + }, + handler: (p) => get("/eventbrite_connection/sync_log", p), + }, + + { + name: "makerble_update_eventbrite_settings", + description: + "Choose what an Organisation brings in from Eventbrite. project_id is the Workspace (Project) new Events " + + "are created in, and event_category_id one of its Event formats (Event Categories; list them with the " + + "Event format tools). import_mode is all_upcoming (every upcoming Eventbrite event, new ones included) " + + "or selected (only events picked with makerble_choose_eventbrite_events). contact_project_id is the " + + "Workspace new Contacts (beneficiaries) from ticket holders go into (leave out to use each Event's " + + "Workspace); beneficiary_category_id their Contact type (Contact form). change_id is the engagement " + + "tracker and story_category_id the Survey (Story Category) used to record Eventbrite check-ins as " + + "attendance Stories. Only send the settings to change. Saving starts a sync.", + inputSchema: { + type: "object", + properties: { + charity_id: { type: "number", description: "The Organisation (Charity) ID" }, + project_id: { type: "number" }, + event_category_id: { type: "number" }, + import_mode: { type: "string", enum: ["all_upcoming", "selected"] }, + contact_project_id: { type: "number" }, + beneficiary_category_id: { type: "number" }, + change_id: { type: "number", description: "An engagement tracker (participation Change) ID" }, + story_category_id: { type: "number", description: "A Survey (Story Category) ID" }, + }, + required: ["charity_id"], + }, + handler: ({ charity_id, ...eventbrite_connection }) => + patch("/eventbrite_connection/settings", { charity_id, eventbrite_connection }), + }, + + { + name: "makerble_list_eventbrite_events", + description: + "List the upcoming events in an Organisation's Eventbrite organisation, to choose which to bring into " + + "Makerble. Each has the Eventbrite id, name, start (local time), status (live, started, ended, canceled, " + + "draft), url, selected (whether it is or would be brought in) and makerble_event_id (the Makerble Event " + + "it came in as, or null).", + inputSchema: { + type: "object", + properties: { charity_id: { type: "number", description: "The Organisation (Charity) ID" } }, + required: ["charity_id"], + }, + handler: ({ charity_id }) => get("/eventbrite_connection/events", { charity_id }), + }, + + { + name: "makerble_choose_eventbrite_events", + description: + "Pick the Eventbrite events to bring into Makerble, by their Eventbrite ids from " + + "makerble_list_eventbrite_events. This switches import_mode to selected, so only these come in (new " + + "Eventbrite events no longer come in automatically). Events already brought in stay.", + inputSchema: { + type: "object", + properties: { + charity_id: { type: "number", description: "The Organisation (Charity) ID" }, + eventbrite_event_ids: { type: "array", items: { type: "string" } }, + }, + required: ["charity_id", "eventbrite_event_ids"], + }, + handler: (p) => put("/eventbrite_connection/events", p), + }, + + { + name: "makerble_get_eventbrite_field_mapping", + description: + "Read which Makerble field each Eventbrite field is copied into. object_type event maps Eventbrite event " + + "fields onto the Makerble Event (and the Event format's custom fields); object_type attendee maps ticket " + + "holder fields and order form question answers (keys answer:) onto the Contact (and the " + + "Contact type's custom fields and Dropdowns). Returns mappings, eventbrite_fields (each with " + + "compatible_makerble_fields) and makerble_fields. Set refresh: true (attendee only) to re-read the " + + "order form questions from Eventbrite first.", + inputSchema: { + type: "object", + properties: { + charity_id: { type: "number", description: "The Organisation (Charity) ID" }, + object_type: { type: "string", enum: ["event", "attendee"] }, + refresh: { type: "boolean" }, + }, + required: ["charity_id", "object_type"], + }, + handler: ({ charity_id, object_type, refresh }) => + refresh && object_type === "attendee" + ? post("/eventbrite_connection/refresh_questions", { charity_id }) + : get(`/eventbrite_connection/mappings/${object_type}`, { charity_id }), + }, + + { + name: "makerble_set_eventbrite_field_mapping", + description: + "Replace an Eventbrite field mapping (read it first with makerble_get_eventbrite_field_mapping). Each " + + "pair copies one eventbrite_field into one makerble_field; only compatible types pair up, a field can be " + + "in only one pair, and paused: true stops copying it for now. Eventbrite fields left out are not copied. " + + "For events Eventbrite's value replaces the Makerble one; for Contacts only blank fields are filled in.", + inputSchema: { + type: "object", + properties: { + charity_id: { type: "number", description: "The Organisation (Charity) ID" }, + object_type: { type: "string", enum: ["event", "attendee"] }, + mappings: { + type: "array", + items: { + type: "object", + properties: { + eventbrite_field: { type: "string" }, + makerble_field: { type: "string" }, + paused: { type: "boolean" }, + }, + required: ["eventbrite_field", "makerble_field"], + }, + }, + }, + required: ["charity_id", "object_type", "mappings"], + }, + handler: ({ charity_id, object_type, mappings }) => + put(`/eventbrite_connection/mappings/${object_type}`, { charity_id, mappings }), + }, + // ── Webhooks ────────────────────────────────────────────────────────────── { name: "makerble_list_webhook_endpoints", From 421c8204bcf8222ee04203ffbb45927de227a4a4 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 4 Nov 2026 15:00:56 +0000 Subject: [PATCH 3/3] Describe the Eventbrite settings with their new names and Workspace rules CP-9013 amends: Contact Bio Form and Event attendance survey, which must be the Workspace's; picked events come in even as drafts. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01F1a5xodTwsfAtwUgwkAT9S --- makerble-tools.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/makerble-tools.js b/makerble-tools.js index d5f8786..6de27dc 100644 --- a/makerble-tools.js +++ b/makerble-tools.js @@ -5597,11 +5597,14 @@ export function buildTools(api) { "Choose what an Organisation brings in from Eventbrite. project_id is the Workspace (Project) new Events " + "are created in, and event_category_id one of its Event formats (Event Categories; list them with the " + "Event format tools). import_mode is all_upcoming (every upcoming Eventbrite event, new ones included) " + - "or selected (only events picked with makerble_choose_eventbrite_events). contact_project_id is the " + + "or selected (only events picked with makerble_choose_eventbrite_events, drafts included). contact_project_id is the " + "Workspace new Contacts (beneficiaries) from ticket holders go into (leave out to use each Event's " + - "Workspace); beneficiary_category_id their Contact type (Contact form). change_id is the engagement " + - "tracker and story_category_id the Survey (Story Category) used to record Eventbrite check-ins as " + - "attendance Stories. Only send the settings to change. Saving starts a sync.", + "Workspace); beneficiary_category_id their Contact Bio Form (Beneficiary Category), which must be one the " + + "Workspace for new Contacts uses for creating Contacts (set in the Workspace's Preferences). change_id is " + + "the engagement tracker and story_category_id the Event attendance survey (Story Category), which must be a " + + "survey running on the Workspace for new Events; together they record Eventbrite check-ins as attendance " + + "Stories. Only send the settings to change. Saving starts a sync. Nothing comes in from Eventbrite until " + + "project_id and event_category_id are set.", inputSchema: { type: "object", properties: { @@ -5610,9 +5613,9 @@ export function buildTools(api) { event_category_id: { type: "number" }, import_mode: { type: "string", enum: ["all_upcoming", "selected"] }, contact_project_id: { type: "number" }, - beneficiary_category_id: { type: "number" }, + beneficiary_category_id: { type: "number", description: "A Contact Bio Form (Beneficiary Category) ID" }, change_id: { type: "number", description: "An engagement tracker (participation Change) ID" }, - story_category_id: { type: "number", description: "A Survey (Story Category) ID" }, + story_category_id: { type: "number", description: "The Event attendance survey (Story Category) ID" }, }, required: ["charity_id"], },