@agenticmail/mcp 0.9.4 → 0.9.5
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/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -22364,7 +22364,7 @@ async function heartbeat() {
|
|
|
22364
22364
|
}
|
|
22365
22365
|
|
|
22366
22366
|
// src/tools.ts
|
|
22367
|
-
import { recordToolCall } from "@agenticmail/core";
|
|
22367
|
+
import { recordToolCall, redactSecret } from "@agenticmail/core";
|
|
22368
22368
|
import { AsyncLocalStorage } from "async_hooks";
|
|
22369
22369
|
|
|
22370
22370
|
// src/tool-catalog.ts
|
|
@@ -22592,7 +22592,7 @@ async function apiRequest(method, path, body, useMasterKey = false, timeoutMs =
|
|
|
22592
22592
|
const perCallKey = toolCallContext.getStore()?.apiKey ?? null;
|
|
22593
22593
|
const key = useMasterKey && MASTER_KEY ? MASTER_KEY : perCallKey ?? API_KEY;
|
|
22594
22594
|
if (process.env.AGENTICMAIL_MCP_DEBUG) {
|
|
22595
|
-
console.error(`[mcp-debug] apiRequest ${method} ${path} | perCall=${perCallKey ? perCallKey
|
|
22595
|
+
console.error(`[mcp-debug] apiRequest ${method} ${path} | perCall=${perCallKey ? redactSecret(perCallKey) : "none"} | resolved=${redactSecret(key)}`);
|
|
22596
22596
|
}
|
|
22597
22597
|
if (!key) {
|
|
22598
22598
|
throw new Error(useMasterKey ? "Master key is required for this operation. Set AGENTICMAIL_MASTER_KEY." : "API key is not configured. Set AGENTICMAIL_API_KEY (or pass _account to use a per-agent key).");
|
|
@@ -23637,7 +23637,7 @@ async function handleToolCall(name, args2) {
|
|
|
23637
23637
|
}
|
|
23638
23638
|
}
|
|
23639
23639
|
if (process.env.AGENTICMAIL_MCP_DEBUG) {
|
|
23640
|
-
console.error(`[mcp-debug] handleToolCall name=${name} requested=${requestedAccount ?? "none"} accountKey=${accountKey ? accountKey
|
|
23640
|
+
console.error(`[mcp-debug] handleToolCall name=${name} requested=${requestedAccount ?? "none"} accountKey=${accountKey ? redactSecret(accountKey) : "null"} ACCOUNT_KEYS.size=${ACCOUNT_KEYS.size}`);
|
|
23641
23641
|
}
|
|
23642
23642
|
return toolCallContext.run({ apiKey: accountKey }, () => dispatchToolCall(name, args2, useMaster));
|
|
23643
23643
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agenticmail/mcp",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"mcpName": "io.github.agenticmail/mcp",
|
|
5
5
|
"description": "MCP server for AgenticMail — give any AI client real email and SMS capabilities",
|
|
6
6
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
32
32
|
"zod": "^3.24.0",
|
|
33
|
-
"@agenticmail/core": "^0.9.
|
|
33
|
+
"@agenticmail/core": "^0.9.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"tsup": "^8.4.0",
|