Skip to main content

Connect your AI with MCP

The @upon-ai/mcp-server package connects MCP-compatible AI clients to the UponAI public API. Requires Node.js 22.14 or later. Licensed under MIT by UponAI.

Configure your MCP client​

Add this entry to your client's MCP server configuration. Replace the token and workspace ID with your own values. Use the client's secret store when available; do not commit credentials to source control.

{
"mcpServers": {
"uponai": {
"command": "npx",
"args": ["-y", "@upon-ai/mcp-server@0.1.8"],
"env": {
"UPONAI_API_KEY": "YOUR_CUSTOMER_API_TOKEN",
"UPONAI_WORKSPACE_IDS": "123"
}
}
}
}

Restart or reconnect the MCP client, then ask it to list agents in your configured workspace. The server runs locally over stdio; no hosted MCP URL is required.

Find your workspace ID using GET /api/v1/workspaces, the SDK's client.listWorkspaces(), or the MCP workspace-discovery tool. Without UPONAI_WORKSPACE_IDS, only discovery is enabled. For multiple workspaces, use an explicit comma-separated list such as 123,456.

Available tools​

Workspace discovery plus 36 curated read tools cover agents, LLMs, conversation flows, chats, calls, knowledge bases, voices, concurrency, voice simulations, environment tags, and integration connections (37 tools by default). Responses contain limited summaries and exclude secrets, full transcripts, recordings, and raw agent configuration. API authorization still applies to every request.

Write tools are disabled by default. Advanced operators can explicitly enable createPhoneCall, endLiveCall, rerunCallAnalysis, estimateVoiceSimulationSession, launchVoiceSimulationSession, cancelVoiceSimulationSession, stopVoiceSimulationImprovementRun, or pauseVoiceSimulationSchedule, setAgentEnvironmentTagVersion, or setChatAgentEnvironmentTagVersion through UPONAI_MCP_WRITE_OPERATIONS. Each write also requires confirm: true and an allowed workspace. Configure your AI client's approval controls before enabling writes, which may incur charges or affect live calls.

Simulation launch also requires an accepted surcharge limit, selected scenarios and an idempotency key. See the voice simulation workflow for enablement, budget approval and the boundaries of the summary tools.

Optional self-hosted HTTP transport​

For an operator-managed deployment, the package also supports Streamable HTTP with separate MCP authentication. This is a single-principal deployment; npm installation does not create a hosted service or delegated customer login. See the package README for listener, proxy, and credential configuration.

Package on npm · Source and transport setup

Webhook settings​

Version 0.1.3 adds optional updateAgentWebhookSettings and updateChatAgentWebhookSettings writes. Each requires explicit enablement through UPONAI_MCP_WRITE_OPERATIONS, an allowed workspace and confirm: true. Inputs are limited to the agent ID, optional version, customer destination and event selections. Reads expose event selections and webhook_configured, while omitting receiving URLs and authentication secrets. See the webhook workflow for persistence, version publication and readback behavior.

Version 0.1.4 updates the reviewed contract and pinned SDK for live call monitoring. Monitoring tickets, raw transcripts and audio streams are not exposed as MCP tools; use the SDK session method and WebSocket interface in your application. The existing curated tool list is unchanged.

Version 0.1.5 adds conversation-flow continuation: listConversationFlows returns items, has_more, and, when another page is available, pagination_key. Pass that cursor as paginationKey on the next call. Workspace isolation and the output allowlist apply to every page.

Version 0.1.6 adds environment-tag reads and four integration reads: listIntegrationProviders, listIntegrations, getIntegration, and listIntegrationUsages. These return selected metadata without credentials or CRM mappings. Integration mutations remain available through the API and SDK, outside the MCP tool catalog.

Environment-tag writes only move an existing tag to a published version or unassign it with version: null; they preserve variable values. Tag creation, deletion and variable replacement remain SDK/API operations. Moving a tag does not change fixed phone-number version assignments. See environment tags.

Agent language selection​

The optional updateAgentLanguages and updateChatAgentLanguages tools set one locale or an ordered array, for example language: ["es-ES", "en-US"]. Enable the desired tool in UPONAI_MCP_WRITE_OPERATIONS; provide workspaceId, agentId, the editable version, and confirm: true. The first locale is the voice pronunciation fallback. These tools preserve the voice and model, reject empty or duplicate selections, and do not publish the draft. Both LLM and conversation-flow agents are supported. Read tools retain language arrays in their safe summaries.

Search documentation

Type to filter pages. Use ↑ ↓ to choose, then Enter to open.

0 matching pages
AI questions are sent only when you select Ask AI or press Enter on it. Don’t include API keys or customer data.