@llamaindex/llama-cloud-mcp 1.7.0 → 2.0.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 (93) hide show
  1. package/code-tool-paths.cjs +4 -2
  2. package/code-tool-paths.cjs.map +1 -1
  3. package/code-tool-paths.d.cts +1 -1
  4. package/code-tool-paths.d.cts.map +1 -1
  5. package/code-tool-worker.d.mts.map +1 -1
  6. package/code-tool-worker.d.ts.map +1 -1
  7. package/code-tool-worker.js +9 -17
  8. package/code-tool-worker.js.map +1 -1
  9. package/code-tool-worker.mjs +9 -17
  10. package/code-tool-worker.mjs.map +1 -1
  11. package/code-tool.d.mts.map +1 -1
  12. package/code-tool.d.ts.map +1 -1
  13. package/code-tool.js +29 -23
  14. package/code-tool.js.map +1 -1
  15. package/code-tool.mjs +20 -11
  16. package/code-tool.mjs.map +1 -1
  17. package/docs-search-tool.d.mts +2 -0
  18. package/docs-search-tool.d.mts.map +1 -1
  19. package/docs-search-tool.d.ts +2 -0
  20. package/docs-search-tool.d.ts.map +1 -1
  21. package/docs-search-tool.js +33 -3
  22. package/docs-search-tool.js.map +1 -1
  23. package/docs-search-tool.mjs +32 -3
  24. package/docs-search-tool.mjs.map +1 -1
  25. package/http.d.mts.map +1 -1
  26. package/http.d.ts.map +1 -1
  27. package/http.js +58 -3
  28. package/http.js.map +1 -1
  29. package/http.mjs +58 -3
  30. package/http.mjs.map +1 -1
  31. package/instructions.d.mts +4 -1
  32. package/instructions.d.mts.map +1 -1
  33. package/instructions.d.ts +4 -1
  34. package/instructions.d.ts.map +1 -1
  35. package/instructions.js +30 -25
  36. package/instructions.js.map +1 -1
  37. package/instructions.mjs +27 -25
  38. package/instructions.mjs.map +1 -1
  39. package/local-docs-search.d.mts +28 -0
  40. package/local-docs-search.d.mts.map +1 -0
  41. package/local-docs-search.d.ts +28 -0
  42. package/local-docs-search.d.ts.map +1 -0
  43. package/local-docs-search.js +3603 -0
  44. package/local-docs-search.js.map +1 -0
  45. package/local-docs-search.mjs +3563 -0
  46. package/local-docs-search.mjs.map +1 -0
  47. package/methods.d.mts.map +1 -1
  48. package/methods.d.ts.map +1 -1
  49. package/methods.js +36 -84
  50. package/methods.js.map +1 -1
  51. package/methods.mjs +36 -84
  52. package/methods.mjs.map +1 -1
  53. package/options.d.mts +3 -0
  54. package/options.d.mts.map +1 -1
  55. package/options.d.ts +3 -0
  56. package/options.d.ts.map +1 -1
  57. package/options.js +19 -0
  58. package/options.js.map +1 -1
  59. package/options.mjs +19 -0
  60. package/options.mjs.map +1 -1
  61. package/package.json +19 -5
  62. package/server.d.mts +10 -1
  63. package/server.d.mts.map +1 -1
  64. package/server.d.ts +10 -1
  65. package/server.d.ts.map +1 -1
  66. package/server.js +13 -3
  67. package/server.js.map +1 -1
  68. package/server.mjs +13 -3
  69. package/server.mjs.map +1 -1
  70. package/src/code-tool-paths.cts +3 -1
  71. package/src/code-tool-worker.ts +9 -17
  72. package/src/code-tool.ts +27 -16
  73. package/src/docs-search-tool.ts +48 -9
  74. package/src/http.ts +62 -3
  75. package/src/instructions.ts +34 -26
  76. package/src/local-docs-search.ts +4218 -0
  77. package/src/methods.ts +36 -84
  78. package/src/options.ts +24 -0
  79. package/src/server.ts +23 -3
  80. package/src/stdio.ts +4 -1
  81. package/src/types.ts +3 -0
  82. package/stdio.d.mts.map +1 -1
  83. package/stdio.d.ts.map +1 -1
  84. package/stdio.js +4 -1
  85. package/stdio.js.map +1 -1
  86. package/stdio.mjs +4 -1
  87. package/stdio.mjs.map +1 -1
  88. package/types.d.mts +6 -0
  89. package/types.d.mts.map +1 -1
  90. package/types.d.ts +6 -0
  91. package/types.d.ts.map +1 -1
  92. package/types.js.map +1 -1
  93. package/types.mjs.map +1 -1
package/src/methods.ts CHANGED
@@ -59,106 +59,40 @@ export const sdkMethods: SdkMethod[] = [
59
59
  httpPath: '/api/v2/parse/{job_id}',
60
60
  },
61
61
  {
62
- clientCallName: 'client.extraction.run',
63
- fullyQualifiedName: 'extraction.run',
62
+ clientCallName: 'client.extract.create',
63
+ fullyQualifiedName: 'extract.create',
64
64
  httpMethod: 'post',
65
- httpPath: '/api/v1/extraction/run',
65
+ httpPath: '/api/v2/extract',
66
66
  },
67
67
  {
68
- clientCallName: 'client.extraction.jobs.create',
69
- fullyQualifiedName: 'extraction.jobs.create',
70
- httpMethod: 'post',
71
- httpPath: '/api/v1/extraction/jobs',
72
- },
73
- {
74
- clientCallName: 'client.extraction.jobs.list',
75
- fullyQualifiedName: 'extraction.jobs.list',
68
+ clientCallName: 'client.extract.list',
69
+ fullyQualifiedName: 'extract.list',
76
70
  httpMethod: 'get',
77
- httpPath: '/api/v1/extraction/jobs',
78
- },
79
- {
80
- clientCallName: 'client.extraction.jobs.file',
81
- fullyQualifiedName: 'extraction.jobs.file',
82
- httpMethod: 'post',
83
- httpPath: '/api/v1/extraction/jobs/file',
71
+ httpPath: '/api/v2/extract',
84
72
  },
85
73
  {
86
- clientCallName: 'client.extraction.jobs.get',
87
- fullyQualifiedName: 'extraction.jobs.get',
88
- httpMethod: 'get',
89
- httpPath: '/api/v1/extraction/jobs/{job_id}',
90
- },
91
- {
92
- clientCallName: 'client.extraction.jobs.getResult',
93
- fullyQualifiedName: 'extraction.jobs.getResult',
94
- httpMethod: 'get',
95
- httpPath: '/api/v1/extraction/jobs/{job_id}/result',
96
- },
97
- {
98
- clientCallName: 'client.extraction.runs.list',
99
- fullyQualifiedName: 'extraction.runs.list',
100
- httpMethod: 'get',
101
- httpPath: '/api/v1/extraction/runs',
102
- },
103
- {
104
- clientCallName: 'client.extraction.runs.delete',
105
- fullyQualifiedName: 'extraction.runs.delete',
74
+ clientCallName: 'client.extract.delete',
75
+ fullyQualifiedName: 'extract.delete',
106
76
  httpMethod: 'delete',
107
- httpPath: '/api/v1/extraction/runs/{run_id}',
108
- },
109
- {
110
- clientCallName: 'client.extraction.runs.get',
111
- fullyQualifiedName: 'extraction.runs.get',
112
- httpMethod: 'get',
113
- httpPath: '/api/v1/extraction/runs/{run_id}',
114
- },
115
- {
116
- clientCallName: 'client.extraction.runs.getByJob',
117
- fullyQualifiedName: 'extraction.runs.getByJob',
118
- httpMethod: 'get',
119
- httpPath: '/api/v1/extraction/runs/by-job/{job_id}',
77
+ httpPath: '/api/v2/extract/{job_id}',
120
78
  },
121
79
  {
122
- clientCallName: 'client.extraction.extractionAgents.create',
123
- fullyQualifiedName: 'extraction.extractionAgents.create',
80
+ clientCallName: 'client.extract.generateSchema',
81
+ fullyQualifiedName: 'extract.generateSchema',
124
82
  httpMethod: 'post',
125
- httpPath: '/api/v1/extraction/extraction-agents',
83
+ httpPath: '/api/v2/extract/schema/generate',
126
84
  },
127
85
  {
128
- clientCallName: 'client.extraction.extractionAgents.update',
129
- fullyQualifiedName: 'extraction.extractionAgents.update',
130
- httpMethod: 'put',
131
- httpPath: '/api/v1/extraction/extraction-agents/{extraction_agent_id}',
132
- },
133
- {
134
- clientCallName: 'client.extraction.extractionAgents.list',
135
- fullyQualifiedName: 'extraction.extractionAgents.list',
86
+ clientCallName: 'client.extract.get',
87
+ fullyQualifiedName: 'extract.get',
136
88
  httpMethod: 'get',
137
- httpPath: '/api/v1/extraction/extraction-agents',
138
- },
139
- {
140
- clientCallName: 'client.extraction.extractionAgents.delete',
141
- fullyQualifiedName: 'extraction.extractionAgents.delete',
142
- httpMethod: 'delete',
143
- httpPath: '/api/v1/extraction/extraction-agents/{extraction_agent_id}',
89
+ httpPath: '/api/v2/extract/{job_id}',
144
90
  },
145
91
  {
146
- clientCallName: 'client.extraction.extractionAgents.get',
147
- fullyQualifiedName: 'extraction.extractionAgents.get',
148
- httpMethod: 'get',
149
- httpPath: '/api/v1/extraction/extraction-agents/{extraction_agent_id}',
150
- },
151
- {
152
- clientCallName: 'client.extraction.extractionAgents.schema.generateSchema',
153
- fullyQualifiedName: 'extraction.extractionAgents.schema.generateSchema',
92
+ clientCallName: 'client.extract.validateSchema',
93
+ fullyQualifiedName: 'extract.validateSchema',
154
94
  httpMethod: 'post',
155
- httpPath: '/api/v1/extraction/extraction-agents/schema/generate',
156
- },
157
- {
158
- clientCallName: 'client.extraction.extractionAgents.schema.validateSchema',
159
- fullyQualifiedName: 'extraction.extractionAgents.schema.validateSchema',
160
- httpMethod: 'post',
161
- httpPath: '/api/v1/extraction/extraction-agents/schema/validation',
95
+ httpPath: '/api/v2/extract/schema/validation',
162
96
  },
163
97
  {
164
98
  clientCallName: 'client.classifier.jobs.create',
@@ -184,6 +118,24 @@ export const sdkMethods: SdkMethod[] = [
184
118
  httpMethod: 'get',
185
119
  httpPath: '/api/v1/classifier/jobs/{classify_job_id}/results',
186
120
  },
121
+ {
122
+ clientCallName: 'client.classify.create',
123
+ fullyQualifiedName: 'classify.create',
124
+ httpMethod: 'post',
125
+ httpPath: '/api/v2/classify',
126
+ },
127
+ {
128
+ clientCallName: 'client.classify.list',
129
+ fullyQualifiedName: 'classify.list',
130
+ httpMethod: 'get',
131
+ httpPath: '/api/v2/classify',
132
+ },
133
+ {
134
+ clientCallName: 'client.classify.get',
135
+ fullyQualifiedName: 'classify.get',
136
+ httpMethod: 'get',
137
+ httpPath: '/api/v2/classify/{job_id}',
138
+ },
187
139
  {
188
140
  clientCallName: 'client.projects.list',
189
141
  fullyQualifiedName: 'projects.list',
package/src/options.ts CHANGED
@@ -18,10 +18,13 @@ export type McpOptions = {
18
18
  includeCodeTool?: boolean | undefined;
19
19
  includeDocsTools?: boolean | undefined;
20
20
  stainlessApiKey?: string | undefined;
21
+ docsSearchMode?: 'stainless-api' | 'local' | undefined;
22
+ docsDir?: string | undefined;
21
23
  codeAllowHttpGets?: boolean | undefined;
22
24
  codeAllowedMethods?: string[] | undefined;
23
25
  codeBlockedMethods?: string[] | undefined;
24
26
  codeExecutionMode: McpCodeExecutionMode;
27
+ customInstructionsPath?: string | undefined;
25
28
  };
26
29
 
27
30
  export type McpCodeExecutionMode = 'stainless-sandbox' | 'local';
@@ -52,7 +55,23 @@ export function parseCLIOptions(): CLIOptions {
52
55
  description:
53
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.",
54
57
  })
58
+ .option('custom-instructions-path', {
59
+ type: 'string',
60
+ description: 'Path to custom instructions for the MCP server',
61
+ })
55
62
  .option('debug', { type: 'boolean', description: 'Enable debug logging' })
63
+ .option('docs-dir', {
64
+ type: 'string',
65
+ description:
66
+ 'Path to a directory of local documentation files (markdown/JSON) to include in local docs search.',
67
+ })
68
+ .option('docs-search-mode', {
69
+ type: 'string',
70
+ choices: ['stainless-api', 'local'],
71
+ default: 'stainless-api',
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.",
74
+ })
56
75
  .option('log-format', {
57
76
  type: 'string',
58
77
  choices: ['json', 'pretty'],
@@ -113,10 +132,13 @@ export function parseCLIOptions(): CLIOptions {
113
132
  ...(includeDocsTools !== undefined && { includeDocsTools }),
114
133
  debug: !!argv.debug,
115
134
  stainlessApiKey: argv.stainlessApiKey,
135
+ docsSearchMode: argv.docsSearchMode as 'stainless-api' | 'local' | undefined,
136
+ docsDir: argv.docsDir,
116
137
  codeAllowHttpGets: argv.codeAllowHttpGets,
117
138
  codeAllowedMethods: argv.codeAllowedMethods,
118
139
  codeBlockedMethods: argv.codeBlockedMethods,
119
140
  codeExecutionMode: argv.codeExecutionMode as McpCodeExecutionMode,
141
+ customInstructionsPath: argv.customInstructionsPath,
120
142
  transport,
121
143
  logFormat,
122
144
  port: argv.port,
@@ -157,5 +179,7 @@ export function parseQueryOptions(defaultOptions: McpOptions, query: unknown): M
157
179
  ...(codeTool !== undefined && { includeCodeTool: codeTool }),
158
180
  ...(docsTools !== undefined && { includeDocsTools: docsTools }),
159
181
  codeExecutionMode: defaultOptions.codeExecutionMode,
182
+ docsSearchMode: defaultOptions.docsSearchMode,
183
+ docsDir: defaultOptions.docsDir,
160
184
  };
161
185
  }
package/src/server.ts CHANGED
@@ -11,19 +11,27 @@ import { ClientOptions } from '@llamaindex/llama-cloud';
11
11
  import LlamaCloud from '@llamaindex/llama-cloud';
12
12
  import { codeTool } from './code-tool';
13
13
  import docsSearchTool from './docs-search-tool';
14
+ import { setLocalSearch } from './docs-search-tool';
15
+ import { LocalDocsSearch } from './local-docs-search';
14
16
  import { getInstructions } from './instructions';
15
17
  import { McpOptions } from './options';
16
18
  import { blockedMethodsForCodeTool } from './methods';
17
19
  import { HandlerFunction, McpRequestContext, ToolCallResult, McpTool } from './types';
18
20
 
19
- export const newMcpServer = async (stainlessApiKey: string | undefined) =>
21
+ export const newMcpServer = async ({
22
+ stainlessApiKey,
23
+ customInstructionsPath,
24
+ }: {
25
+ stainlessApiKey?: string | undefined;
26
+ customInstructionsPath?: string | undefined;
27
+ }) =>
20
28
  new McpServer(
21
29
  {
22
30
  name: 'llamaindex_llama_cloud_api',
23
- version: '1.7.0',
31
+ version: '2.0.0',
24
32
  },
25
33
  {
26
- instructions: await getInstructions(stainlessApiKey),
34
+ instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
27
35
  capabilities: { tools: {}, logging: {} },
28
36
  },
29
37
  );
@@ -37,6 +45,9 @@ export async function initMcpServer(params: {
37
45
  clientOptions?: ClientOptions;
38
46
  mcpOptions?: McpOptions;
39
47
  stainlessApiKey?: string | undefined;
48
+ upstreamClientEnvs?: Record<string, string> | undefined;
49
+ mcpSessionId?: string | undefined;
50
+ mcpClientInfo?: { name: string; version: string } | undefined;
40
51
  }) {
41
52
  const server = params.server instanceof McpServer ? params.server.server : params.server;
42
53
 
@@ -55,6 +66,12 @@ export async function initMcpServer(params: {
55
66
  error: logAtLevel('error'),
56
67
  };
57
68
 
69
+ if (params.mcpOptions?.docsSearchMode === 'local') {
70
+ const docsDir = params.mcpOptions?.docsDir;
71
+ const localSearch = await LocalDocsSearch.create(docsDir ? { docsDir } : undefined);
72
+ setLocalSearch(localSearch);
73
+ }
74
+
58
75
  let _client: LlamaCloud | undefined;
59
76
  let _clientError: Error | undefined;
60
77
  let _logLevel: 'debug' | 'info' | 'warn' | 'error' | 'off' | undefined;
@@ -118,6 +135,9 @@ export async function initMcpServer(params: {
118
135
  reqContext: {
119
136
  client,
120
137
  stainlessApiKey: params.stainlessApiKey ?? params.mcpOptions?.stainlessApiKey,
138
+ upstreamClientEnvs: params.upstreamClientEnvs,
139
+ mcpSessionId: params.mcpSessionId,
140
+ mcpClientInfo: params.mcpClientInfo,
121
141
  },
122
142
  args,
123
143
  });
package/src/stdio.ts CHANGED
@@ -4,7 +4,10 @@ import { initMcpServer, newMcpServer } from './server';
4
4
  import { getLogger } from './logger';
5
5
 
6
6
  export const launchStdioServer = async (mcpOptions: McpOptions) => {
7
- const server = await newMcpServer(mcpOptions.stainlessApiKey);
7
+ const server = await newMcpServer({
8
+ stainlessApiKey: mcpOptions.stainlessApiKey,
9
+ customInstructionsPath: mcpOptions.customInstructionsPath,
10
+ });
8
11
 
9
12
  await initMcpServer({ server, mcpOptions, stainlessApiKey: mcpOptions.stainlessApiKey });
10
13
 
package/src/types.ts CHANGED
@@ -45,6 +45,9 @@ export type ToolCallResult = {
45
45
  export type McpRequestContext = {
46
46
  client: LlamaCloud;
47
47
  stainlessApiKey?: string | undefined;
48
+ upstreamClientEnvs?: Record<string, string> | undefined;
49
+ mcpSessionId?: string | undefined;
50
+ mcpClientInfo?: { name: string; version: string } | undefined;
48
51
  };
49
52
 
50
53
  export type HandlerFunction = ({
package/stdio.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"stdio.d.mts","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OACO,EAAE,UAAU,EAAE;AAIrB,eAAO,MAAM,iBAAiB,GAAU,YAAY,UAAU,kBAQ7D,CAAC"}
1
+ {"version":3,"file":"stdio.d.mts","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OACO,EAAE,UAAU,EAAE;AAIrB,eAAO,MAAM,iBAAiB,GAAU,YAAY,UAAU,kBAW7D,CAAC"}
package/stdio.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OACO,EAAE,UAAU,EAAE;AAIrB,eAAO,MAAM,iBAAiB,GAAU,YAAY,UAAU,kBAQ7D,CAAC"}
1
+ {"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OACO,EAAE,UAAU,EAAE;AAIrB,eAAO,MAAM,iBAAiB,GAAU,YAAY,UAAU,kBAW7D,CAAC"}
package/stdio.js CHANGED
@@ -5,7 +5,10 @@ const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
5
5
  const server_1 = require("./server.js");
6
6
  const logger_1 = require("./logger.js");
7
7
  const launchStdioServer = async (mcpOptions) => {
8
- const server = await (0, server_1.newMcpServer)(mcpOptions.stainlessApiKey);
8
+ const server = await (0, server_1.newMcpServer)({
9
+ stainlessApiKey: mcpOptions.stainlessApiKey,
10
+ customInstructionsPath: mcpOptions.customInstructionsPath,
11
+ });
9
12
  await (0, server_1.initMcpServer)({ server, mcpOptions, stainlessApiKey: mcpOptions.stainlessApiKey });
10
13
  const transport = new stdio_js_1.StdioServerTransport();
11
14
  await server.connect(transport);
package/stdio.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"stdio.js","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":";;;AAAA,wEAAiF;AAEjF,wCAAuD;AACvD,wCAAqC;AAE9B,MAAM,iBAAiB,GAAG,KAAK,EAAE,UAAsB,EAAE,EAAE;IAChE,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAY,EAAC,UAAU,CAAC,eAAe,CAAC,CAAC;IAE9D,MAAM,IAAA,sBAAa,EAAC,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC;IAEzF,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,IAAA,kBAAS,GAAE,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;AAClD,CAAC,CAAC;AARW,QAAA,iBAAiB,qBAQ5B"}
1
+ {"version":3,"file":"stdio.js","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":";;;AAAA,wEAAiF;AAEjF,wCAAuD;AACvD,wCAAqC;AAE9B,MAAM,iBAAiB,GAAG,KAAK,EAAE,UAAsB,EAAE,EAAE;IAChE,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAY,EAAC;QAChC,eAAe,EAAE,UAAU,CAAC,eAAe;QAC3C,sBAAsB,EAAE,UAAU,CAAC,sBAAsB;KAC1D,CAAC,CAAC;IAEH,MAAM,IAAA,sBAAa,EAAC,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC;IAEzF,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,IAAA,kBAAS,GAAE,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;AAClD,CAAC,CAAC;AAXW,QAAA,iBAAiB,qBAW5B"}
package/stdio.mjs CHANGED
@@ -2,7 +2,10 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
2
2
  import { initMcpServer, newMcpServer } from "./server.mjs";
3
3
  import { getLogger } from "./logger.mjs";
4
4
  export const launchStdioServer = async (mcpOptions) => {
5
- const server = await newMcpServer(mcpOptions.stainlessApiKey);
5
+ const server = await newMcpServer({
6
+ stainlessApiKey: mcpOptions.stainlessApiKey,
7
+ customInstructionsPath: mcpOptions.customInstructionsPath,
8
+ });
6
9
  await initMcpServer({ server, mcpOptions, stainlessApiKey: mcpOptions.stainlessApiKey });
7
10
  const transport = new StdioServerTransport();
8
11
  await server.connect(transport);
package/stdio.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"stdio.mjs","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C;OAEzE,EAAE,aAAa,EAAE,YAAY,EAAE;OAC/B,EAAE,SAAS,EAAE;AAEpB,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EAAE,UAAsB,EAAE,EAAE;IAChE,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;IAE9D,MAAM,aAAa,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC;IAEzF,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,SAAS,EAAE,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;AAClD,CAAC,CAAC"}
1
+ {"version":3,"file":"stdio.mjs","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C;OAEzE,EAAE,aAAa,EAAE,YAAY,EAAE;OAC/B,EAAE,SAAS,EAAE;AAEpB,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EAAE,UAAsB,EAAE,EAAE;IAChE,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC;QAChC,eAAe,EAAE,UAAU,CAAC,eAAe;QAC3C,sBAAsB,EAAE,UAAU,CAAC,sBAAsB;KAC1D,CAAC,CAAC;IAEH,MAAM,aAAa,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC;IAEzF,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,SAAS,EAAE,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;AAClD,CAAC,CAAC"}
package/types.d.mts CHANGED
@@ -34,6 +34,12 @@ export type ToolCallResult = {
34
34
  export type McpRequestContext = {
35
35
  client: LlamaCloud;
36
36
  stainlessApiKey?: string | undefined;
37
+ upstreamClientEnvs?: Record<string, string> | undefined;
38
+ mcpSessionId?: string | undefined;
39
+ mcpClientInfo?: {
40
+ name: string;
41
+ version: string;
42
+ } | undefined;
37
43
  };
38
44
  export type HandlerFunction = ({ reqContext, args, }: {
39
45
  reqContext: McpRequestContext;
package/types.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"OAEO,UAAU,MAAM,yBAAyB;OACzC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EACJ;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,GACD;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACP,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,iBAAiB,G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Ae,GAAG,CAAC,EAC7B,UAAU,EACV,IAAI,GACL,EAAE;IACD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CAC3C,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;AAE9B,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,GAAG,cAAc,CASnE;AAED,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC,CA2BvF;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,CAU7D;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC"}
package/types.d.ts CHANGED
@@ -34,6 +34,12 @@ export type ToolCallResult = {
34
34
  export type McpRequestContext = {
35
35
  client: LlamaCloud;
36
36
  stainlessApiKey?: string | undefined;
37
+ upstreamClientEnvs?: Record<string, string> | undefined;
38
+ mcpSessionId?: string | undefined;
39
+ mcpClientInfo?: {
40
+ name: string;
41
+ version: string;
42
+ } | undefined;
37
43
  };
38
44
  export type HandlerFunction = ({ reqContext, args, }: {
39
45
  reqContext: McpRequestContext;
package/types.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"OAEO,UAAU,MAAM,yBAAyB;O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