Mode A: connect the MCP server
In Cursor or VS Code, wire up the MCP server so your coding agent can create voice agents, run campaigns, and read call transcripts without leaving the editor.
Mode B: embed the widget
In a v0, Bolt, or Replit generated app, paste one script tag (or a small React snippet) to put a live voice and chat agent on the page.
Mode A: connect the MCP server in Cursor or VS Code
The MCP server exposes 28 tools across voice agents, contacts, campaigns, calls, deals, phone numbers, webhooks, and widgets. Once connected, your editor agent can drive all of them. For example, ask your Cursor agent to build a voice agent straight from a business website URL: SmartAlex scrapes the site, generates an optimized prompt, and deploys a live agent in about 30 to 60 seconds. That is Cursor voice AI with no glue code. Cursor and VS Code both use the local (stdio) transport via the@smartalex/mcp-server npm package.
1
Create an API key
Keys are generated in the Developer Portal at
app.getsmartalex.com/developers under the API Keys tab. This requires the Power Tools add-on ($29/month) and a super-admin role on the workspace. Keys start with sa_live_ (production) or sa_test_ (sandbox), and are shown once at creation.2
Add the config file for your editor
Cursor reads
.cursor/mcp.json; VS Code (GitHub Copilot) reads .vscode/mcp.json. Paste your key in place of the placeholder.3
Reload the editor and start asking
Restart or reload the window so the client picks up the server. Then try: “List my SmartAlex agents”, or “Create a voice agent from https://example.com and assign a phone number.”
On Windows, wrap the launcher: set
"command": "cmd" and "args": ["/c", "npx", "-y", "@smartalex/mcp-server"]. Windsurf and Gemini CLI follow the same stdio pattern (they read ~/.gemini/settings.json and their own config).Mode B: embed the widget in generated apps
v0, Bolt, and Replit generate frontends fast. To put a v0 voice agent (or Bolt voice AI, or a Replit AI phone agent) on the page, embed the SmartAlex widget. It is a single external script from the SmartAlex storage host, so there is no package to install. The widget reads its published config (variant, colours, agent) at load time, so you can restyle it in Widget Studio later without touching the generated code again. Find yourdata-tenant-id in the widget code panel in-app, or fetch it with the MCP tool smartalex_get_widget_install_code.
Which path for which tool
The live programmatic surfaces today are the MCP server and Custom HTTP Tools. A public REST API and a TypeScript SDK are in private beta (coming soon). If a shipped REST API is a hard requirement right now, factor that into your timing. The website widget always embeds via the script tag or React component shown above.
Related
Build with Claude Code
The first-class, agent-native path: connect the hosted MCP server over OAuth in one command.
Add SmartAlex to Lovable
The Lovable-specific guide for embedding voice in a generated app.
MCP getting started
Every supported client, cloud and local, with copy-paste commands.
Install the widget
Platform-by-platform embed guides and every config option.

