@linqapp/sdk-mcp 0.24.2 → 0.26.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.
Files changed (57) hide show
  1. package/code-tool-worker.d.mts.map +1 -1
  2. package/code-tool-worker.d.ts.map +1 -1
  3. package/code-tool-worker.js +2 -0
  4. package/code-tool-worker.js.map +1 -1
  5. package/code-tool-worker.mjs +2 -0
  6. package/code-tool-worker.mjs.map +1 -1
  7. package/code-tool.d.mts.map +1 -1
  8. package/code-tool.d.ts.map +1 -1
  9. package/code-tool.js +2 -53
  10. package/code-tool.js.map +1 -1
  11. package/code-tool.mjs +3 -54
  12. package/code-tool.mjs.map +1 -1
  13. package/docs-search-tool.d.mts.map +1 -1
  14. package/docs-search-tool.d.ts.map +1 -1
  15. package/docs-search-tool.js +1 -41
  16. package/docs-search-tool.js.map +1 -1
  17. package/docs-search-tool.mjs +1 -41
  18. package/docs-search-tool.mjs.map +1 -1
  19. package/instructions.d.mts.map +1 -1
  20. package/instructions.d.ts.map +1 -1
  21. package/instructions.js +2 -18
  22. package/instructions.js.map +1 -1
  23. package/instructions.mjs +2 -18
  24. package/instructions.mjs.map +1 -1
  25. package/local-docs-search.d.mts.map +1 -1
  26. package/local-docs-search.d.ts.map +1 -1
  27. package/local-docs-search.js +210 -152
  28. package/local-docs-search.js.map +1 -1
  29. package/local-docs-search.mjs +210 -152
  30. package/local-docs-search.mjs.map +1 -1
  31. package/methods.d.mts.map +1 -1
  32. package/methods.d.ts.map +1 -1
  33. package/methods.js +52 -40
  34. package/methods.js.map +1 -1
  35. package/methods.mjs +52 -40
  36. package/methods.mjs.map +1 -1
  37. package/options.d.mts +2 -2
  38. package/options.d.mts.map +1 -1
  39. package/options.d.ts +2 -2
  40. package/options.d.ts.map +1 -1
  41. package/options.js +6 -6
  42. package/options.js.map +1 -1
  43. package/options.mjs +6 -6
  44. package/options.mjs.map +1 -1
  45. package/package.json +2 -2
  46. package/server.js +2 -2
  47. package/server.js.map +1 -1
  48. package/server.mjs +2 -2
  49. package/server.mjs.map +1 -1
  50. package/src/code-tool-worker.ts +2 -0
  51. package/src/code-tool.ts +4 -83
  52. package/src/docs-search-tool.ts +2 -61
  53. package/src/instructions.ts +2 -28
  54. package/src/local-docs-search.ts +259 -188
  55. package/src/methods.ts +52 -40
  56. package/src/options.ts +9 -9
  57. package/src/server.ts +2 -2
package/src/methods.ts CHANGED
@@ -16,6 +16,12 @@ export const sdkMethods: SdkMethod[] = [
16
16
  httpMethod: 'post',
17
17
  httpPath: '/v3/chats',
18
18
  },
19
+ {
20
+ clientCallName: 'client.chats.listChats',
21
+ fullyQualifiedName: 'chats.listChats',
22
+ httpMethod: 'get',
23
+ httpPath: '/v3/chats',
24
+ },
19
25
  {
20
26
  clientCallName: 'client.chats.retrieve',
21
27
  fullyQualifiedName: 'chats.retrieve',
@@ -28,18 +34,6 @@ export const sdkMethods: SdkMethod[] = [
28
34
  httpMethod: 'put',
29
35
  httpPath: '/v3/chats/{chatId}',
30
36
  },
31
- {
32
- clientCallName: 'client.chats.leaveChat',
33
- fullyQualifiedName: 'chats.leaveChat',
34
- httpMethod: 'post',
35
- httpPath: '/v3/chats/{chatId}/leave',
36
- },
37
- {
38
- clientCallName: 'client.chats.listChats',
39
- fullyQualifiedName: 'chats.listChats',
40
- httpMethod: 'get',
41
- httpPath: '/v3/chats',
42
- },
43
37
  {
44
38
  clientCallName: 'client.chats.markAsRead',
45
39
  fullyQualifiedName: 'chats.markAsRead',
@@ -47,10 +41,10 @@ export const sdkMethods: SdkMethod[] = [
47
41
  httpPath: '/v3/chats/{chatId}/read',
48
42
  },
49
43
  {
50
- clientCallName: 'client.chats.sendVoicememo',
51
- fullyQualifiedName: 'chats.sendVoicememo',
44
+ clientCallName: 'client.chats.leaveChat',
45
+ fullyQualifiedName: 'chats.leaveChat',
52
46
  httpMethod: 'post',
53
- httpPath: '/v3/chats/{chatId}/voicememo',
47
+ httpPath: '/v3/chats/{chatId}/leave',
54
48
  },
55
49
  {
56
50
  clientCallName: 'client.chats.shareContactCard',
@@ -58,6 +52,12 @@ export const sdkMethods: SdkMethod[] = [
58
52
  httpMethod: 'post',
59
53
  httpPath: '/v3/chats/{chatId}/share_contact_card',
60
54
  },
55
+ {
56
+ clientCallName: 'client.chats.sendVoicememo',
57
+ fullyQualifiedName: 'chats.sendVoicememo',
58
+ httpMethod: 'post',
59
+ httpPath: '/v3/chats/{chatId}/voicememo',
60
+ },
61
61
  {
62
62
  clientCallName: 'client.chats.participants.add',
63
63
  fullyQualifiedName: 'chats.participants.add',
@@ -82,6 +82,12 @@ export const sdkMethods: SdkMethod[] = [
82
82
  httpMethod: 'delete',
83
83
  httpPath: '/v3/chats/{chatId}/typing',
84
84
  },
85
+ {
86
+ clientCallName: 'client.chats.messages.send',
87
+ fullyQualifiedName: 'chats.messages.send',
88
+ httpMethod: 'post',
89
+ httpPath: '/v3/chats/{chatId}/messages',
90
+ },
85
91
  {
86
92
  clientCallName: 'client.chats.messages.list',
87
93
  fullyQualifiedName: 'chats.messages.list',
@@ -89,21 +95,27 @@ export const sdkMethods: SdkMethod[] = [
89
95
  httpPath: '/v3/chats/{chatId}/messages',
90
96
  },
91
97
  {
92
- clientCallName: 'client.chats.messages.send',
93
- fullyQualifiedName: 'chats.messages.send',
98
+ clientCallName: 'client.chats.location.request',
99
+ fullyQualifiedName: 'chats.location.request',
94
100
  httpMethod: 'post',
95
- httpPath: '/v3/chats/{chatId}/messages',
101
+ httpPath: '/v3/chats/{chatId}/location/request',
96
102
  },
97
103
  {
98
- clientCallName: 'client.messages.retrieve',
99
- fullyQualifiedName: 'messages.retrieve',
104
+ clientCallName: 'client.chats.location.retrieve',
105
+ fullyQualifiedName: 'chats.location.retrieve',
100
106
  httpMethod: 'get',
101
- httpPath: '/v3/messages/{messageId}',
107
+ httpPath: '/v3/chats/{chatId}/location',
102
108
  },
103
109
  {
104
- clientCallName: 'client.messages.update',
105
- fullyQualifiedName: 'messages.update',
106
- httpMethod: 'patch',
110
+ clientCallName: 'client.messages.listMessagesThread',
111
+ fullyQualifiedName: 'messages.listMessagesThread',
112
+ httpMethod: 'get',
113
+ httpPath: '/v3/messages/{messageId}/thread',
114
+ },
115
+ {
116
+ clientCallName: 'client.messages.retrieve',
117
+ fullyQualifiedName: 'messages.retrieve',
118
+ httpMethod: 'get',
107
119
  httpPath: '/v3/messages/{messageId}',
108
120
  },
109
121
  {
@@ -119,10 +131,10 @@ export const sdkMethods: SdkMethod[] = [
119
131
  httpPath: '/v3/messages/{messageId}/reactions',
120
132
  },
121
133
  {
122
- clientCallName: 'client.messages.listMessagesThread',
123
- fullyQualifiedName: 'messages.listMessagesThread',
124
- httpMethod: 'get',
125
- httpPath: '/v3/messages/{messageId}/thread',
134
+ clientCallName: 'client.messages.update',
135
+ fullyQualifiedName: 'messages.update',
136
+ httpMethod: 'patch',
137
+ httpPath: '/v3/messages/{messageId}',
126
138
  },
127
139
  {
128
140
  clientCallName: 'client.attachments.create',
@@ -166,6 +178,12 @@ export const sdkMethods: SdkMethod[] = [
166
178
  httpMethod: 'post',
167
179
  httpPath: '/v3/webhook-subscriptions',
168
180
  },
181
+ {
182
+ clientCallName: 'client.webhookSubscriptions.list',
183
+ fullyQualifiedName: 'webhookSubscriptions.list',
184
+ httpMethod: 'get',
185
+ httpPath: '/v3/webhook-subscriptions',
186
+ },
169
187
  {
170
188
  clientCallName: 'client.webhookSubscriptions.retrieve',
171
189
  fullyQualifiedName: 'webhookSubscriptions.retrieve',
@@ -178,12 +196,6 @@ export const sdkMethods: SdkMethod[] = [
178
196
  httpMethod: 'put',
179
197
  httpPath: '/v3/webhook-subscriptions/{subscriptionId}',
180
198
  },
181
- {
182
- clientCallName: 'client.webhookSubscriptions.list',
183
- fullyQualifiedName: 'webhookSubscriptions.list',
184
- httpMethod: 'get',
185
- httpPath: '/v3/webhook-subscriptions',
186
- },
187
199
  {
188
200
  clientCallName: 'client.webhookSubscriptions.delete',
189
201
  fullyQualifiedName: 'webhookSubscriptions.delete',
@@ -203,18 +215,18 @@ export const sdkMethods: SdkMethod[] = [
203
215
  httpPath: '/v3/capability/check_rcs',
204
216
  },
205
217
  { clientCallName: 'client.webhooks.events', fullyQualifiedName: 'webhooks.events' },
206
- {
207
- clientCallName: 'client.contactCard.create',
208
- fullyQualifiedName: 'contactCard.create',
209
- httpMethod: 'post',
210
- httpPath: '/v3/contact_card',
211
- },
212
218
  {
213
219
  clientCallName: 'client.contactCard.retrieve',
214
220
  fullyQualifiedName: 'contactCard.retrieve',
215
221
  httpMethod: 'get',
216
222
  httpPath: '/v3/contact_card',
217
223
  },
224
+ {
225
+ clientCallName: 'client.contactCard.create',
226
+ fullyQualifiedName: 'contactCard.create',
227
+ httpMethod: 'post',
228
+ httpPath: '/v3/contact_card',
229
+ },
218
230
  {
219
231
  clientCallName: 'client.contactCard.update',
220
232
  fullyQualifiedName: 'contactCard.update',
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?: 'stainless-api' | 'local' | undefined;
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 = 'stainless-sandbox' | 'local';
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: ['stainless-sandbox', 'local'],
54
- default: 'stainless-sandbox',
53
+ choices: ['local'],
54
+ default: 'local',
55
55
  description:
56
- "Where to run code execution in code tool; 'stainless-sandbox' will execute code in Stainless-hosted sandboxes whereas 'local' will execute code locally on the MCP server machine.",
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: ['stainless-api', 'local'],
71
- default: 'stainless-api',
70
+ choices: ['local'],
71
+ default: 'local',
72
72
  description:
73
- "Where to search documentation; 'stainless-api' uses the Stainless-hosted search API whereas 'local' uses an in-memory search index built from embedded SDK method data and optional local docs files.",
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 'stainless-api' | 'local' | undefined,
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
@@ -28,7 +28,7 @@ export const newMcpServer = async ({
28
28
  new McpServer(
29
29
  {
30
30
  name: 'linqapp_sdk_api',
31
- version: '0.24.2',
31
+ version: '0.25.0',
32
32
  },
33
33
  {
34
34
  instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
@@ -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 ?? 'stainless-sandbox',
185
+ codeExecutionMode: options?.codeExecutionMode ?? 'local',
186
186
  }),
187
187
  );
188
188
  }