Centrex guide
Use Claude with Genesys Cloud™
A step-by-step Genesys Cloud Claude setup: from nothing to Claude Code reading your org through Centrex, an MCP server for Genesys Cloud, and what happens when you ask it to change something.
What you need
- Node.js 22 or later.
- Claude Code, installed and signed in.
- A Genesys Cloud org, and a user there with the OAuth > Client > Add permission to create an OAuth client. To give that client a role, you must hold the role yourself.
Set it up in four steps
Create an OAuth client in your org
In Genesys Cloud, open Menu > IT and Integrations > OAuth and click Add client. Give it a name, choose Client Credentials under Grant Types, and click Next.
Assign it roles. Centrex can do only what those roles allow, so give it only the roles the work needs: for a first try, roles that can view what you want to read.
Save, and keep the client ID and the client secret. You also need the region domain of your org, such as mypurecloud.ie.
Install Centrex
npm install -g centrexTo run it without installing, put npx -y centrex in place of centrex in the next step.
Add Centrex to Claude Code as an MCP server
In a terminal, in the folder where you work, run this with your region, client ID and client secret:
claude mcp add centrex \ -e GENESYSCLOUD_REGION=mypurecloud.ie \ -e GENESYSCLOUD_OAUTHCLIENT_ID=<client id> \ -e GENESYSCLOUD_OAUTHCLIENT_SECRET=<client secret> \ -- centrex mcpBy default Claude Code adds the server for that project only. To share the setup with a team, the full guide shows a .mcp.json that reads the credentials from your environment instead of writing them in the file.
On native Windows, where centrex is an npm .cmd shim, end the command with -- cmd /c centrex mcp instead.
Check the connection
Start Claude Code in that folder and run /mcp: centrex should be listed as connected. From a shell, claude mcp list shows the same.
Then ask Claude which org it is connected to. It calls the status tool and answers with the org, the region and the token.
First prompts to try
Ask in your own words, in English or Spanish. These only read:
Which org and region am I connected to?
status shows the org, the region, the token and any pending plans.List the queues in my org and how many members each one has.
search finds the operations, describe shows their parameters, execute reads.Which operation lists the members of a queue, and what permissions does it need?
search and describe answer from the catalog, without calling your org.
How a write looks
Ask for a change, for example: Rename the queue Support to Support Tier 1.
- Claude finds the operation and calls plan. plan writes nothing: it reads the queue and shows the name before and after, the permissions the operation needs, and a plan id.
- Claude Code asks for your permission to call apply. That prompt is your approval: read the plan, then allow or refuse that one call.
- apply reads the queue again and refuses if it changed since the plan. If not, it writes, reads again to confirm, and logs the change with the state before and after.
Never allow-list apply
The permission prompt on apply is the only moment a person approves a write. You can allow the read-only tools so Claude Code stops asking for them, but never apply, and never the whole server (mcp__centrex or mcp__centrex__*), which would include it. In your Claude Code settings:
{
"permissions": {
"allow": [
"mcp__centrex__search",
"mcp__centrex__describe",
"mcp__centrex__execute",
"mcp__centrex__plan",
"mcp__centrex__status"
],
"ask": ["mcp__centrex__apply"]
}
}Read-only sessions
For a session that should only read, add CENTREX_READ_ONLY=1 to the command of step 3: plan and apply then refuse every write.
claude mcp add centrex \
-e CENTREX_READ_ONLY=1 \
-e GENESYSCLOUD_REGION=mypurecloud.ie \
-e GENESYSCLOUD_OAUTHCLIENT_ID=<client id> \
-e GENESYSCLOUD_OAUTHCLIENT_SECRET=<client secret> \
-- centrex mcp