File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @vapi-ai/mcp-server" ,
33 "description" : " Vapi MCP Server" ,
4- "version" : " 0.0.3 " ,
4+ "version" : " 0.0.4 " ,
55 "main" : " dist/index.js" ,
6+ "types" : " dist/index.d.ts" ,
67 "type" : " module" ,
78 "author" : {
89 "name" : " Vapi AI" ,
4344 "test:e2e" : " NODE_OPTIONS=--experimental-vm-modules jest src/tests/mcp-server-e2e.test.ts"
4445 },
4546 "files" : [
46- " dist"
47+ " dist" ,
48+ " dist/**/*.d.ts" ,
49+ " dist/**/*.d.ts.map"
4750 ],
4851 "dependencies" : {
4952 "@modelcontextprotocol/sdk" : " ^1.9.0" ,
Original file line number Diff line number Diff line change @@ -210,6 +210,10 @@ export const CallInputSchema = z.object({
210210 } )
211211 . optional ( )
212212 . describe ( 'Customer information' ) ,
213+ scheduledAt : z
214+ . string ( )
215+ . optional ( )
216+ . describe ( 'ISO datetime string for when the call should be scheduled (e.g. "2025-03-25T22:39:27.771Z")' ) ,
213217} ) ;
214218
215219export const CallOutputSchema = BaseResponseSchema . extend ( {
@@ -222,6 +226,7 @@ export const CallOutputSchema = BaseResponseSchema.extend({
222226 phoneNumber : z . string ( ) ,
223227 } )
224228 . optional ( ) ,
229+ scheduledAt : z . string ( ) . optional ( ) ,
225230} ) ;
226231
227232export const GetCallInputSchema = z . object ( {
Original file line number Diff line number Diff line change @@ -115,6 +115,13 @@ export function transformCallInput(
115115 } ,
116116 }
117117 : { } ) ,
118+ ...( input . scheduledAt
119+ ? {
120+ schedulePlan : {
121+ earliestAt : input . scheduledAt ,
122+ } ,
123+ }
124+ : { } ) ,
118125 } ;
119126}
120127
@@ -134,6 +141,7 @@ export function transformCallOutput(
134141 phoneNumber : call . customer . number || '' ,
135142 }
136143 : undefined ,
144+ scheduledAt : call . schedulePlan ?. earliestAt ,
137145 } ;
138146}
139147
Original file line number Diff line number Diff line change 88 "strict" : true ,
99 "esModuleInterop" : true ,
1010 "skipLibCheck" : true ,
11- "forceConsistentCasingInFileNames" : true
11+ "forceConsistentCasingInFileNames" : true ,
12+ "declaration" : true ,
13+ "declarationMap" : true
1214 },
1315 "include" : [" src/**/*" ],
1416 "exclude" : [" node_modules" , " dist" ]
You can’t perform that action at this time.
0 commit comments