@vapi-network/mcp 0.9.0 → 0.9.4
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 +1 -1
- package/dist/actions/call.d.ts +56 -10
- package/dist/actions/register.d.ts +30 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1335 -873
- package/dist/index.js.map +3 -3
- package/dist/server.d.ts +7 -1
- package/dist/tools/call.d.ts +13 -3
- package/dist/tools/tasks.d.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ One entry point, `@vapi-network/mcp`, exporting `createVapiServer`,
|
|
|
45
45
|
| Name | What it is | Since |
|
|
46
46
|
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------- |
|
|
47
47
|
| `AgentEvent` | type AgentEvent = \| { type: "step"; n: number } \| { type: "tool"; name: string; summary: string } \| { type: "paid"; ref: string; amountUsd: number; network: string } \| { type: "declined"; ref: string; reason: string } \| { type: "stopped"; reason: "finished"... | 0.5.0 or earlier |
|
|
48
|
-
| `CallToolInput` | type CallToolInput = { id?: string; url?: string; method?: string; endpoint?: string; body?: unknown; maxPriceUsd?: number \| string; network?: string; expectedPayTo?: string; contentType?: string; }
|
|
48
|
+
| `CallToolInput` | type CallToolInput = { id?: string; url?: string; method?: string; endpoint?: string; body?: unknown; maxPriceUsd?: number \| string; network?: string; expectedPayTo?: string; contentType?: string; timeoutSeconds?: number; } | 0.5.0 or earlier |
|
|
49
49
|
| `CallToolResult` | type CallToolResult = { status: number; body: unknown; verification?: ListingVerification; outcome?: "signed_in"; payment: null \| { network: string; amountAtomic: string; amountUsd: string; asset: string; payTo: string; settlement: unknown \| null; proof: st... | 0.5.0 or earlier |
|
|
50
50
|
| `CallReadInput` | type CallReadInput = { url: string } | 0.8.0 |
|
|
51
51
|
| `CallReadOutput` | type CallReadOutput = { status: number; contentType: string \| null; body: unknown } | 0.8.0 |
|
package/dist/actions/call.d.ts
CHANGED
|
@@ -80,13 +80,35 @@ export declare const inspectToolResultSchema: z.ZodObject<{
|
|
|
80
80
|
count: z.ZodNumber;
|
|
81
81
|
}, z.core.$loose>>>;
|
|
82
82
|
}, z.core.$loose>>;
|
|
83
|
-
payment: z.ZodNullable<z.ZodObject<{
|
|
83
|
+
payment: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
84
84
|
scheme: z.ZodLiteral<"exact">;
|
|
85
85
|
network: z.ZodString;
|
|
86
86
|
asset: z.ZodString;
|
|
87
87
|
payTo: z.ZodString;
|
|
88
|
-
checkedAt: z.
|
|
89
|
-
}, z.core.$
|
|
88
|
+
checkedAt: z.ZodISODateTime;
|
|
89
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
90
|
+
scheme: z.ZodLiteral<"exact">;
|
|
91
|
+
network: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d">]>;
|
|
92
|
+
asset: z.ZodString;
|
|
93
|
+
payTo: z.ZodString;
|
|
94
|
+
checkedAt: z.ZodISODateTime;
|
|
95
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
96
|
+
protocol: z.ZodLiteral<"mpp">;
|
|
97
|
+
intent: z.ZodNullable<z.ZodEnum<{
|
|
98
|
+
charge: "charge";
|
|
99
|
+
authorize: "authorize";
|
|
100
|
+
subscription: "subscription";
|
|
101
|
+
}>>;
|
|
102
|
+
method: z.ZodNullable<z.ZodString>;
|
|
103
|
+
checkedAt: z.ZodISODateTime;
|
|
104
|
+
network: z.ZodOptional<z.ZodNever>;
|
|
105
|
+
payTo: z.ZodOptional<z.ZodNever>;
|
|
106
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
107
|
+
protocol: z.ZodString;
|
|
108
|
+
checkedAt: z.ZodISODateTime;
|
|
109
|
+
network: z.ZodOptional<z.ZodNever>;
|
|
110
|
+
payTo: z.ZodOptional<z.ZodNever>;
|
|
111
|
+
}, z.core.$loose>]>>;
|
|
90
112
|
}, z.core.$strip>;
|
|
91
113
|
export declare const callSearchInputSchema: z.ZodObject<{
|
|
92
114
|
query: z.ZodOptional<z.ZodString>;
|
|
@@ -114,6 +136,7 @@ export declare const callPayInputSchema: z.ZodObject<{
|
|
|
114
136
|
network: z.ZodOptional<z.ZodString>;
|
|
115
137
|
expectedPayTo: z.ZodOptional<z.ZodString>;
|
|
116
138
|
maxPriceUsd: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
139
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
117
140
|
wallet: z.ZodOptional<z.ZodString>;
|
|
118
141
|
}, z.core.$strip>;
|
|
119
142
|
export declare const callSearch: import("./define.js").Action<{
|
|
@@ -126,6 +149,9 @@ export declare const callSearch: import("./define.js").Action<{
|
|
|
126
149
|
}, {
|
|
127
150
|
[x: string]: unknown;
|
|
128
151
|
protocol: "vapi.marketplace.discovery/1";
|
|
152
|
+
nextCursor: string | null;
|
|
153
|
+
unavailableKinds: ("api" | "service_offer" | "open_request")[];
|
|
154
|
+
rankingVersion: "marketplace-ranking-v1";
|
|
129
155
|
items: ({
|
|
130
156
|
[x: string]: unknown;
|
|
131
157
|
kind: "api";
|
|
@@ -147,7 +173,7 @@ export declare const callSearch: import("./define.js").Action<{
|
|
|
147
173
|
summary: string;
|
|
148
174
|
badges: {
|
|
149
175
|
[x: string]: unknown;
|
|
150
|
-
code: "partner" | "live_x402" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor";
|
|
176
|
+
code: "partner" | "live_x402" | "mpp" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor" | "unverified";
|
|
151
177
|
label: string;
|
|
152
178
|
}[];
|
|
153
179
|
facts: {
|
|
@@ -211,7 +237,7 @@ export declare const callSearch: import("./define.js").Action<{
|
|
|
211
237
|
summary: string;
|
|
212
238
|
badges: {
|
|
213
239
|
[x: string]: unknown;
|
|
214
|
-
code: "partner" | "live_x402" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor";
|
|
240
|
+
code: "partner" | "live_x402" | "mpp" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor" | "unverified";
|
|
215
241
|
label: string;
|
|
216
242
|
}[];
|
|
217
243
|
facts: {
|
|
@@ -267,7 +293,7 @@ export declare const callSearch: import("./define.js").Action<{
|
|
|
267
293
|
summary: string;
|
|
268
294
|
badges: {
|
|
269
295
|
[x: string]: unknown;
|
|
270
|
-
code: "partner" | "live_x402" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor";
|
|
296
|
+
code: "partner" | "live_x402" | "mpp" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor" | "unverified";
|
|
271
297
|
label: string;
|
|
272
298
|
}[];
|
|
273
299
|
facts: {
|
|
@@ -323,7 +349,7 @@ export declare const callSearch: import("./define.js").Action<{
|
|
|
323
349
|
summary: string;
|
|
324
350
|
badges: {
|
|
325
351
|
[x: string]: unknown;
|
|
326
|
-
code: "partner" | "live_x402" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor";
|
|
352
|
+
code: "partner" | "live_x402" | "mpp" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor" | "unverified";
|
|
327
353
|
label: string;
|
|
328
354
|
}[];
|
|
329
355
|
facts: {
|
|
@@ -364,9 +390,6 @@ export declare const callSearch: import("./define.js").Action<{
|
|
|
364
390
|
} | undefined;
|
|
365
391
|
} | undefined;
|
|
366
392
|
})[];
|
|
367
|
-
nextCursor: string | null;
|
|
368
|
-
unavailableKinds: ("api" | "service_offer" | "open_request")[];
|
|
369
|
-
rankingVersion: "marketplace-ranking-v1";
|
|
370
393
|
}>;
|
|
371
394
|
export declare const callInspect: import("./define.js").Action<{
|
|
372
395
|
id: string;
|
|
@@ -379,11 +402,33 @@ export declare const callInspect: import("./define.js").Action<{
|
|
|
379
402
|
description: string;
|
|
380
403
|
verification: "none" | "requested" | "verified";
|
|
381
404
|
payment: {
|
|
405
|
+
[x: string]: unknown;
|
|
382
406
|
scheme: "exact";
|
|
383
407
|
network: string;
|
|
384
408
|
asset: string;
|
|
385
409
|
payTo: string;
|
|
386
410
|
checkedAt: string;
|
|
411
|
+
} | {
|
|
412
|
+
[x: string]: unknown;
|
|
413
|
+
scheme: "exact";
|
|
414
|
+
network: string;
|
|
415
|
+
asset: string;
|
|
416
|
+
payTo: string;
|
|
417
|
+
checkedAt: string;
|
|
418
|
+
} | {
|
|
419
|
+
[x: string]: unknown;
|
|
420
|
+
protocol: "mpp";
|
|
421
|
+
intent: "charge" | "authorize" | "subscription" | null;
|
|
422
|
+
method: string | null;
|
|
423
|
+
checkedAt: string;
|
|
424
|
+
network?: undefined;
|
|
425
|
+
payTo?: undefined;
|
|
426
|
+
} | {
|
|
427
|
+
[x: string]: unknown;
|
|
428
|
+
protocol: string;
|
|
429
|
+
checkedAt: string;
|
|
430
|
+
network?: undefined;
|
|
431
|
+
payTo?: undefined;
|
|
387
432
|
} | null;
|
|
388
433
|
operationId?: string | undefined;
|
|
389
434
|
requestContentType?: string | undefined;
|
|
@@ -430,6 +475,7 @@ export declare const callPay: import("./define.js").Action<{
|
|
|
430
475
|
network?: string | undefined;
|
|
431
476
|
expectedPayTo?: string | undefined;
|
|
432
477
|
maxPriceUsd?: string | number | undefined;
|
|
478
|
+
timeoutSeconds?: number | undefined;
|
|
433
479
|
wallet?: string | undefined;
|
|
434
480
|
}, {
|
|
435
481
|
wallet: string;
|
|
@@ -17,6 +17,9 @@ export declare const actions: readonly [Action<{
|
|
|
17
17
|
}, {
|
|
18
18
|
[x: string]: unknown;
|
|
19
19
|
protocol: "vapi.marketplace.discovery/1";
|
|
20
|
+
nextCursor: string | null;
|
|
21
|
+
unavailableKinds: ("api" | "service_offer" | "open_request")[];
|
|
22
|
+
rankingVersion: "marketplace-ranking-v1";
|
|
20
23
|
items: ({
|
|
21
24
|
[x: string]: unknown;
|
|
22
25
|
kind: "api";
|
|
@@ -38,7 +41,7 @@ export declare const actions: readonly [Action<{
|
|
|
38
41
|
summary: string;
|
|
39
42
|
badges: {
|
|
40
43
|
[x: string]: unknown;
|
|
41
|
-
code: "partner" | "live_x402" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor";
|
|
44
|
+
code: "partner" | "live_x402" | "mpp" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor" | "unverified";
|
|
42
45
|
label: string;
|
|
43
46
|
}[];
|
|
44
47
|
facts: {
|
|
@@ -102,7 +105,7 @@ export declare const actions: readonly [Action<{
|
|
|
102
105
|
summary: string;
|
|
103
106
|
badges: {
|
|
104
107
|
[x: string]: unknown;
|
|
105
|
-
code: "partner" | "live_x402" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor";
|
|
108
|
+
code: "partner" | "live_x402" | "mpp" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor" | "unverified";
|
|
106
109
|
label: string;
|
|
107
110
|
}[];
|
|
108
111
|
facts: {
|
|
@@ -158,7 +161,7 @@ export declare const actions: readonly [Action<{
|
|
|
158
161
|
summary: string;
|
|
159
162
|
badges: {
|
|
160
163
|
[x: string]: unknown;
|
|
161
|
-
code: "partner" | "live_x402" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor";
|
|
164
|
+
code: "partner" | "live_x402" | "mpp" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor" | "unverified";
|
|
162
165
|
label: string;
|
|
163
166
|
}[];
|
|
164
167
|
facts: {
|
|
@@ -214,7 +217,7 @@ export declare const actions: readonly [Action<{
|
|
|
214
217
|
summary: string;
|
|
215
218
|
badges: {
|
|
216
219
|
[x: string]: unknown;
|
|
217
|
-
code: "partner" | "live_x402" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor";
|
|
220
|
+
code: "partner" | "live_x402" | "mpp" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor" | "unverified";
|
|
218
221
|
label: string;
|
|
219
222
|
}[];
|
|
220
223
|
facts: {
|
|
@@ -255,9 +258,6 @@ export declare const actions: readonly [Action<{
|
|
|
255
258
|
} | undefined;
|
|
256
259
|
} | undefined;
|
|
257
260
|
})[];
|
|
258
|
-
nextCursor: string | null;
|
|
259
|
-
unavailableKinds: ("api" | "service_offer" | "open_request")[];
|
|
260
|
-
rankingVersion: "marketplace-ranking-v1";
|
|
261
261
|
}>, Action<{
|
|
262
262
|
id: string;
|
|
263
263
|
endpoint?: string | undefined;
|
|
@@ -269,11 +269,33 @@ export declare const actions: readonly [Action<{
|
|
|
269
269
|
description: string;
|
|
270
270
|
verification: "none" | "requested" | "verified";
|
|
271
271
|
payment: {
|
|
272
|
+
[x: string]: unknown;
|
|
273
|
+
scheme: "exact";
|
|
274
|
+
network: string;
|
|
275
|
+
asset: string;
|
|
276
|
+
payTo: string;
|
|
277
|
+
checkedAt: string;
|
|
278
|
+
} | {
|
|
279
|
+
[x: string]: unknown;
|
|
272
280
|
scheme: "exact";
|
|
273
281
|
network: string;
|
|
274
282
|
asset: string;
|
|
275
283
|
payTo: string;
|
|
276
284
|
checkedAt: string;
|
|
285
|
+
} | {
|
|
286
|
+
[x: string]: unknown;
|
|
287
|
+
protocol: "mpp";
|
|
288
|
+
intent: "charge" | "authorize" | "subscription" | null;
|
|
289
|
+
method: string | null;
|
|
290
|
+
checkedAt: string;
|
|
291
|
+
network?: undefined;
|
|
292
|
+
payTo?: undefined;
|
|
293
|
+
} | {
|
|
294
|
+
[x: string]: unknown;
|
|
295
|
+
protocol: string;
|
|
296
|
+
checkedAt: string;
|
|
297
|
+
network?: undefined;
|
|
298
|
+
payTo?: undefined;
|
|
277
299
|
} | null;
|
|
278
300
|
operationId?: string | undefined;
|
|
279
301
|
requestContentType?: string | undefined;
|
|
@@ -319,6 +341,7 @@ export declare const actions: readonly [Action<{
|
|
|
319
341
|
network?: string | undefined;
|
|
320
342
|
expectedPayTo?: string | undefined;
|
|
321
343
|
maxPriceUsd?: string | number | undefined;
|
|
344
|
+
timeoutSeconds?: number | undefined;
|
|
322
345
|
wallet?: string | undefined;
|
|
323
346
|
}, {
|
|
324
347
|
wallet: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { callService, createVapiServer, loadServerConfig, startStdioServer, type CallToolInput, type CallToolResult, type VapiServerOptions, } from "./server.js";
|
|
2
2
|
export { inspectService, type InspectToolInput, type InspectToolResult } from "./tools/inspect.js";
|
|
3
|
+
export { VapiCallError } from "./tools/call.js";
|
|
3
4
|
export { resolveServiceEndpoint, resolveServiceListing, searchMarketplace, type MarketplaceSearchInput, } from "./tools/search.js";
|
|
4
5
|
export { getWallet, type WalletAddresses, type WalletBalance } from "./tools/wallet.js";
|
|
5
6
|
export { WalletSession, type SessionWallet, type SessionWalletInfo, type WalletSessionOptions, } from "./wallet-session.js";
|