@retell-ai/mcp-server 5.8.0 → 5.10.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-paths.cjs +4 -2
- package/code-tool-paths.cjs.map +1 -1
- package/code-tool-paths.d.cts +1 -1
- package/code-tool-paths.d.cts.map +1 -1
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +27 -23
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +18 -11
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.js +1 -1
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +1 -1
- package/docs-search-tool.mjs.map +1 -1
- package/http.d.mts.map +1 -1
- package/http.d.ts.map +1 -1
- package/http.js +41 -2
- package/http.js.map +1 -1
- package/http.mjs +41 -2
- package/http.mjs.map +1 -1
- package/instructions.d.mts.map +1 -1
- package/instructions.d.ts.map +1 -1
- package/instructions.js +10 -14
- package/instructions.js.map +1 -1
- package/instructions.mjs +10 -14
- package/instructions.mjs.map +1 -1
- package/package.json +8 -5
- package/server.d.mts +1 -0
- package/server.d.mts.map +1 -1
- package/server.d.ts +1 -0
- package/server.d.ts.map +1 -1
- package/server.js +2 -1
- package/server.js.map +1 -1
- package/server.mjs +2 -1
- package/server.mjs.map +1 -1
- package/src/code-tool-paths.cts +3 -1
- package/src/code-tool.ts +22 -13
- package/src/docs-search-tool.ts +1 -1
- package/src/http.ts +44 -2
- package/src/instructions.ts +12 -17
- package/src/server.ts +3 -1
- package/src/types.ts +1 -0
- package/types.d.mts +1 -0
- package/types.d.mts.map +1 -1
- package/types.d.ts +1 -0
- package/types.d.ts.map +1 -1
- package/types.js.map +1 -1
- package/types.mjs.map +1 -1
package/instructions.js
CHANGED
|
@@ -6,31 +6,27 @@ const util_1 = require("./util.js");
|
|
|
6
6
|
const logger_1 = require("./logger.js");
|
|
7
7
|
const INSTRUCTIONS_CACHE_TTL_MS = 15 * 60 * 1000; // 15 minutes
|
|
8
8
|
const instructionsCache = new Map();
|
|
9
|
-
|
|
10
|
-
const _cacheCleanupInterval = setInterval(() => {
|
|
9
|
+
async function getInstructions(stainlessApiKey) {
|
|
11
10
|
const now = Date.now();
|
|
11
|
+
const cacheKey = stainlessApiKey ?? '';
|
|
12
|
+
const cached = instructionsCache.get(cacheKey);
|
|
13
|
+
if (cached && now - cached.fetchedAt <= INSTRUCTIONS_CACHE_TTL_MS) {
|
|
14
|
+
return cached.fetchedInstructions;
|
|
15
|
+
}
|
|
16
|
+
// Evict stale entries so the cache doesn't grow unboundedly.
|
|
12
17
|
for (const [key, entry] of instructionsCache) {
|
|
13
18
|
if (now - entry.fetchedAt > INSTRUCTIONS_CACHE_TTL_MS) {
|
|
14
19
|
instructionsCache.delete(key);
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
}, INSTRUCTIONS_CACHE_TTL_MS);
|
|
18
|
-
// Don't keep the process alive just for cleanup.
|
|
19
|
-
_cacheCleanupInterval.unref();
|
|
20
|
-
async function getInstructions(stainlessApiKey) {
|
|
21
|
-
const cacheKey = stainlessApiKey ?? '';
|
|
22
|
-
const cached = instructionsCache.get(cacheKey);
|
|
23
|
-
if (cached && Date.now() - cached.fetchedAt <= INSTRUCTIONS_CACHE_TTL_MS) {
|
|
24
|
-
return cached.fetchedInstructions;
|
|
25
|
-
}
|
|
26
22
|
const fetchedInstructions = await fetchLatestInstructions(stainlessApiKey);
|
|
27
|
-
instructionsCache.set(cacheKey, { fetchedInstructions, fetchedAt:
|
|
23
|
+
instructionsCache.set(cacheKey, { fetchedInstructions, fetchedAt: now });
|
|
28
24
|
return fetchedInstructions;
|
|
29
25
|
}
|
|
30
26
|
async function fetchLatestInstructions(stainlessApiKey) {
|
|
31
27
|
// Setting the stainless API key is optional, but may be required
|
|
32
28
|
// to authenticate requests to the Stainless API.
|
|
33
|
-
const response = await fetch((0, util_1.readEnv)('CODE_MODE_INSTRUCTIONS_URL') ?? 'https://api.stainless.com/api/ai/instructions/
|
|
29
|
+
const response = await fetch((0, util_1.readEnv)('CODE_MODE_INSTRUCTIONS_URL') ?? 'https://api.stainless.com/api/ai/instructions/retell', {
|
|
34
30
|
method: 'GET',
|
|
35
31
|
headers: { ...(stainlessApiKey && { Authorization: stainlessApiKey }) },
|
|
36
32
|
});
|
|
@@ -38,7 +34,7 @@ async function fetchLatestInstructions(stainlessApiKey) {
|
|
|
38
34
|
if (!response.ok) {
|
|
39
35
|
(0, logger_1.getLogger)().warn('Warning: failed to retrieve MCP server instructions. Proceeding with default instructions...');
|
|
40
36
|
instructions =
|
|
41
|
-
'\n This is the
|
|
37
|
+
'\n This is the retell MCP server.\n\n Available tools:\n - search_docs: Search SDK documentation to find the right methods and parameters.\n - execute: Run TypeScript code against a pre-authenticated SDK client. Define an async run(client) function.\n\n Workflow:\n - If unsure about the API, call search_docs first.\n - Write complete solutions in a single execute call when possible. For large datasets, use API filters to narrow results or paginate within a single execute block.\n - If execute returns an error, read the error and fix your code rather than retrying the same approach.\n - Variables do not persist between execute calls. Return or log all data you need.\n - Individual HTTP requests to the API have a 30-second timeout. If a request times out, try a smaller query or add filters.\n - Code execution has a total timeout of approximately 5 minutes. If your code times out, simplify it or break it into smaller steps.\n ';
|
|
42
38
|
}
|
|
43
39
|
instructions ??= (await response.json()).instructions;
|
|
44
40
|
return instructions;
|
package/instructions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["src/instructions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;
|
|
1
|
+
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["src/instructions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;AActF,0CAmBC;AA/BD,oCAAiC;AACjC,wCAAqC;AAErC,MAAM,yBAAyB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,aAAa;AAO/D,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAkC,CAAC;A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u7BAAu7B,CAAC;IAC57B,CAAC;IAED,YAAY,KAAM,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAA8B,CAAC,YAAY,CAAC;IAEpF,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
package/instructions.mjs
CHANGED
|
@@ -3,31 +3,27 @@ import { readEnv } from "./util.mjs";
|
|
|
3
3
|
import { getLogger } from "./logger.mjs";
|
|
4
4
|
const INSTRUCTIONS_CACHE_TTL_MS = 15 * 60 * 1000; // 15 minutes
|
|
5
5
|
const instructionsCache = new Map();
|
|
6
|
-
|
|
7
|
-
const _cacheCleanupInterval = setInterval(() => {
|
|
6
|
+
export async function getInstructions(stainlessApiKey) {
|
|
8
7
|
const now = Date.now();
|
|
8
|
+
const cacheKey = stainlessApiKey ?? '';
|
|
9
|
+
const cached = instructionsCache.get(cacheKey);
|
|
10
|
+
if (cached && now - cached.fetchedAt <= INSTRUCTIONS_CACHE_TTL_MS) {
|
|
11
|
+
return cached.fetchedInstructions;
|
|
12
|
+
}
|
|
13
|
+
// Evict stale entries so the cache doesn't grow unboundedly.
|
|
9
14
|
for (const [key, entry] of instructionsCache) {
|
|
10
15
|
if (now - entry.fetchedAt > INSTRUCTIONS_CACHE_TTL_MS) {
|
|
11
16
|
instructionsCache.delete(key);
|
|
12
17
|
}
|
|
13
18
|
}
|
|
14
|
-
}, INSTRUCTIONS_CACHE_TTL_MS);
|
|
15
|
-
// Don't keep the process alive just for cleanup.
|
|
16
|
-
_cacheCleanupInterval.unref();
|
|
17
|
-
export async function getInstructions(stainlessApiKey) {
|
|
18
|
-
const cacheKey = stainlessApiKey ?? '';
|
|
19
|
-
const cached = instructionsCache.get(cacheKey);
|
|
20
|
-
if (cached && Date.now() - cached.fetchedAt <= INSTRUCTIONS_CACHE_TTL_MS) {
|
|
21
|
-
return cached.fetchedInstructions;
|
|
22
|
-
}
|
|
23
19
|
const fetchedInstructions = await fetchLatestInstructions(stainlessApiKey);
|
|
24
|
-
instructionsCache.set(cacheKey, { fetchedInstructions, fetchedAt:
|
|
20
|
+
instructionsCache.set(cacheKey, { fetchedInstructions, fetchedAt: now });
|
|
25
21
|
return fetchedInstructions;
|
|
26
22
|
}
|
|
27
23
|
async function fetchLatestInstructions(stainlessApiKey) {
|
|
28
24
|
// Setting the stainless API key is optional, but may be required
|
|
29
25
|
// to authenticate requests to the Stainless API.
|
|
30
|
-
const response = await fetch(readEnv('CODE_MODE_INSTRUCTIONS_URL') ?? 'https://api.stainless.com/api/ai/instructions/
|
|
26
|
+
const response = await fetch(readEnv('CODE_MODE_INSTRUCTIONS_URL') ?? 'https://api.stainless.com/api/ai/instructions/retell', {
|
|
31
27
|
method: 'GET',
|
|
32
28
|
headers: { ...(stainlessApiKey && { Authorization: stainlessApiKey }) },
|
|
33
29
|
});
|
|
@@ -35,7 +31,7 @@ async function fetchLatestInstructions(stainlessApiKey) {
|
|
|
35
31
|
if (!response.ok) {
|
|
36
32
|
getLogger().warn('Warning: failed to retrieve MCP server instructions. Proceeding with default instructions...');
|
|
37
33
|
instructions =
|
|
38
|
-
'\n This is the
|
|
34
|
+
'\n This is the retell MCP server.\n\n Available tools:\n - search_docs: Search SDK documentation to find the right methods and parameters.\n - execute: Run TypeScript code against a pre-authenticated SDK client. Define an async run(client) function.\n\n Workflow:\n - If unsure about the API, call search_docs first.\n - Write complete solutions in a single execute call when possible. For large datasets, use API filters to narrow results or paginate within a single execute block.\n - If execute returns an error, read the error and fix your code rather than retrying the same approach.\n - Variables do not persist between execute calls. Return or log all data you need.\n - Individual HTTP requests to the API have a 30-second timeout. If a request times out, try a smaller query or add filters.\n - Code execution has a total timeout of approximately 5 minutes. If your code times out, simplify it or break it into smaller steps.\n ';
|
|
39
35
|
}
|
|
40
36
|
instructions ??= (await response.json()).instructions;
|
|
41
37
|
return instructions;
|
package/instructions.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.mjs","sourceRoot":"","sources":["src/instructions.ts"],"names":[],"mappings":"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,mBAAmB,CAAC;AAC7B,CAAC;AAED,KAAK,UAAU,uBAAuB,CAAC,eAAmC;IACxE,iEAAiE;IACjE,iDAAiD;IACjD,MAAM,QAAQ,GAAG,MAAM,KAAK,CAC1B,OAAO,CAAC,4BAA4B,CAAC,IAAI,sDAAsD,EAC/F;QACE,MAAM,EAAE,KAAK;QACb,OAAO,EAAE,EAAE,GAAG,CAAC,eAAe,IAAI,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC,EAAE;KACxE,CACF,CAAC;IAEF,IAAI,YAAgC,CAAC;IACrC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,SAAS,EAAE,CAAC,IAAI,CACd,8FAA8F,CAC/F,CAAC;QAEF,YAAY;YACV,u7BAAu7B,CAAC;IAC57B,CAAC;IAED,YAAY,KAAM,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAA8B,CAAC,YAAY,CAAC;IAEpF,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@retell-ai/mcp-server",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0",
|
|
4
4
|
"description": "The official MCP Server for the Retell API",
|
|
5
5
|
"author": "Retell <support@retellai.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -23,13 +23,16 @@
|
|
|
23
23
|
"build": "bash ./build",
|
|
24
24
|
"format": "prettier --write --cache --cache-strategy metadata . !dist",
|
|
25
25
|
"tsn": "ts-node -r tsconfig-paths/register",
|
|
26
|
-
"lint": "eslint
|
|
27
|
-
"fix": "eslint --fix
|
|
26
|
+
"lint": "eslint .",
|
|
27
|
+
"fix": "eslint --fix ."
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"retell-sdk": "^5.
|
|
30
|
+
"retell-sdk": "^5.10.0",
|
|
31
|
+
"ajv": "^8.18.0",
|
|
31
32
|
"@cloudflare/cabidela": "^0.2.4",
|
|
32
|
-
"@
|
|
33
|
+
"@hono/node-server": "^1.19.10",
|
|
34
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
35
|
+
"hono": "^4.12.4",
|
|
33
36
|
"@valtown/deno-http-worker": "^0.0.21",
|
|
34
37
|
"cookie-parser": "^1.4.6",
|
|
35
38
|
"cors": "^2.8.5",
|
package/server.d.mts
CHANGED
|
@@ -13,6 +13,7 @@ export declare function initMcpServer(params: {
|
|
|
13
13
|
clientOptions?: ClientOptions;
|
|
14
14
|
mcpOptions?: McpOptions;
|
|
15
15
|
stainlessApiKey?: string | undefined;
|
|
16
|
+
upstreamClientEnvs?: Record<string, string> | undefined;
|
|
16
17
|
}): Promise<void>;
|
|
17
18
|
/**
|
|
18
19
|
* Selects the tools to include in the MCP Server based on the provided options.
|
package/server.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.mts","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,MAAM,2CAA2C;OAC3D,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAM5D,EAAE,aAAa,EAAE,MAAM,YAAY;OAMnC,EAAE,UAAU,EAAE;OAEd,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO,EAAE;AAEtE,eAAO,MAAM,YAAY,GAAU,iBAAiB,MAAM,GAAG,SAAS,uBAUnE,CAAC;AAEJ;;;GAGG;AACH,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.mts","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,MAAM,2CAA2C;OAC3D,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAM5D,EAAE,aAAa,EAAE,MAAM,YAAY;OAMnC,EAAE,UAAU,EAAE;OAEd,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO,EAAE;AAEtE,eAAO,MAAM,YAAY,GAAU,iBAAiB,MAAM,GAAG,SAAS,uBAUnE,CAAC;AAEJ;;;GAGG;AACH,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;CACzD,iBAmHA;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,EAAE,CAe3D;AAED;;GAEG;AACH,wBAAsB,cAAc,CAAC,EACnC,OAAO,EACP,UAAU,EACV,IAAI,GACL,EAAE;IACD,OAAO,EAAE,eAAe,CAAC;IACzB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CAC3C,GAAG,OAAO,CAAC,cAAc,CAAC,CAE1B"}
|
package/server.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare function initMcpServer(params: {
|
|
|
13
13
|
clientOptions?: ClientOptions;
|
|
14
14
|
mcpOptions?: McpOptions;
|
|
15
15
|
stainlessApiKey?: string | undefined;
|
|
16
|
+
upstreamClientEnvs?: Record<string, string> | undefined;
|
|
16
17
|
}): Promise<void>;
|
|
17
18
|
/**
|
|
18
19
|
* Selects the tools to include in the MCP Server based on the provided options.
|
package/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,MAAM,2CAA2C;OAC3D,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAM5D,EAAE,aAAa,EAAE,MAAM,YAAY;OAMnC,EAAE,UAAU,EAAE;OAEd,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO,EAAE;AAEtE,eAAO,MAAM,YAAY,GAAU,iBAAiB,MAAM,GAAG,SAAS,uBAUnE,CAAC;AAEJ;;;GAGG;AACH,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,MAAM,2CAA2C;OAC3D,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAM5D,EAAE,aAAa,EAAE,MAAM,YAAY;OAMnC,EAAE,UAAU,EAAE;OAEd,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO,EAAE;AAEtE,eAAO,MAAM,YAAY,GAAU,iBAAiB,MAAM,GAAG,SAAS,uBAUnE,CAAC;AAEJ;;;GAGG;AACH,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;CACzD,iBAmHA;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,EAAE,CAe3D;AAED;;GAEG;AACH,wBAAsB,cAAc,CAAC,EACnC,OAAO,EACP,UAAU,EACV,IAAI,GACL,EAAE;IACD,OAAO,EAAE,eAAe,CAAC;IACzB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CAC3C,GAAG,OAAO,CAAC,cAAc,CAAC,CAE1B"}
|
package/server.js
CHANGED
|
@@ -18,7 +18,7 @@ const instructions_1 = require("./instructions.js");
|
|
|
18
18
|
const methods_1 = require("./methods.js");
|
|
19
19
|
const newMcpServer = async (stainlessApiKey) => new mcp_js_1.McpServer({
|
|
20
20
|
name: 'retell_sdk_api',
|
|
21
|
-
version: '5.
|
|
21
|
+
version: '5.10.0',
|
|
22
22
|
}, {
|
|
23
23
|
instructions: await (0, instructions_1.getInstructions)(stainlessApiKey),
|
|
24
24
|
capabilities: { tools: {}, logging: {} },
|
|
@@ -103,6 +103,7 @@ async function initMcpServer(params) {
|
|
|
103
103
|
reqContext: {
|
|
104
104
|
client,
|
|
105
105
|
stainlessApiKey: params.stainlessApiKey ?? params.mcpOptions?.stainlessApiKey,
|
|
106
|
+
upstreamClientEnvs: params.upstreamClientEnvs,
|
|
106
107
|
},
|
|
107
108
|
args,
|
|
108
109
|
});
|
package/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAmCtF,
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAmCtF,sCAyHC;AAKD,kCAeC;AAKD,wCAUC;AA5LD,oEAAoE;AACpE,iEAI4C;AAE5C,oCAAwC;AACxC,4DAAgC;AAChC,8CAAuC;AACvC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,GAAG,OAAO,CAAC;gBACnB,MAAM;YACR;gBACE,QAAQ,GAAG,KAAK,CAAC;gBACjB,MAAM;QACV,CAAC;QACD,SAAS,GAAG,QAAQ,CAAC;QACrB,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC9C,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,OAAoB;IAC9C,MAAM,aAAa,GAAG,EAAE,CAAC;IAEzB,IAAI,OAAO,EAAE,eAAe,IAAI,IAAI,EAAE,CAAC;QACrC,aAAa,CAAC,IAAI,CAChB,IAAA,oBAAQ,EAAC;YACP,cAAc,EAAE,IAAA,mCAAyB,EAAC,OAAO,CAAC;YAClD,iBAAiB,EAAE,OAAO,EAAE,iBAAiB,IAAI,mBAAmB;SACrE,CAAC,CACH,CAAC;IACJ,CAAC;IACD,IAAI,OAAO,EAAE,gBAAgB,IAAI,IAAI,EAAE,CAAC;QACtC,aAAa,CAAC,IAAI,CAAC,0BAAc,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED;;GAEG;AACI,KAAK,UAAU,cAAc,CAAC,EACnC,OAAO,EACP,UAAU,EACV,IAAI,GAKL;IACC,OAAO,MAAM,OAAO,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC;AACzD,CAAC"}
|
package/server.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { getInstructions } from "./instructions.mjs";
|
|
|
9
9
|
import { blockedMethodsForCodeTool } from "./methods.mjs";
|
|
10
10
|
export const newMcpServer = async (stainlessApiKey) => new McpServer({
|
|
11
11
|
name: 'retell_sdk_api',
|
|
12
|
-
version: '5.
|
|
12
|
+
version: '5.10.0',
|
|
13
13
|
}, {
|
|
14
14
|
instructions: await getInstructions(stainlessApiKey),
|
|
15
15
|
capabilities: { tools: {}, logging: {} },
|
|
@@ -93,6 +93,7 @@ export async function initMcpServer(params) {
|
|
|
93
93
|
reqContext: {
|
|
94
94
|
client,
|
|
95
95
|
stainlessApiKey: params.stainlessApiKey ?? params.mcpOptions?.stainlessApiKey,
|
|
96
|
+
upstreamClientEnvs: params.upstreamClientEnvs,
|
|
96
97
|
},
|
|
97
98
|
args,
|
|
98
99
|
});
|
package/server.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.mjs","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAC5D,EACL,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,oCAAoC;OAEpC,EAAE,cAAc,EAAE;OAClB,MAAM,MAAM,YAAY;OACxB,EAAE,QAAQ,EAAE;OACZ,cAAc;OACd,EAAE,eAAe,EAAE;OAEnB,EAAE,yBAAyB,EAAE;AAGpC,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAAE,eAAmC,EAAE,EAAE,CACxE,IAAI,SAAS,CACX;IACE,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"server.mjs","sourceRoot":"","sources":["src/server.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAC5D,EACL,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,oCAAoC;OAEpC,EAAE,cAAc,EAAE;OAClB,MAAM,MAAM,YAAY;OACxB,EAAE,QAAQ,EAAE;OACZ,cAAc;OACd,EAAE,eAAe,EAAE;OAEnB,EAAE,yBAAyB,EAAE;AAGpC,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAAE,eAAmC,EAAE,EAAE,CACxE,IAAI,SAAS,CACX;IACE,IAAI,EAAE,gBA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OAAO,CAAC,WAAW,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC9C,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,OAAoB;IAC9C,MAAM,aAAa,GAAG,EAAE,CAAC;IAEzB,IAAI,OAAO,EAAE,eAAe,IAAI,IAAI,EAAE,CAAC;QACrC,aAAa,CAAC,IAAI,CAChB,QAAQ,CAAC;YACP,cAAc,EAAE,yBAAyB,CAAC,OAAO,CAAC;YAClD,iBAAiB,EAAE,OAAO,EAAE,iBAAiB,IAAI,mBAAmB;SACrE,CAAC,CACH,CAAC;IACJ,CAAC;IACD,IAAI,OAAO,EAAE,gBAAgB,IAAI,IAAI,EAAE,CAAC;QACtC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,EACnC,OAAO,EACP,UAAU,EACV,IAAI,GAKL;IACC,OAAO,MAAM,OAAO,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC;AACzD,CAAC"}
|
package/src/code-tool-paths.cts
CHANGED
package/src/code-tool.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import url from 'node:url';
|
|
6
|
-
import { newDenoHTTPWorker } from '@valtown/deno-http-worker';
|
|
7
|
-
import { workerPath } from './code-tool-paths.cjs';
|
|
8
3
|
import {
|
|
9
4
|
ContentBlock,
|
|
10
5
|
McpRequestContext,
|
|
@@ -152,18 +147,20 @@ const remoteStainlessHandler = async ({
|
|
|
152
147
|
|
|
153
148
|
const codeModeEndpoint = readEnv('CODE_MODE_ENDPOINT_URL') ?? 'https://api.stainless.com/api/ai/code-tool';
|
|
154
149
|
|
|
150
|
+
const localClientEnvs = { RETELL_BASE_URL: readEnv('RETELL_BASE_URL') ?? client.baseURL ?? undefined };
|
|
151
|
+
// Merge any upstream client envs from the request header, with upstream values taking precedence.
|
|
152
|
+
const mergedClientEnvs = { ...localClientEnvs, ...reqContext.upstreamClientEnvs };
|
|
153
|
+
|
|
155
154
|
// Setting a Stainless API key authenticates requests to the code tool endpoint.
|
|
156
155
|
const res = await fetch(codeModeEndpoint, {
|
|
157
156
|
method: 'POST',
|
|
158
157
|
headers: {
|
|
159
158
|
...(reqContext.stainlessApiKey && { Authorization: reqContext.stainlessApiKey }),
|
|
160
159
|
'Content-Type': 'application/json',
|
|
161
|
-
'x-stainless-mcp-client-envs': JSON.stringify(
|
|
162
|
-
RETELL_BASE_URL: readEnv('RETELL_BASE_URL') ?? client.baseURL ?? undefined,
|
|
163
|
-
}),
|
|
160
|
+
'x-stainless-mcp-client-envs': JSON.stringify(mergedClientEnvs),
|
|
164
161
|
},
|
|
165
162
|
body: JSON.stringify({
|
|
166
|
-
project_name: '
|
|
163
|
+
project_name: 'retell',
|
|
167
164
|
code,
|
|
168
165
|
intent,
|
|
169
166
|
client_opts: { apiKey: readEnvOrError('RETELL_API_KEY') },
|
|
@@ -203,6 +200,13 @@ const localDenoHandler = async ({
|
|
|
203
200
|
reqContext: McpRequestContext;
|
|
204
201
|
args: unknown;
|
|
205
202
|
}): Promise<ToolCallResult> => {
|
|
203
|
+
const fs = await import('node:fs');
|
|
204
|
+
const path = await import('node:path');
|
|
205
|
+
const url = await import('node:url');
|
|
206
|
+
const { newDenoHTTPWorker } = await import('@valtown/deno-http-worker');
|
|
207
|
+
const { getWorkerPath } = await import('./code-tool-paths.cjs');
|
|
208
|
+
const workerPath = getWorkerPath();
|
|
209
|
+
|
|
206
210
|
const client = reqContext.client;
|
|
207
211
|
const baseURLHostname = new URL(client.baseURL).hostname;
|
|
208
212
|
const { code } = args as { code: string };
|
|
@@ -264,6 +268,9 @@ const localDenoHandler = async ({
|
|
|
264
268
|
printOutput: true,
|
|
265
269
|
spawnOptions: {
|
|
266
270
|
cwd: path.dirname(workerPath),
|
|
271
|
+
// Merge any upstream client envs into the Deno subprocess environment,
|
|
272
|
+
// with the upstream env vars taking precedence.
|
|
273
|
+
env: { ...process.env, ...reqContext.upstreamClientEnvs },
|
|
267
274
|
},
|
|
268
275
|
});
|
|
269
276
|
|
|
@@ -273,13 +280,15 @@ const localDenoHandler = async ({
|
|
|
273
280
|
reject(new Error(`Worker exited with code ${exitCode}`));
|
|
274
281
|
});
|
|
275
282
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
283
|
+
// Strip null/undefined values so that the worker SDK client can fall back to
|
|
284
|
+
// reading from environment variables (including any upstreamClientEnvs).
|
|
285
|
+
const opts = {
|
|
286
|
+
...(client.baseURL != null ? { baseURL: client.baseURL } : undefined),
|
|
287
|
+
...(client.apiKey != null ? { apiKey: client.apiKey } : undefined),
|
|
279
288
|
defaultHeaders: {
|
|
280
289
|
'X-Stainless-MCP': 'true',
|
|
281
290
|
},
|
|
282
|
-
};
|
|
291
|
+
} satisfies Partial<ClientOptions> as ClientOptions;
|
|
283
292
|
|
|
284
293
|
const req = worker.request(
|
|
285
294
|
'http://localhost',
|
package/src/docs-search-tool.ts
CHANGED
|
@@ -41,7 +41,7 @@ export const tool: Tool = {
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
const docsSearchURL =
|
|
44
|
-
process.env['DOCS_SEARCH_URL'] || 'https://api.stainless.com/api/projects/
|
|
44
|
+
process.env['DOCS_SEARCH_URL'] || 'https://api.stainless.com/api/projects/retell/docs/search';
|
|
45
45
|
|
|
46
46
|
export const handler = async ({
|
|
47
47
|
reqContext,
|
package/src/http.ts
CHANGED
|
@@ -27,14 +27,56 @@ const newServer = async ({
|
|
|
27
27
|
|
|
28
28
|
const authOptions = parseClientAuthHeaders(req, false);
|
|
29
29
|
|
|
30
|
+
let upstreamClientEnvs: Record<string, string> | undefined;
|
|
31
|
+
const clientEnvsHeader = req.headers['x-stainless-mcp-client-envs'];
|
|
32
|
+
if (typeof clientEnvsHeader === 'string') {
|
|
33
|
+
try {
|
|
34
|
+
const parsed = JSON.parse(clientEnvsHeader);
|
|
35
|
+
if (parsed && typeof parsed === 'object' && !Array.isArray(parsed)) {
|
|
36
|
+
upstreamClientEnvs = parsed;
|
|
37
|
+
}
|
|
38
|
+
} catch {
|
|
39
|
+
// Ignore malformed header
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Parse x-stainless-mcp-client-permissions header to override permission options
|
|
44
|
+
//
|
|
45
|
+
// Note: Permissions are best-effort and intended to prevent clients from doing unexpected things;
|
|
46
|
+
// they're not a hard security boundary, so we allow arbitrary, client-driven overrides.
|
|
47
|
+
//
|
|
48
|
+
// See the Stainless MCP documentation for more details.
|
|
49
|
+
let effectiveMcpOptions = mcpOptions;
|
|
50
|
+
const clientPermissionsHeader = req.headers['x-stainless-mcp-client-permissions'];
|
|
51
|
+
if (typeof clientPermissionsHeader === 'string') {
|
|
52
|
+
try {
|
|
53
|
+
const parsed = JSON.parse(clientPermissionsHeader);
|
|
54
|
+
if (parsed && typeof parsed === 'object' && !Array.isArray(parsed)) {
|
|
55
|
+
effectiveMcpOptions = {
|
|
56
|
+
...mcpOptions,
|
|
57
|
+
...(typeof parsed.allow_http_gets === 'boolean' && { codeAllowHttpGets: parsed.allow_http_gets }),
|
|
58
|
+
...(Array.isArray(parsed.allowed_methods) && { codeAllowedMethods: parsed.allowed_methods }),
|
|
59
|
+
...(Array.isArray(parsed.blocked_methods) && { codeBlockedMethods: parsed.blocked_methods }),
|
|
60
|
+
};
|
|
61
|
+
getLogger().info(
|
|
62
|
+
{ clientPermissions: parsed },
|
|
63
|
+
'Overriding code execution permissions from x-stainless-mcp-client-permissions header',
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
} catch (error) {
|
|
67
|
+
getLogger().warn({ error }, 'Failed to parse x-stainless-mcp-client-permissions header');
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
30
71
|
await initMcpServer({
|
|
31
72
|
server: server,
|
|
32
|
-
mcpOptions:
|
|
73
|
+
mcpOptions: effectiveMcpOptions,
|
|
33
74
|
clientOptions: {
|
|
34
75
|
...clientOptions,
|
|
35
76
|
...authOptions,
|
|
36
77
|
},
|
|
37
78
|
stainlessApiKey: stainlessApiKey,
|
|
79
|
+
upstreamClientEnvs,
|
|
38
80
|
});
|
|
39
81
|
|
|
40
82
|
return server;
|
|
@@ -72,7 +114,7 @@ const del = async (req: express.Request, res: express.Response) => {
|
|
|
72
114
|
};
|
|
73
115
|
|
|
74
116
|
const redactHeaders = (headers: Record<string, any>) => {
|
|
75
|
-
const hiddenHeaders = /auth|cookie|key|token/i;
|
|
117
|
+
const hiddenHeaders = /auth|cookie|key|token|x-stainless-mcp-client-envs/i;
|
|
76
118
|
const filtered = { ...headers };
|
|
77
119
|
Object.keys(filtered).forEach((key) => {
|
|
78
120
|
if (hiddenHeaders.test(key)) {
|
package/src/instructions.ts
CHANGED
|
@@ -12,29 +12,24 @@ interface InstructionsCacheEntry {
|
|
|
12
12
|
|
|
13
13
|
const instructionsCache = new Map<string, InstructionsCacheEntry>();
|
|
14
14
|
|
|
15
|
-
// Periodically evict stale entries so the cache doesn't grow unboundedly.
|
|
16
|
-
const _cacheCleanupInterval = setInterval(() => {
|
|
17
|
-
const now = Date.now();
|
|
18
|
-
for (const [key, entry] of instructionsCache) {
|
|
19
|
-
if (now - entry.fetchedAt > INSTRUCTIONS_CACHE_TTL_MS) {
|
|
20
|
-
instructionsCache.delete(key);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}, INSTRUCTIONS_CACHE_TTL_MS);
|
|
24
|
-
|
|
25
|
-
// Don't keep the process alive just for cleanup.
|
|
26
|
-
_cacheCleanupInterval.unref();
|
|
27
|
-
|
|
28
15
|
export async function getInstructions(stainlessApiKey: string | undefined): Promise<string> {
|
|
16
|
+
const now = Date.now();
|
|
29
17
|
const cacheKey = stainlessApiKey ?? '';
|
|
30
18
|
const cached = instructionsCache.get(cacheKey);
|
|
31
19
|
|
|
32
|
-
if (cached &&
|
|
20
|
+
if (cached && now - cached.fetchedAt <= INSTRUCTIONS_CACHE_TTL_MS) {
|
|
33
21
|
return cached.fetchedInstructions;
|
|
34
22
|
}
|
|
35
23
|
|
|
24
|
+
// Evict stale entries so the cache doesn't grow unboundedly.
|
|
25
|
+
for (const [key, entry] of instructionsCache) {
|
|
26
|
+
if (now - entry.fetchedAt > INSTRUCTIONS_CACHE_TTL_MS) {
|
|
27
|
+
instructionsCache.delete(key);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
36
31
|
const fetchedInstructions = await fetchLatestInstructions(stainlessApiKey);
|
|
37
|
-
instructionsCache.set(cacheKey, { fetchedInstructions, fetchedAt:
|
|
32
|
+
instructionsCache.set(cacheKey, { fetchedInstructions, fetchedAt: now });
|
|
38
33
|
return fetchedInstructions;
|
|
39
34
|
}
|
|
40
35
|
|
|
@@ -42,7 +37,7 @@ async function fetchLatestInstructions(stainlessApiKey: string | undefined): Pro
|
|
|
42
37
|
// Setting the stainless API key is optional, but may be required
|
|
43
38
|
// to authenticate requests to the Stainless API.
|
|
44
39
|
const response = await fetch(
|
|
45
|
-
readEnv('CODE_MODE_INSTRUCTIONS_URL') ?? 'https://api.stainless.com/api/ai/instructions/
|
|
40
|
+
readEnv('CODE_MODE_INSTRUCTIONS_URL') ?? 'https://api.stainless.com/api/ai/instructions/retell',
|
|
46
41
|
{
|
|
47
42
|
method: 'GET',
|
|
48
43
|
headers: { ...(stainlessApiKey && { Authorization: stainlessApiKey }) },
|
|
@@ -56,7 +51,7 @@ async function fetchLatestInstructions(stainlessApiKey: string | undefined): Pro
|
|
|
56
51
|
);
|
|
57
52
|
|
|
58
53
|
instructions =
|
|
59
|
-
'\n This is the
|
|
54
|
+
'\n This is the retell MCP server.\n\n Available tools:\n - search_docs: Search SDK documentation to find the right methods and parameters.\n - execute: Run TypeScript code against a pre-authenticated SDK client. Define an async run(client) function.\n\n Workflow:\n - If unsure about the API, call search_docs first.\n - Write complete solutions in a single execute call when possible. For large datasets, use API filters to narrow results or paginate within a single execute block.\n - If execute returns an error, read the error and fix your code rather than retrying the same approach.\n - Variables do not persist between execute calls. Return or log all data you need.\n - Individual HTTP requests to the API have a 30-second timeout. If a request times out, try a smaller query or add filters.\n - Code execution has a total timeout of approximately 5 minutes. If your code times out, simplify it or break it into smaller steps.\n ';
|
|
60
55
|
}
|
|
61
56
|
|
|
62
57
|
instructions ??= ((await response.json()) as { instructions: string }).instructions;
|
package/src/server.ts
CHANGED
|
@@ -21,7 +21,7 @@ export const newMcpServer = async (stainlessApiKey: string | undefined) =>
|
|
|
21
21
|
new McpServer(
|
|
22
22
|
{
|
|
23
23
|
name: 'retell_sdk_api',
|
|
24
|
-
version: '5.
|
|
24
|
+
version: '5.10.0',
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
instructions: await getInstructions(stainlessApiKey),
|
|
@@ -38,6 +38,7 @@ export async function initMcpServer(params: {
|
|
|
38
38
|
clientOptions?: ClientOptions;
|
|
39
39
|
mcpOptions?: McpOptions;
|
|
40
40
|
stainlessApiKey?: string | undefined;
|
|
41
|
+
upstreamClientEnvs?: Record<string, string> | undefined;
|
|
41
42
|
}) {
|
|
42
43
|
const server = params.server instanceof McpServer ? params.server.server : params.server;
|
|
43
44
|
|
|
@@ -120,6 +121,7 @@ export async function initMcpServer(params: {
|
|
|
120
121
|
reqContext: {
|
|
121
122
|
client,
|
|
122
123
|
stainlessApiKey: params.stainlessApiKey ?? params.mcpOptions?.stainlessApiKey,
|
|
124
|
+
upstreamClientEnvs: params.upstreamClientEnvs,
|
|
123
125
|
},
|
|
124
126
|
args,
|
|
125
127
|
});
|
package/src/types.ts
CHANGED
package/types.d.mts
CHANGED
|
@@ -34,6 +34,7 @@ export type ToolCallResult = {
|
|
|
34
34
|
export type McpRequestContext = {
|
|
35
35
|
client: Retell;
|
|
36
36
|
stainlessApiKey?: string | undefined;
|
|
37
|
+
upstreamClientEnvs?: Record<string, string> | undefined;
|
|
37
38
|
};
|
|
38
39
|
export type HandlerFunction = ({ reqContext, args, }: {
|
|
39
40
|
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,MAAM,MAAM,YAAY;OACxB,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,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;AAE3G,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,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SAAS,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,eAAe,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,7 @@ export type ToolCallResult = {
|
|
|
34
34
|
export type McpRequestContext = {
|
|
35
35
|
client: Retell;
|
|
36
36
|
stainlessApiKey?: string | undefined;
|
|
37
|
+
upstreamClientEnvs?: Record<string, string> | undefined;
|
|
37
38
|
};
|
|
38
39
|
export type HandlerFunction = ({ reqContext, args, }: {
|
|
39
40
|
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,MAAM,MAAM,YAAY;OACxB,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,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;AAE3G,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"OAEO,MAAM,MAAM,YAAY;OACxB,EAAE,IAAI,EAAE,MAAM,oCA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C3C,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.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;AA0DtF,kDASC;AAED,sDA2BC;AAED,sCAUC;AAlDD,SAAgB,mBAAmB,CAAC,MAAe;IACjD,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;aACtC;SACF;KACF,CAAC;AACJ,CAAC;AAEM,KAAK,UAAU,qBAAqB,CAAC,QAAkB;IAC5D,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;IAC3B,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACtE,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAClC,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;SAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzC,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,UAAU;oBAChB,QAAQ,EAAE;wBACR,uEAAuE;wBACvE,GAAG,EAAE,0BAA0B;wBAC/B,QAAQ;wBACR,IAAI,EAAE,IAAI;qBACX;iBACF;aACF;SACF,CAAC;IACJ,CAAC;AACH,CAAC;AAED,SAAgB,aAAa,CAAC,OAAe;IAC3C,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;aACd;SACF;QACD,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC"}
|
package/types.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"AAAA,sFAAsF;AA0DtF,MAAM,UAAU,mBAAmB,CAAC,MAAe;IACjD,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAA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