How outboundani/five9-mcp works
five9-mcp is a Cloudflare Worker that exposes Five9 contact-center operations as MCP tools. AI clients authenticate at the Worker, invoke tool dispatch, and receive JSON results backed by Five9 SOAP or New Platform REST APIs. The product also includes browser setup/console pages, stateless OAuth, campaign and agent administration, reporting, and an IVR authoring path with optional speech synthesis. Relationships below follow the excerpts and README; unsampled tool handlers and routes are represented only where documented, so their internal links are omitted.
Main entry points: tools.js Tool catalog and dispatch · index.js HTTP and MCP router · five9rest.js REST client · tts.js Prompt audio synthesis
Components 16
Worker entry
- HTTP and MCP router
src/index.js
Access and setup
- OAuth authorization
src/oauth.js - Configuration
src/config.js - Worker KV config
- Landing and console UI
src/ui.js
Contact center tools
- Tool catalog and dispatch
src/tools.js - Operator instructions
src/about.js
Five9 integrations
- SOAP services
src/five9.js - REST client
src/five9rest.js - REST safety rules
src/rest-rules.js
IVR authoring
- IVR flow composer
src/ivr.js - Prompt audio synthesis
src/tts.js
Other components
- MCP client
- Five9 contact center
- Workers AI
- Optional TTS providers
Connections 19
- MCP client → HTTP and MCP router: sends HTTP
README.md - HTTP and MCP router → OAuth authorization: handles OAuth
src/index.js - HTTP and MCP router → Configuration: loads config
src/index.js - Configuration → Worker KV config: reads and writes
src/config.js - HTTP and MCP router → Landing and console UI: serves pages
src/index.js - HTTP and MCP router → Tool catalog and dispatch: dispatches tools
src/index.js - HTTP and MCP router → Operator instructions: supplies instructions
src/about.js - Tool catalog and dispatch → SOAP services: calls SOAP
src/tools.js - Tool catalog and dispatch → REST client: calls REST
src/tools.js - Tool catalog and dispatch → REST safety rules: checks requests
src/tools.js - REST client → REST safety rules: resolves API base
src/five9rest.js - SOAP services → Five9 contact center: sends SOAP requests
README.md - REST client → Five9 contact center: calls New Platform API
README.md - Tool catalog and dispatch → IVR flow composer: validates and composes
src/tools.js - IVR flow composer → SOAP services: parses Five9 XML
src/ivr.js - Tool catalog and dispatch → Prompt audio synthesis: generates prompt audio
src/tools.js - Prompt audio synthesis → Workers AI: synthesizes speech
src/tts.js - Prompt audio synthesis → Optional TTS providers: supports providers
src/tts.js - Landing and console UI → Tool catalog and dispatch: uses tool metadata
src/ui.js