@vapi-ai/mcp-server 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,6 +18,8 @@ The Vapi [Model Context Protocol](https://modelcontextprotocol.com/) server allo
18
18
  6. Add the following to your `claude_desktop_config.json` file. See [here](https://modelcontextprotocol.io/quickstart/user) for more details.
19
19
  7. Restart the Claude Desktop after editing the config file.
20
20
 
21
+ ### Local Configuration
22
+
21
23
  ```json
22
24
  {
23
25
  "mcpServers": {
@@ -33,7 +35,27 @@ The Vapi [Model Context Protocol](https://modelcontextprotocol.com/) server allo
33
35
  }
34
36
  }
35
37
  }
38
+ ```
39
+
40
+ ### Remote Configuration
36
41
 
42
+ ```json
43
+ {
44
+ "mcpServers": {
45
+ "vapi-mcp": {
46
+ "command": "npx",
47
+ "args": [
48
+ "mcp-remote",
49
+ "https://mcp.vapi.ai/mcp",
50
+ "--header",
51
+ "Authorization: Bearer ${VAPI_TOKEN}"
52
+ ],
53
+ "env": {
54
+ "VAPI_TOKEN": "<your_vapi_token>"
55
+ }
56
+ }
57
+ }
58
+ }
37
59
  ```
38
60
 
39
61
  ### Example Usage with Claude Desktop
@@ -55,9 +77,55 @@ I'd like to speak with my ShopHelper assistant to talk about my recent order. Ca
55
77
  I need to schedule a call with Mary assistant for next Tuesday at 3:00 PM. My phone number is +1555123456.
56
78
  ```
57
79
 
58
- ## Remote SSE Connection
80
+ **Example 3:** Make a call with dynamic variables
81
+
82
+ ```md
83
+ I want to call +1234567890 with my appointment reminder assistant. Use these details:
84
+ - Customer name: Sarah Johnson
85
+ - Appointment date: March 25th
86
+ - Appointment time: 2:30 PM
87
+ - Doctor name: Dr. Smith
88
+ ```
89
+
90
+ ## Using Variable Values in Assistant Prompts
91
+
92
+ The `create_call` action supports passing dynamic variables through `assistantOverrides.variableValues`. These variables can be used in your assistant's prompts using double curly braces: `{{variableName}}`.
59
93
 
60
- To connect to Vapi's MCP server via Server-Sent Events (SSE) Transport:
94
+ ### Example Assistant Prompt with Variables
95
+
96
+ ```
97
+ Hello {{customerName}}, this is a reminder about your appointment on {{appointmentDate}} at {{appointmentTime}} with {{doctorName}}.
98
+ ```
99
+
100
+ ### Default Variables
101
+
102
+ The following variables are automatically available (no need to pass in variableValues):
103
+
104
+ - `{{now}}` - Current date and time (UTC)
105
+ - `{{date}}` - Current date (UTC)
106
+ - `{{time}}` - Current time (UTC)
107
+ - `{{month}}` - Current month (UTC)
108
+ - `{{day}}` - Current day of month (UTC)
109
+ - `{{year}}` - Current year (UTC)
110
+ - `{{customer.number}}` - Customer's phone number
111
+
112
+ For more details on default variables and advanced date/time formatting, see the [official Vapi documentation](https://docs.vapi.ai/assistants/dynamic-variables#default-variables).
113
+
114
+ ## Remote MCP
115
+
116
+ To connect to Vapi's MCP server remotely:
117
+
118
+ ### Streamable HTTP (Recommended)
119
+
120
+ The default and recommended way to connect is via Streamable HTTP Transport:
121
+
122
+ - Connect to `https://mcp.vapi.ai/mcp` from any MCP client using Streamable HTTP Transport
123
+ - Include your Vapi API key as a bearer token in the request headers
124
+ - Example header: `Authorization: Bearer your_vapi_api_key_here`
125
+
126
+ ### SSE (Deprecated)
127
+
128
+ Server-Sent Events (SSE) Transport is still supported but deprecated:
61
129
 
62
130
  - Connect to `https://mcp.vapi.ai/sse` from any MCP client using SSE Transport
63
131
  - Include your Vapi API key as a bearer token in the request headers
@@ -73,6 +141,9 @@ npm install
73
141
 
74
142
  # Build the server
75
143
  npm run build
144
+
145
+ # Use inspector to test the server
146
+ npm run inspector
76
147
  ```
77
148
 
78
149
  Update your `claude_desktop_config.json` to use the local server.
@@ -132,6 +203,7 @@ npm test
132
203
 
133
204
  - [VAPI Remote MCP Server](https://mcp.vapi.ai/)
134
205
  - [VAPI MCP Tool](https://docs.vapi.ai/tools/mcp)
206
+ - [VAPI MCP Server SDK](https://docs.vapi.ai/sdk/mcp-server)
135
207
  - [Model Context Protocol](https://modelcontextprotocol.com/)
136
208
  - [Claude Desktop](https://modelcontextprotocol.io/quickstart/user)
137
209
 
@@ -143,17 +215,25 @@ The Vapi MCP Server provides the following tools for integration:
143
215
 
144
216
  - `list_assistants`: Lists all Vapi assistants
145
217
  - `create_assistant`: Creates a new Vapi assistant
218
+ - `update_assistant`: Updates an existing Vapi assistant
146
219
  - `get_assistant`: Gets a Vapi assistant by ID
147
220
 
148
221
  ### Call Tools
149
222
 
150
223
  - `list_calls`: Lists all Vapi calls
151
- - `create_call`: Creates an outbound call
224
+ - `create_call`: Creates an outbound call with support for:
225
+ - Immediate or scheduled calls
226
+ - Dynamic variable values through `assistantOverrides`
152
227
  - `get_call`: Gets details of a specific call
153
228
 
154
- > **Note:** The `create_call` action supports scheduling calls for immediate execution or for a future time.
229
+ > **Note:** The `create_call` action supports scheduling calls for immediate execution or for a future time. You can also pass dynamic variables using `assistantOverrides.variableValues` to personalize assistant messages.
155
230
 
156
231
  ### Phone Number Tools
157
232
 
158
233
  - `list_phone_numbers`: Lists all Vapi phone numbers
159
234
  - `get_phone_number`: Gets details of a specific phone number
235
+
236
+ ### Vapi Tools
237
+
238
+ - `list_tools`: Lists all Vapi tools
239
+ - `get_tool`: Gets details of a specific tool
@@ -371,27 +371,40 @@ export declare const CallInputSchema: z.ZodObject<{
371
371
  assistantId: z.ZodOptional<z.ZodString>;
372
372
  phoneNumberId: z.ZodOptional<z.ZodString>;
373
373
  customer: z.ZodOptional<z.ZodObject<{
374
- phoneNumber: z.ZodString;
374
+ number: z.ZodString;
375
375
  }, "strip", z.ZodTypeAny, {
376
- phoneNumber: string;
376
+ number: string;
377
377
  }, {
378
- phoneNumber: string;
378
+ number: string;
379
379
  }>>;
380
380
  scheduledAt: z.ZodOptional<z.ZodString>;
381
+ assistantOverrides: z.ZodOptional<z.ZodObject<{
382
+ variableValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
383
+ }, "strip", z.ZodTypeAny, {
384
+ variableValues?: Record<string, any> | undefined;
385
+ }, {
386
+ variableValues?: Record<string, any> | undefined;
387
+ }>>;
381
388
  }, "strip", z.ZodTypeAny, {
382
389
  assistantId?: string | undefined;
383
390
  phoneNumberId?: string | undefined;
384
391
  customer?: {
385
- phoneNumber: string;
392
+ number: string;
386
393
  } | undefined;
387
394
  scheduledAt?: string | undefined;
395
+ assistantOverrides?: {
396
+ variableValues?: Record<string, any> | undefined;
397
+ } | undefined;
388
398
  }, {
389
399
  assistantId?: string | undefined;
390
400
  phoneNumberId?: string | undefined;
391
401
  customer?: {
392
- phoneNumber: string;
402
+ number: string;
393
403
  } | undefined;
394
404
  scheduledAt?: string | undefined;
405
+ assistantOverrides?: {
406
+ variableValues?: Record<string, any> | undefined;
407
+ } | undefined;
395
408
  }>;
396
409
  export declare const CallOutputSchema: z.ZodObject<z.objectUtil.extendShape<{
397
410
  id: z.ZodString;
@@ -403,11 +416,11 @@ export declare const CallOutputSchema: z.ZodObject<z.objectUtil.extendShape<{
403
416
  assistantId: z.ZodOptional<z.ZodString>;
404
417
  phoneNumberId: z.ZodOptional<z.ZodString>;
405
418
  customer: z.ZodOptional<z.ZodObject<{
406
- phoneNumber: z.ZodString;
419
+ number: z.ZodString;
407
420
  }, "strip", z.ZodTypeAny, {
408
- phoneNumber: string;
421
+ number: string;
409
422
  }, {
410
- phoneNumber: string;
423
+ number: string;
411
424
  }>>;
412
425
  scheduledAt: z.ZodOptional<z.ZodString>;
413
426
  }>, "strip", z.ZodTypeAny, {
@@ -418,7 +431,7 @@ export declare const CallOutputSchema: z.ZodObject<z.objectUtil.extendShape<{
418
431
  assistantId?: string | undefined;
419
432
  phoneNumberId?: string | undefined;
420
433
  customer?: {
421
- phoneNumber: string;
434
+ number: string;
422
435
  } | undefined;
423
436
  scheduledAt?: string | undefined;
424
437
  endedReason?: string | undefined;
@@ -430,7 +443,7 @@ export declare const CallOutputSchema: z.ZodObject<z.objectUtil.extendShape<{
430
443
  assistantId?: string | undefined;
431
444
  phoneNumberId?: string | undefined;
432
445
  customer?: {
433
- phoneNumber: string;
446
+ number: string;
434
447
  } | undefined;
435
448
  scheduledAt?: string | undefined;
436
449
  endedReason?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AACrD,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAC/E,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AACzD,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAqC/E,eAAO,MAAM,WAAW;;;CAGvB,CAAC;AAEF,QAAA,MAAM,mBAAmB,wLAiBvB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEpE,eAAO,MAAM,aAAa;cACF,iBAAiB;;CAExC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;CAG/B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;CAMrB,CAAC;AAIX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAIH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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gC1B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW3B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC;AAIH,eAAO,MAAM,yBAAyB;;;;;;EAEpC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUlC,CAAC;AAIH,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;EAM3B,CAAC"}
@@ -233,7 +233,7 @@ export const CallInputSchema = z.object({
233
233
  .describe('ID of the phone number to use for the call'),
234
234
  customer: z
235
235
  .object({
236
- phoneNumber: z.string().describe('Customer phone number'),
236
+ number: z.string().describe('Customer phone number'),
237
237
  })
238
238
  .optional()
239
239
  .describe('Customer information'),
@@ -241,6 +241,15 @@ export const CallInputSchema = z.object({
241
241
  .string()
242
242
  .optional()
243
243
  .describe('ISO datetime string for when the call should be scheduled (e.g. "2025-03-25T22:39:27.771Z")'),
244
+ assistantOverrides: z
245
+ .object({
246
+ variableValues: z
247
+ .record(z.string(), z.any())
248
+ .optional()
249
+ .describe('Key-value pairs for dynamic variables to use in the assistant\'s prompts (e.g. {"name": "Joe", "age": "24"})'),
250
+ })
251
+ .optional()
252
+ .describe('Overrides for the assistant configuration'),
244
253
  });
245
254
  export const CallOutputSchema = BaseResponseSchema.extend({
246
255
  status: z.string(),
@@ -249,7 +258,7 @@ export const CallOutputSchema = BaseResponseSchema.extend({
249
258
  phoneNumberId: z.string().optional(),
250
259
  customer: z
251
260
  .object({
252
- phoneNumber: z.string(),
261
+ number: z.string(),
253
262
  })
254
263
  .optional(),
255
264
  scheduledAt: z.string().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transformers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IA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B,EACrB,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,0BAA0B,EAC3B,MAAM,qBAAqB,CAAC;AAI7B,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,GAChD,IAAI,CAAC,kBAAkB,CA2CzB;AAED,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,GAChD,IAAI,CAAC,kBAAkB,CAiEzB;AAED,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,IAAI,CAAC,SAAS,GACxB,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAqBvC;AA2BD,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GACrC,IAAI,CAAC,aAAa,CAwBpB;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,IAAI,CAAC,IAAI,GACd,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAgBlC;AAID,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,GAAG,GACf,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CASzC;AAID,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,GAAG,GACR,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CASlC"}
@@ -141,7 +141,7 @@ export function transformCallInput(input) {
141
141
  ...(input.customer
142
142
  ? {
143
143
  customer: {
144
- number: input.customer.phoneNumber,
144
+ number: input.customer.number,
145
145
  },
146
146
  }
147
147
  : {}),
@@ -152,6 +152,11 @@ export function transformCallInput(input) {
152
152
  },
153
153
  }
154
154
  : {}),
155
+ ...(input.assistantOverrides
156
+ ? {
157
+ assistantOverrides: input.assistantOverrides,
158
+ }
159
+ : {}),
155
160
  };
156
161
  }
157
162
  export function transformCallOutput(call) {
@@ -165,7 +170,7 @@ export function transformCallOutput(call) {
165
170
  phoneNumberId: call.phoneNumberId,
166
171
  customer: call.customer
167
172
  ? {
168
- phoneNumber: call.customer.number || '',
173
+ number: call.customer.number || '',
169
174
  }
170
175
  : undefined,
171
176
  scheduledAt: call.schedulePlan?.earliestAt,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vapi-ai/mcp-server",
3
3
  "description": "Vapi MCP Server",
4
- "version": "0.0.6",
4
+ "version": "0.0.8",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "type": "module",
@@ -39,6 +39,7 @@
39
39
  "dev": "tsx watch src/index.ts",
40
40
  "dev:stdio-example": "tsx examples/stdio-client.ts",
41
41
  "dev:sse-example": "tsx examples/sse-client.ts",
42
+ "dev:shttp-example": "tsx examples/shttp-client.ts",
42
43
  "inspector": "mcp-inspector",
43
44
  "test": "NODE_OPTIONS=--experimental-vm-modules jest",
44
45
  "test:unit": "NODE_OPTIONS=--experimental-vm-modules jest src/tests/mcp-server-mock.test.ts",
@@ -50,14 +51,14 @@
50
51
  "dist/**/*.d.ts.map"
51
52
  ],
52
53
  "dependencies": {
53
- "@modelcontextprotocol/sdk": "^1.11.0",
54
+ "@modelcontextprotocol/sdk": "^1.12.3",
54
55
  "@vapi-ai/server-sdk": "^0.5.2",
55
56
  "dotenv": "^16.4.7",
56
57
  "zod": "^3.24.2",
57
58
  "zod-to-json-schema": "^3.24.5"
58
59
  },
59
60
  "devDependencies": {
60
- "@modelcontextprotocol/inspector": "^0.8.2",
61
+ "@modelcontextprotocol/inspector": "^0.14.2",
61
62
  "@types/jest": "^29.5.14",
62
63
  "@types/node": "^22.14.0",
63
64
  "jest": "^29.7.0",