Skip to main content
Version: v1 (Current)

Connect an AI Client to GxP

The platform MCP server lets an AI client read and manage project data as a signed-in administrator. It offers project discovery, attendees, agenda/check-in information, collections and exports. It is separate from the local DevTools documentation server and the AppUI Storybook server: those help an agent develop code; this server accesses platform records.

Before connecting​

  • Obtain the MCP server URL for your environment. The route is https://YOUR_MCP_HOST/mcp; the host comes from the platform's DOMAIN_MCP configuration. A dashboard, API or portal URL is not interchangeable with it.
  • Use an admin account that can access the intended team's project. The team must have the mcp_access feature in its own base features. This pilot gate does not automatically follow tier-derived features.
  • Confirm the environment has deployed the MCP routes. Source presence alone does not make the server available in every environment.
  • Choose an AI client that supports a remote MCP server with OAuth discovery and an authorization-code flow with PKCE.

Connect and authorize​

  1. Add the environment's MCP URL in your client's remote-server connection settings.
  2. Let the client discover the protected resource and authorization server. The resource host serves /.well-known/oauth-protected-resource; the dashboard authorization server serves its own discovery document.
  3. Complete the platform sign-in and review the connection's requested scopes. The client registration callback must be allowed by the platform. Ask the administrator to investigate rejected registration rather than substituting a different bearer key.
  4. Grant the minimum scope needed for the work. Finish the consent flow and return to the AI client.
  5. Ask the client to list available projects before using a project identifier in another tool.
  6. Test a read on a controlled project, then test an intended write only after confirming the account and granted scopes.

The platform advertises /oauth/authorize, /oauth/token and /oauth/register on the authorization server, using authorization-code and refresh-token grants with S256 PKCE. The MCP endpoint accepts Passport tokens issued to registered MCP clients. Project API keys and attendee portal tokens do not satisfy that authentication contract. Default MCP access-token lifetime is 60 minutes and the refresh window is seven days; environment configuration can change them.

Scopes and project permissions​

OAuth scopeAllows the connection to request
mcp:readProjects, attendees, agenda items, check-in counts, collections, collection entries and existing collection assets
mcp:exportStart exports and retrieve their status/download links
mcp:attendees:writeCreate, update, check in, delete/restore attendees and change their avatars
mcp:collections:writeCreate, update, delete/restore collections and modify their schema
mcp:collection-entries:writeCreate, update and delete/restore collection entries

A scope lets the tool run its authorization checks; it does not grant the admin additional dashboard permissions. Tools resolve the signed-in admin from the token, resolve an accessible project, set its team context, and apply the ordinary policies. Attendee field access and export privacy restrictions remain in force. Providing a guessed project ID cannot expand the connection's access.

To disconnect, use the account profile's Connected Apps controls. Disconnecting revokes that connection's access and refresh token. An expired access token normally needs a client refresh; an intentionally revoked connection needs a new consent flow.

Read and update an attendee​

Start with list_projects, then list_attendee_fields for the selected project. The field list supplies slugs, attendee types, options and write eligibility. Search before creating a person so you can identify an existing record. Pass attendee IDs/UUIDs returned by the tools rather than relying on a display name alone.

These are tool argument objects; an MCP client supplies the protocol handshake and tools/call request around them:

{"project":"test-event","query":"alex@example.com","page":1,"limit":25}

Use that object with search_attendees. If the person should be created and the project exposes these field slugs, use create_attendee:

{"project":"test-event","fields":{"first_name":"Alex","last_name":"Example","contact_email":"alex@example.com"}}

The project's configured unique identifier is required; it is often contact_email, but inspect the field definitions. Creating an attendee with an identifier that already exists is rejected. Password, encrypted, read-only and file fields cannot be set through this tool. Use the avatar tools for profile images.

For an update, supply project, the returned attendee identifier and a fields object containing the intended changes. Fetch the attendee afterward to verify the stored result. An omitted field is not an instruction to erase it. Use check_in_attendee for explicit check-in behavior: checked_in defaults to true, false undoes check-in, and an optional timestamp without an offset is interpreted in project time.

Collections and entries​

Read get_collection before writing entries. It supplies the schema and field slugs. Collection schema definitions use the platform's field type/style configuration; entry data is keyed by the actual field slug.

Create a collection with a name, optional slug/description/status, submission/authentication settings and ordered sections. Use update_collection to add sections or fields and to change existing field/section settings. Removing fields or sections requires the confirmation flow described below.

Use create_collection_entry with project, collection and data; entries default to draft. Publish only when the intended portal should show the entry and the collection/page rules permit it. Update status through update_collection_entry. An existing collection asset ID can populate a supported file field; list_collection_assets discovers usable assets. The MCP tools do not transfer arbitrary files from the client.

list_collection_entries has page-based pagination. Continue through pages when necessary; a single default page does not establish a complete count. Its include_deleted option lists soft-deleted entries, whereas list_collections can include deleted collections alongside active ones.

Deletion, restoration and schema removal​

Deletes, restores and removal of collection fields/sections use two calls:

  1. Call the tool with the intended record arguments and no confirmation_token.
  2. Show the returned preview and consequences to the person.
  3. After they agree, call the same tool with the same intended arguments plus the returned token.
  4. Inspect the result and verify the record state before retrying an uncertain call.

The default token lifetime is ten minutes. Tokens are single-use and bound to the administrator, access token, action and subject. A token for one attendee cannot delete another; a token from one connection cannot authorize another. An expired, consumed or mismatched token is refused. Obtain a fresh preview when needed. Never supply a confirmation token merely because the assistant received it.

Retain the attendee ID from the delete preview/result. search_attendees and get_attendee read active attendees; they do not provide a deleted-attendee browser. A successful delete result reports deleted:true, and the active lookup should no longer return that record. For recovery, call restore_attendee with the retained ID/UUID, review its preview and confirm the second call. The restore tool can resolve deleted attendees directly. After it reports restored:true, use get_attendee to verify the active record.

Attendee, collection and entry deletion is soft deletion with corresponding restore tools. A restoration can still fail if a unique value conflicts with another active record; inspect the reported error rather than deleting a different record to make room.

Exports and avatars​

Call start_export with the selected project and an offered export_type, then retain its export_id. Poll export_status until the export succeeds or fails. A pending acknowledgment means the export is queued. The download URL is returned only when the export has completed and the caller remains authorized.

Attendee exports exclude personal/private fields by default. include_pii and include_private require their corresponding project export permissions. Passwords are excluded and encrypted fields are not decrypted by the MCP export. Keep generated download links within the authorized audience.

For an avatar, set_attendee_avatar accepts a public HTTPS image URL or clear:true. For a local file, request_avatar_upload returns a signed link that the person opens to upload the image themselves. The default upload link lasts 15 minutes, and the default size limit is 5 MiB; the environment can change both. Fetch the attendee after processing to verify the avatar.

Limits and troubleshooting​

Defaults are 60 calls/minute, 30 writes/minute and ten exports/hour per connection. Registration has its own limit. Honor returned retry guidance and check whether a timed-out mutation completed before submitting it again.

SymptomCheck
Connection returns 401Correct MCP host, completed OAuth consent, expiry/refresh, and whether the token belongs to an MCP client
Registration callback is refusedExact callback against the platform's allowed redirect URIs; provide the client type and redacted failure to the administrator
No accessible projectAdmin's project access and the team's own mcp_access feature
Tool needs a scopeConnection consent; reconnect with that scope if the work is authorized
Project/record action deniedDashboard policy, project scope and field/export permission; OAuth scope alone does not grant these
Attendee input rejectedActual field slugs, type/options, required unique identifier and write eligibility
Confirmation refusedSame action/subject/connection, token lifetime and whether it was already consumed
Export remains pendingExport log and processing status; do not repeatedly queue equivalent exports
Tool reports an unexpected failureCapture tool name, environment, time and redacted error for support; keep credentials out of the report

Implementation reference​

Reviewed against routes/mcp.php, config/mcp.php, app/Mcp/GxpServer.php, app/Mcp/Tools/, app/Mcp/Support/McpAccess.php, ConfirmationTokens.php, AttendeeWrites.php, CollectionWrites.php, app/Http/Middleware/Mcp/AuthenticateMcpRequest.php, app/Http/Controllers/Mcp/OAuthMetadataController.php and app/Http/Controllers/Admin/ConnectedAppsController.php and testing/Feature/Mcp/ at experience-portal commit 0cab696769c165d93328253378ad7e51ec7ab62e on 2026-10-13. See the tool reference for the current registered tool names and arguments.