@retell-ai/mcp-server 5.31.1 → 5.32.0
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/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +2 -53
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +3 -54
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +1 -41
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +1 -41
- package/docs-search-tool.mjs.map +1 -1
- package/instructions.d.mts.map +1 -1
- package/instructions.d.ts.map +1 -1
- package/instructions.js +2 -18
- package/instructions.js.map +1 -1
- package/instructions.mjs +2 -18
- package/instructions.mjs.map +1 -1
- package/local-docs-search.js +8 -8
- package/local-docs-search.js.map +1 -1
- package/local-docs-search.mjs +8 -8
- package/local-docs-search.mjs.map +1 -1
- package/methods.js +140 -140
- package/methods.js.map +1 -1
- package/methods.mjs +140 -140
- package/methods.mjs.map +1 -1
- package/options.d.mts +2 -2
- package/options.d.mts.map +1 -1
- package/options.d.ts +2 -2
- package/options.d.ts.map +1 -1
- package/options.js +6 -6
- package/options.js.map +1 -1
- package/options.mjs +6 -6
- package/options.mjs.map +1 -1
- package/package.json +2 -2
- package/server.js +1 -1
- package/server.js.map +1 -1
- package/server.mjs +1 -1
- package/server.mjs.map +1 -1
- package/src/code-tool.ts +4 -83
- package/src/docs-search-tool.ts +2 -61
- package/src/instructions.ts +2 -28
- package/src/local-docs-search.ts +8 -8
- package/src/methods.ts +140 -140
- package/src/options.ts +9 -9
- package/src/server.ts +1 -1
package/src/methods.ts
CHANGED
|
@@ -10,12 +10,36 @@ export type SdkMethod = {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export const sdkMethods: SdkMethod[] = [
|
|
13
|
+
{
|
|
14
|
+
clientCallName: 'client.call.createPhoneCall',
|
|
15
|
+
fullyQualifiedName: 'call.createPhoneCall',
|
|
16
|
+
httpMethod: 'post',
|
|
17
|
+
httpPath: '/v2/create-phone-call',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
clientCallName: 'client.call.registerPhoneCall',
|
|
21
|
+
fullyQualifiedName: 'call.registerPhoneCall',
|
|
22
|
+
httpMethod: 'post',
|
|
23
|
+
httpPath: '/v2/register-phone-call',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
clientCallName: 'client.call.createWebCall',
|
|
27
|
+
fullyQualifiedName: 'call.createWebCall',
|
|
28
|
+
httpMethod: 'post',
|
|
29
|
+
httpPath: '/v2/create-web-call',
|
|
30
|
+
},
|
|
13
31
|
{
|
|
14
32
|
clientCallName: 'client.call.retrieve',
|
|
15
33
|
fullyQualifiedName: 'call.retrieve',
|
|
16
34
|
httpMethod: 'get',
|
|
17
35
|
httpPath: '/v2/get-call/{call_id}',
|
|
18
36
|
},
|
|
37
|
+
{
|
|
38
|
+
clientCallName: 'client.call.list',
|
|
39
|
+
fullyQualifiedName: 'call.list',
|
|
40
|
+
httpMethod: 'post',
|
|
41
|
+
httpPath: '/v3/list-calls',
|
|
42
|
+
},
|
|
19
43
|
{
|
|
20
44
|
clientCallName: 'client.call.update',
|
|
21
45
|
fullyQualifiedName: 'call.update',
|
|
@@ -23,10 +47,10 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
23
47
|
httpPath: '/v2/update-call/{call_id}',
|
|
24
48
|
},
|
|
25
49
|
{
|
|
26
|
-
clientCallName: 'client.call.
|
|
27
|
-
fullyQualifiedName: 'call.
|
|
50
|
+
clientCallName: 'client.call.stop',
|
|
51
|
+
fullyQualifiedName: 'call.stop',
|
|
28
52
|
httpMethod: 'post',
|
|
29
|
-
httpPath: '/
|
|
53
|
+
httpPath: '/v2/stop-call/{call_id}',
|
|
30
54
|
},
|
|
31
55
|
{
|
|
32
56
|
clientCallName: 'client.call.delete',
|
|
@@ -35,34 +59,22 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
35
59
|
httpPath: '/v2/delete-call/{call_id}',
|
|
36
60
|
},
|
|
37
61
|
{
|
|
38
|
-
clientCallName: 'client.
|
|
39
|
-
fullyQualifiedName: '
|
|
40
|
-
httpMethod: 'post',
|
|
41
|
-
httpPath: '/v2/create-phone-call',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
clientCallName: 'client.call.createWebCall',
|
|
45
|
-
fullyQualifiedName: 'call.createWebCall',
|
|
46
|
-
httpMethod: 'post',
|
|
47
|
-
httpPath: '/v2/create-web-call',
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
clientCallName: 'client.call.registerPhoneCall',
|
|
51
|
-
fullyQualifiedName: 'call.registerPhoneCall',
|
|
62
|
+
clientCallName: 'client.chat.create',
|
|
63
|
+
fullyQualifiedName: 'chat.create',
|
|
52
64
|
httpMethod: 'post',
|
|
53
|
-
httpPath: '/
|
|
65
|
+
httpPath: '/create-chat',
|
|
54
66
|
},
|
|
55
67
|
{
|
|
56
|
-
clientCallName: 'client.
|
|
57
|
-
fullyQualifiedName: '
|
|
68
|
+
clientCallName: 'client.chat.createSMSChat',
|
|
69
|
+
fullyQualifiedName: 'chat.createSMSChat',
|
|
58
70
|
httpMethod: 'post',
|
|
59
|
-
httpPath: '/
|
|
71
|
+
httpPath: '/create-sms-chat',
|
|
60
72
|
},
|
|
61
73
|
{
|
|
62
|
-
clientCallName: 'client.chat.
|
|
63
|
-
fullyQualifiedName: 'chat.
|
|
64
|
-
httpMethod: '
|
|
65
|
-
httpPath: '/
|
|
74
|
+
clientCallName: 'client.chat.end',
|
|
75
|
+
fullyQualifiedName: 'chat.end',
|
|
76
|
+
httpMethod: 'patch',
|
|
77
|
+
httpPath: '/end-chat/{chat_id}',
|
|
66
78
|
},
|
|
67
79
|
{
|
|
68
80
|
clientCallName: 'client.chat.retrieve',
|
|
@@ -71,10 +83,10 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
71
83
|
httpPath: '/get-chat/{chat_id}',
|
|
72
84
|
},
|
|
73
85
|
{
|
|
74
|
-
clientCallName: 'client.chat.
|
|
75
|
-
fullyQualifiedName: 'chat.
|
|
76
|
-
httpMethod: '
|
|
77
|
-
httpPath: '/
|
|
86
|
+
clientCallName: 'client.chat.createChatCompletion',
|
|
87
|
+
fullyQualifiedName: 'chat.createChatCompletion',
|
|
88
|
+
httpMethod: 'post',
|
|
89
|
+
httpPath: '/create-chat-completion',
|
|
78
90
|
},
|
|
79
91
|
{
|
|
80
92
|
clientCallName: 'client.chat.list',
|
|
@@ -82,66 +94,54 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
82
94
|
httpMethod: 'post',
|
|
83
95
|
httpPath: '/v3/list-chats',
|
|
84
96
|
},
|
|
97
|
+
{
|
|
98
|
+
clientCallName: 'client.chat.update',
|
|
99
|
+
fullyQualifiedName: 'chat.update',
|
|
100
|
+
httpMethod: 'patch',
|
|
101
|
+
httpPath: '/update-chat/{chat_id}',
|
|
102
|
+
},
|
|
85
103
|
{
|
|
86
104
|
clientCallName: 'client.chat.delete',
|
|
87
105
|
fullyQualifiedName: 'chat.delete',
|
|
88
106
|
httpMethod: 'delete',
|
|
89
107
|
httpPath: '/delete-chat/{chat_id}',
|
|
90
108
|
},
|
|
91
|
-
{
|
|
92
|
-
clientCallName: 'client.chat.createChatCompletion',
|
|
93
|
-
fullyQualifiedName: 'chat.createChatCompletion',
|
|
94
|
-
httpMethod: 'post',
|
|
95
|
-
httpPath: '/create-chat-completion',
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
clientCallName: 'client.chat.createSMSChat',
|
|
99
|
-
fullyQualifiedName: 'chat.createSMSChat',
|
|
100
|
-
httpMethod: 'post',
|
|
101
|
-
httpPath: '/create-sms-chat',
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
clientCallName: 'client.chat.end',
|
|
105
|
-
fullyQualifiedName: 'chat.end',
|
|
106
|
-
httpMethod: 'patch',
|
|
107
|
-
httpPath: '/end-chat/{chat_id}',
|
|
108
|
-
},
|
|
109
109
|
{
|
|
110
110
|
clientCallName: 'client.phoneNumber.create',
|
|
111
111
|
fullyQualifiedName: 'phoneNumber.create',
|
|
112
112
|
httpMethod: 'post',
|
|
113
113
|
httpPath: '/create-phone-number',
|
|
114
114
|
},
|
|
115
|
+
{
|
|
116
|
+
clientCallName: 'client.phoneNumber.import',
|
|
117
|
+
fullyQualifiedName: 'phoneNumber.import',
|
|
118
|
+
httpMethod: 'post',
|
|
119
|
+
httpPath: '/import-phone-number',
|
|
120
|
+
},
|
|
115
121
|
{
|
|
116
122
|
clientCallName: 'client.phoneNumber.retrieve',
|
|
117
123
|
fullyQualifiedName: 'phoneNumber.retrieve',
|
|
118
124
|
httpMethod: 'get',
|
|
119
125
|
httpPath: '/get-phone-number/{phone_number}',
|
|
120
126
|
},
|
|
121
|
-
{
|
|
122
|
-
clientCallName: 'client.phoneNumber.update',
|
|
123
|
-
fullyQualifiedName: 'phoneNumber.update',
|
|
124
|
-
httpMethod: 'patch',
|
|
125
|
-
httpPath: '/update-phone-number/{phone_number}',
|
|
126
|
-
},
|
|
127
127
|
{
|
|
128
128
|
clientCallName: 'client.phoneNumber.list',
|
|
129
129
|
fullyQualifiedName: 'phoneNumber.list',
|
|
130
130
|
httpMethod: 'get',
|
|
131
131
|
httpPath: '/v2/list-phone-numbers',
|
|
132
132
|
},
|
|
133
|
+
{
|
|
134
|
+
clientCallName: 'client.phoneNumber.update',
|
|
135
|
+
fullyQualifiedName: 'phoneNumber.update',
|
|
136
|
+
httpMethod: 'patch',
|
|
137
|
+
httpPath: '/update-phone-number/{phone_number}',
|
|
138
|
+
},
|
|
133
139
|
{
|
|
134
140
|
clientCallName: 'client.phoneNumber.delete',
|
|
135
141
|
fullyQualifiedName: 'phoneNumber.delete',
|
|
136
142
|
httpMethod: 'delete',
|
|
137
143
|
httpPath: '/delete-phone-number/{phone_number}',
|
|
138
144
|
},
|
|
139
|
-
{
|
|
140
|
-
clientCallName: 'client.phoneNumber.import',
|
|
141
|
-
fullyQualifiedName: 'phoneNumber.import',
|
|
142
|
-
httpMethod: 'post',
|
|
143
|
-
httpPath: '/import-phone-number',
|
|
144
|
-
},
|
|
145
145
|
{
|
|
146
146
|
clientCallName: 'client.agent.create',
|
|
147
147
|
fullyQualifiedName: 'agent.create',
|
|
@@ -154,24 +154,30 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
154
154
|
httpMethod: 'get',
|
|
155
155
|
httpPath: '/get-agent/{agent_id}',
|
|
156
156
|
},
|
|
157
|
-
{
|
|
158
|
-
clientCallName: 'client.agent.update',
|
|
159
|
-
fullyQualifiedName: 'agent.update',
|
|
160
|
-
httpMethod: 'patch',
|
|
161
|
-
httpPath: '/update-agent/{agent_id}',
|
|
162
|
-
},
|
|
163
157
|
{
|
|
164
158
|
clientCallName: 'client.agent.list',
|
|
165
159
|
fullyQualifiedName: 'agent.list',
|
|
166
160
|
httpMethod: 'get',
|
|
167
161
|
httpPath: '/list-agents',
|
|
168
162
|
},
|
|
163
|
+
{
|
|
164
|
+
clientCallName: 'client.agent.update',
|
|
165
|
+
fullyQualifiedName: 'agent.update',
|
|
166
|
+
httpMethod: 'patch',
|
|
167
|
+
httpPath: '/update-agent/{agent_id}',
|
|
168
|
+
},
|
|
169
169
|
{
|
|
170
170
|
clientCallName: 'client.agent.delete',
|
|
171
171
|
fullyQualifiedName: 'agent.delete',
|
|
172
172
|
httpMethod: 'delete',
|
|
173
173
|
httpPath: '/delete-agent/{agent_id}',
|
|
174
174
|
},
|
|
175
|
+
{
|
|
176
|
+
clientCallName: 'client.agent.publish',
|
|
177
|
+
fullyQualifiedName: 'agent.publish',
|
|
178
|
+
httpMethod: 'post',
|
|
179
|
+
httpPath: '/publish-agent-version/{agent_id}',
|
|
180
|
+
},
|
|
175
181
|
{
|
|
176
182
|
clientCallName: 'client.agent.createVersion',
|
|
177
183
|
fullyQualifiedName: 'agent.createVersion',
|
|
@@ -190,12 +196,6 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
190
196
|
httpMethod: 'get',
|
|
191
197
|
httpPath: '/get-agent-versions/{agent_id}',
|
|
192
198
|
},
|
|
193
|
-
{
|
|
194
|
-
clientCallName: 'client.agent.publish',
|
|
195
|
-
fullyQualifiedName: 'agent.publish',
|
|
196
|
-
httpMethod: 'post',
|
|
197
|
-
httpPath: '/publish-agent-version/{agent_id}',
|
|
198
|
-
},
|
|
199
199
|
{
|
|
200
200
|
clientCallName: 'client.chatAgent.create',
|
|
201
201
|
fullyQualifiedName: 'chatAgent.create',
|
|
@@ -208,24 +208,30 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
208
208
|
httpMethod: 'get',
|
|
209
209
|
httpPath: '/get-chat-agent/{agent_id}',
|
|
210
210
|
},
|
|
211
|
-
{
|
|
212
|
-
clientCallName: 'client.chatAgent.update',
|
|
213
|
-
fullyQualifiedName: 'chatAgent.update',
|
|
214
|
-
httpMethod: 'patch',
|
|
215
|
-
httpPath: '/update-chat-agent/{agent_id}',
|
|
216
|
-
},
|
|
217
211
|
{
|
|
218
212
|
clientCallName: 'client.chatAgent.list',
|
|
219
213
|
fullyQualifiedName: 'chatAgent.list',
|
|
220
214
|
httpMethod: 'get',
|
|
221
215
|
httpPath: '/list-chat-agents',
|
|
222
216
|
},
|
|
217
|
+
{
|
|
218
|
+
clientCallName: 'client.chatAgent.update',
|
|
219
|
+
fullyQualifiedName: 'chatAgent.update',
|
|
220
|
+
httpMethod: 'patch',
|
|
221
|
+
httpPath: '/update-chat-agent/{agent_id}',
|
|
222
|
+
},
|
|
223
223
|
{
|
|
224
224
|
clientCallName: 'client.chatAgent.delete',
|
|
225
225
|
fullyQualifiedName: 'chatAgent.delete',
|
|
226
226
|
httpMethod: 'delete',
|
|
227
227
|
httpPath: '/delete-chat-agent/{agent_id}',
|
|
228
228
|
},
|
|
229
|
+
{
|
|
230
|
+
clientCallName: 'client.chatAgent.publish',
|
|
231
|
+
fullyQualifiedName: 'chatAgent.publish',
|
|
232
|
+
httpMethod: 'post',
|
|
233
|
+
httpPath: '/publish-agent-version/{agent_id}',
|
|
234
|
+
},
|
|
229
235
|
{
|
|
230
236
|
clientCallName: 'client.chatAgent.createVersion',
|
|
231
237
|
fullyQualifiedName: 'chatAgent.createVersion',
|
|
@@ -244,12 +250,6 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
244
250
|
httpMethod: 'get',
|
|
245
251
|
httpPath: '/get-chat-agent-versions/{agent_id}',
|
|
246
252
|
},
|
|
247
|
-
{
|
|
248
|
-
clientCallName: 'client.chatAgent.publish',
|
|
249
|
-
fullyQualifiedName: 'chatAgent.publish',
|
|
250
|
-
httpMethod: 'post',
|
|
251
|
-
httpPath: '/publish-agent-version/{agent_id}',
|
|
252
|
-
},
|
|
253
253
|
{
|
|
254
254
|
clientCallName: 'client.llm.create',
|
|
255
255
|
fullyQualifiedName: 'llm.create',
|
|
@@ -262,18 +262,18 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
262
262
|
httpMethod: 'get',
|
|
263
263
|
httpPath: '/get-retell-llm/{llm_id}',
|
|
264
264
|
},
|
|
265
|
-
{
|
|
266
|
-
clientCallName: 'client.llm.update',
|
|
267
|
-
fullyQualifiedName: 'llm.update',
|
|
268
|
-
httpMethod: 'patch',
|
|
269
|
-
httpPath: '/update-retell-llm/{llm_id}',
|
|
270
|
-
},
|
|
271
265
|
{
|
|
272
266
|
clientCallName: 'client.llm.list',
|
|
273
267
|
fullyQualifiedName: 'llm.list',
|
|
274
268
|
httpMethod: 'get',
|
|
275
269
|
httpPath: '/v2/list-retell-llms',
|
|
276
270
|
},
|
|
271
|
+
{
|
|
272
|
+
clientCallName: 'client.llm.update',
|
|
273
|
+
fullyQualifiedName: 'llm.update',
|
|
274
|
+
httpMethod: 'patch',
|
|
275
|
+
httpPath: '/update-retell-llm/{llm_id}',
|
|
276
|
+
},
|
|
277
277
|
{
|
|
278
278
|
clientCallName: 'client.llm.delete',
|
|
279
279
|
fullyQualifiedName: 'llm.delete',
|
|
@@ -292,18 +292,18 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
292
292
|
httpMethod: 'get',
|
|
293
293
|
httpPath: '/get-conversation-flow/{conversation_flow_id}',
|
|
294
294
|
},
|
|
295
|
-
{
|
|
296
|
-
clientCallName: 'client.conversationFlow.update',
|
|
297
|
-
fullyQualifiedName: 'conversationFlow.update',
|
|
298
|
-
httpMethod: 'patch',
|
|
299
|
-
httpPath: '/update-conversation-flow/{conversation_flow_id}',
|
|
300
|
-
},
|
|
301
295
|
{
|
|
302
296
|
clientCallName: 'client.conversationFlow.list',
|
|
303
297
|
fullyQualifiedName: 'conversationFlow.list',
|
|
304
298
|
httpMethod: 'get',
|
|
305
299
|
httpPath: '/v2/list-conversation-flows',
|
|
306
300
|
},
|
|
301
|
+
{
|
|
302
|
+
clientCallName: 'client.conversationFlow.update',
|
|
303
|
+
fullyQualifiedName: 'conversationFlow.update',
|
|
304
|
+
httpMethod: 'patch',
|
|
305
|
+
httpPath: '/update-conversation-flow/{conversation_flow_id}',
|
|
306
|
+
},
|
|
307
307
|
{
|
|
308
308
|
clientCallName: 'client.conversationFlow.delete',
|
|
309
309
|
fullyQualifiedName: 'conversationFlow.delete',
|
|
@@ -322,18 +322,18 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
322
322
|
httpMethod: 'get',
|
|
323
323
|
httpPath: '/get-conversation-flow-component/{conversation_flow_component_id}',
|
|
324
324
|
},
|
|
325
|
-
{
|
|
326
|
-
clientCallName: 'client.conversationFlowComponent.update',
|
|
327
|
-
fullyQualifiedName: 'conversationFlowComponent.update',
|
|
328
|
-
httpMethod: 'patch',
|
|
329
|
-
httpPath: '/update-conversation-flow-component/{conversation_flow_component_id}',
|
|
330
|
-
},
|
|
331
325
|
{
|
|
332
326
|
clientCallName: 'client.conversationFlowComponent.list',
|
|
333
327
|
fullyQualifiedName: 'conversationFlowComponent.list',
|
|
334
328
|
httpMethod: 'get',
|
|
335
329
|
httpPath: '/v2/list-conversation-flow-components',
|
|
336
330
|
},
|
|
331
|
+
{
|
|
332
|
+
clientCallName: 'client.conversationFlowComponent.update',
|
|
333
|
+
fullyQualifiedName: 'conversationFlowComponent.update',
|
|
334
|
+
httpMethod: 'patch',
|
|
335
|
+
httpPath: '/update-conversation-flow-component/{conversation_flow_component_id}',
|
|
336
|
+
},
|
|
337
337
|
{
|
|
338
338
|
clientCallName: 'client.conversationFlowComponent.delete',
|
|
339
339
|
fullyQualifiedName: 'conversationFlowComponent.delete',
|
|
@@ -376,18 +376,6 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
376
376
|
httpMethod: 'delete',
|
|
377
377
|
httpPath: '/delete-knowledge-base-source/{knowledge_base_id}/source/{source_id}',
|
|
378
378
|
},
|
|
379
|
-
{
|
|
380
|
-
clientCallName: 'client.voice.retrieve',
|
|
381
|
-
fullyQualifiedName: 'voice.retrieve',
|
|
382
|
-
httpMethod: 'get',
|
|
383
|
-
httpPath: '/get-voice/{voice_id}',
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
clientCallName: 'client.voice.list',
|
|
387
|
-
fullyQualifiedName: 'voice.list',
|
|
388
|
-
httpMethod: 'get',
|
|
389
|
-
httpPath: '/list-voices',
|
|
390
|
-
},
|
|
391
379
|
{
|
|
392
380
|
clientCallName: 'client.voice.addResource',
|
|
393
381
|
fullyQualifiedName: 'voice.addResource',
|
|
@@ -400,6 +388,18 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
400
388
|
httpMethod: 'post',
|
|
401
389
|
httpPath: '/clone-voice',
|
|
402
390
|
},
|
|
391
|
+
{
|
|
392
|
+
clientCallName: 'client.voice.retrieve',
|
|
393
|
+
fullyQualifiedName: 'voice.retrieve',
|
|
394
|
+
httpMethod: 'get',
|
|
395
|
+
httpPath: '/get-voice/{voice_id}',
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
clientCallName: 'client.voice.list',
|
|
399
|
+
fullyQualifiedName: 'voice.list',
|
|
400
|
+
httpMethod: 'get',
|
|
401
|
+
httpPath: '/list-voices',
|
|
402
|
+
},
|
|
403
403
|
{
|
|
404
404
|
clientCallName: 'client.voice.search',
|
|
405
405
|
fullyQualifiedName: 'voice.search',
|
|
@@ -424,42 +424,48 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
424
424
|
httpMethod: 'post',
|
|
425
425
|
httpPath: '/create-batch-call',
|
|
426
426
|
},
|
|
427
|
-
{
|
|
428
|
-
clientCallName: 'client.tests.createBatchTest',
|
|
429
|
-
fullyQualifiedName: 'tests.createBatchTest',
|
|
430
|
-
httpMethod: 'post',
|
|
431
|
-
httpPath: '/create-batch-test',
|
|
432
|
-
},
|
|
433
427
|
{
|
|
434
428
|
clientCallName: 'client.tests.createTestCaseDefinition',
|
|
435
429
|
fullyQualifiedName: 'tests.createTestCaseDefinition',
|
|
436
430
|
httpMethod: 'post',
|
|
437
431
|
httpPath: '/create-test-case-definition',
|
|
438
432
|
},
|
|
433
|
+
{
|
|
434
|
+
clientCallName: 'client.tests.getTestCaseDefinition',
|
|
435
|
+
fullyQualifiedName: 'tests.getTestCaseDefinition',
|
|
436
|
+
httpMethod: 'get',
|
|
437
|
+
httpPath: '/get-test-case-definition/{test_case_definition_id}',
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
clientCallName: 'client.tests.listTestCaseDefinitions',
|
|
441
|
+
fullyQualifiedName: 'tests.listTestCaseDefinitions',
|
|
442
|
+
httpMethod: 'get',
|
|
443
|
+
httpPath: '/v2/list-test-case-definitions',
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
clientCallName: 'client.tests.updateTestCaseDefinition',
|
|
447
|
+
fullyQualifiedName: 'tests.updateTestCaseDefinition',
|
|
448
|
+
httpMethod: 'put',
|
|
449
|
+
httpPath: '/update-test-case-definition/{test_case_definition_id}',
|
|
450
|
+
},
|
|
439
451
|
{
|
|
440
452
|
clientCallName: 'client.tests.deleteTestCaseDefinition',
|
|
441
453
|
fullyQualifiedName: 'tests.deleteTestCaseDefinition',
|
|
442
454
|
httpMethod: 'delete',
|
|
443
455
|
httpPath: '/delete-test-case-definition/{test_case_definition_id}',
|
|
444
456
|
},
|
|
457
|
+
{
|
|
458
|
+
clientCallName: 'client.tests.createBatchTest',
|
|
459
|
+
fullyQualifiedName: 'tests.createBatchTest',
|
|
460
|
+
httpMethod: 'post',
|
|
461
|
+
httpPath: '/create-batch-test',
|
|
462
|
+
},
|
|
445
463
|
{
|
|
446
464
|
clientCallName: 'client.tests.getBatchTest',
|
|
447
465
|
fullyQualifiedName: 'tests.getBatchTest',
|
|
448
466
|
httpMethod: 'get',
|
|
449
467
|
httpPath: '/get-batch-test/{test_case_batch_job_id}',
|
|
450
468
|
},
|
|
451
|
-
{
|
|
452
|
-
clientCallName: 'client.tests.getTestCaseDefinition',
|
|
453
|
-
fullyQualifiedName: 'tests.getTestCaseDefinition',
|
|
454
|
-
httpMethod: 'get',
|
|
455
|
-
httpPath: '/get-test-case-definition/{test_case_definition_id}',
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
clientCallName: 'client.tests.getTestRun',
|
|
459
|
-
fullyQualifiedName: 'tests.getTestRun',
|
|
460
|
-
httpMethod: 'get',
|
|
461
|
-
httpPath: '/get-test-run/{test_case_job_id}',
|
|
462
|
-
},
|
|
463
469
|
{
|
|
464
470
|
clientCallName: 'client.tests.listBatchTests',
|
|
465
471
|
fullyQualifiedName: 'tests.listBatchTests',
|
|
@@ -467,10 +473,10 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
467
473
|
httpPath: '/v2/list-batch-tests',
|
|
468
474
|
},
|
|
469
475
|
{
|
|
470
|
-
clientCallName: 'client.tests.
|
|
471
|
-
fullyQualifiedName: 'tests.
|
|
476
|
+
clientCallName: 'client.tests.getTestRun',
|
|
477
|
+
fullyQualifiedName: 'tests.getTestRun',
|
|
472
478
|
httpMethod: 'get',
|
|
473
|
-
httpPath: '/
|
|
479
|
+
httpPath: '/get-test-run/{test_case_job_id}',
|
|
474
480
|
},
|
|
475
481
|
{
|
|
476
482
|
clientCallName: 'client.tests.listTestRuns',
|
|
@@ -478,12 +484,6 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
478
484
|
httpMethod: 'get',
|
|
479
485
|
httpPath: '/v2/list-test-runs/{test_case_batch_job_id}',
|
|
480
486
|
},
|
|
481
|
-
{
|
|
482
|
-
clientCallName: 'client.tests.updateTestCaseDefinition',
|
|
483
|
-
fullyQualifiedName: 'tests.updateTestCaseDefinition',
|
|
484
|
-
httpMethod: 'put',
|
|
485
|
-
httpPath: '/update-test-case-definition/{test_case_definition_id}',
|
|
486
|
-
},
|
|
487
487
|
{
|
|
488
488
|
clientCallName: 'client.playground.completion',
|
|
489
489
|
fullyQualifiedName: 'playground.completion',
|
package/src/options.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type McpOptions = {
|
|
|
18
18
|
includeCodeTool?: boolean | undefined;
|
|
19
19
|
includeDocsTools?: boolean | undefined;
|
|
20
20
|
stainlessApiKey?: string | undefined;
|
|
21
|
-
docsSearchMode?: '
|
|
21
|
+
docsSearchMode?: 'local' | undefined;
|
|
22
22
|
docsDir?: string | undefined;
|
|
23
23
|
codeAllowHttpGets?: boolean | undefined;
|
|
24
24
|
codeAllowedMethods?: string[] | undefined;
|
|
@@ -27,7 +27,7 @@ export type McpOptions = {
|
|
|
27
27
|
customInstructionsPath?: string | undefined;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
export type McpCodeExecutionMode = '
|
|
30
|
+
export type McpCodeExecutionMode = 'local';
|
|
31
31
|
|
|
32
32
|
export function parseCLIOptions(): CLIOptions {
|
|
33
33
|
const opts = yargs(hideBin(process.argv))
|
|
@@ -50,10 +50,10 @@ export function parseCLIOptions(): CLIOptions {
|
|
|
50
50
|
})
|
|
51
51
|
.option('code-execution-mode', {
|
|
52
52
|
type: 'string',
|
|
53
|
-
choices: ['
|
|
54
|
-
default: '
|
|
53
|
+
choices: ['local'],
|
|
54
|
+
default: 'local',
|
|
55
55
|
description:
|
|
56
|
-
|
|
56
|
+
'The server was generated without access to the Stainless API, so code execution can only run locally on the MCP server machine.',
|
|
57
57
|
})
|
|
58
58
|
.option('custom-instructions-path', {
|
|
59
59
|
type: 'string',
|
|
@@ -67,10 +67,10 @@ export function parseCLIOptions(): CLIOptions {
|
|
|
67
67
|
})
|
|
68
68
|
.option('docs-search-mode', {
|
|
69
69
|
type: 'string',
|
|
70
|
-
choices: ['
|
|
71
|
-
default: '
|
|
70
|
+
choices: ['local'],
|
|
71
|
+
default: 'local',
|
|
72
72
|
description:
|
|
73
|
-
"
|
|
73
|
+
"Documentation search will use an in-memory search index built from embedded SDK method data and optional local docs files; the 'stainless-api' option is unavailable.",
|
|
74
74
|
})
|
|
75
75
|
.option('log-format', {
|
|
76
76
|
type: 'string',
|
|
@@ -132,7 +132,7 @@ export function parseCLIOptions(): CLIOptions {
|
|
|
132
132
|
...(includeDocsTools !== undefined && { includeDocsTools }),
|
|
133
133
|
debug: !!argv.debug,
|
|
134
134
|
stainlessApiKey: argv.stainlessApiKey,
|
|
135
|
-
docsSearchMode: argv.docsSearchMode as '
|
|
135
|
+
docsSearchMode: argv.docsSearchMode as 'local' | undefined,
|
|
136
136
|
docsDir: argv.docsDir,
|
|
137
137
|
codeAllowHttpGets: argv.codeAllowHttpGets,
|
|
138
138
|
codeAllowedMethods: argv.codeAllowedMethods,
|
package/src/server.ts
CHANGED
|
@@ -182,7 +182,7 @@ export function selectTools(options?: McpOptions): McpTool[] {
|
|
|
182
182
|
includedTools.push(
|
|
183
183
|
codeTool({
|
|
184
184
|
blockedMethods: blockedMethodsForCodeTool(options),
|
|
185
|
-
codeExecutionMode: options?.codeExecutionMode ?? '
|
|
185
|
+
codeExecutionMode: options?.codeExecutionMode ?? 'local',
|
|
186
186
|
}),
|
|
187
187
|
);
|
|
188
188
|
}
|