@agenticmail/mcp 0.5.38 → 0.5.40
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/README.md +1 -1
- package/REFERENCE.md +0 -14
- package/dist/index.js +4 -23
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -148,7 +148,7 @@ The server runs with stdio transport — the AI client sends JSON-RPC messages v
|
|
|
148
148
|
| `list_agents` | List all agents with name, email, role | "Show me all agents" |
|
|
149
149
|
| `message_agent` | Send email to another agent (with priority levels) | "Tell the researcher to look up pricing data" |
|
|
150
150
|
| `check_messages` | Check for new messages from agents and externals | "Any new messages?" |
|
|
151
|
-
| `
|
|
151
|
+
| `call_agent` | Call another agent with a task (sync or async) | "Call the analyst to research this topic" |
|
|
152
152
|
| `claim_task` | Claim a pending task assigned to you | "Claim that task" |
|
|
153
153
|
| `submit_result` | Submit result for a claimed task | "Submit the research findings" |
|
|
154
154
|
| `check_tasks` | Check incoming or outgoing tasks | "Do I have any pending tasks?" |
|
package/REFERENCE.md
CHANGED
|
@@ -582,20 +582,6 @@ Replaces `{{ variableName }}` patterns in subject and body.
|
|
|
582
582
|
|
|
583
583
|
---
|
|
584
584
|
|
|
585
|
-
### assign_task
|
|
586
|
-
|
|
587
|
-
**Input Schema:**
|
|
588
|
-
| Field | Type | Required | Default |
|
|
589
|
-
|-------|------|----------|---------|
|
|
590
|
-
| `assignee` | string | Yes | — |
|
|
591
|
-
| `taskType` | string | No | "generic" |
|
|
592
|
-
| `payload` | object | No | — |
|
|
593
|
-
| `expiresInSeconds` | number | No | — |
|
|
594
|
-
|
|
595
|
-
**Behavior:** `POST /tasks/assign`
|
|
596
|
-
|
|
597
|
-
---
|
|
598
|
-
|
|
599
585
|
### check_tasks
|
|
600
586
|
|
|
601
587
|
**Input Schema:**
|
package/dist/index.js
CHANGED
|
@@ -129,6 +129,7 @@ async function heartbeat() {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
// src/tools.ts
|
|
132
|
+
import { recordToolCall } from "@agenticmail/core";
|
|
132
133
|
var API_URL = process.env.AGENTICMAIL_API_URL ?? "http://127.0.0.1:3100";
|
|
133
134
|
var API_KEY = process.env.AGENTICMAIL_API_KEY ?? "";
|
|
134
135
|
var MASTER_KEY = process.env.AGENTICMAIL_MASTER_KEY ?? "";
|
|
@@ -799,20 +800,6 @@ var toolDefinitions = [
|
|
|
799
800
|
required: ["action"]
|
|
800
801
|
}
|
|
801
802
|
},
|
|
802
|
-
{
|
|
803
|
-
name: "assign_task",
|
|
804
|
-
description: "Assign a task to another agent via the task queue",
|
|
805
|
-
inputSchema: {
|
|
806
|
-
type: "object",
|
|
807
|
-
properties: {
|
|
808
|
-
assignee: { type: "string", description: "Agent name to assign the task to" },
|
|
809
|
-
taskType: { type: "string", description: "Task category (default: generic)" },
|
|
810
|
-
payload: { type: "object", description: "Task data/instructions" },
|
|
811
|
-
expiresInSeconds: { type: "number", description: "Task expiry in seconds" }
|
|
812
|
-
},
|
|
813
|
-
required: ["assignee"]
|
|
814
|
-
}
|
|
815
|
-
},
|
|
816
803
|
{
|
|
817
804
|
name: "check_tasks",
|
|
818
805
|
description: "Check for pending tasks assigned to you (or a specific agent) or tasks you assigned to others",
|
|
@@ -1034,6 +1021,7 @@ function mcpBuildSecuritySection(security, attachments) {
|
|
|
1034
1021
|
${lines.join("\n")}`;
|
|
1035
1022
|
}
|
|
1036
1023
|
async function handleToolCall(name, args) {
|
|
1024
|
+
recordToolCall(name);
|
|
1037
1025
|
const useMaster = MASTER_KEY_TOOLS.has(name);
|
|
1038
1026
|
switch (name) {
|
|
1039
1027
|
case "send_email": {
|
|
@@ -1944,15 +1932,6 @@ ${r.agents.map(
|
|
|
1944
1932
|
}
|
|
1945
1933
|
throw new Error("Invalid action. Use: list_inactive, cleanup, or set_persistent");
|
|
1946
1934
|
}
|
|
1947
|
-
case "assign_task": {
|
|
1948
|
-
const result = await apiRequest("POST", "/tasks/assign", {
|
|
1949
|
-
assignee: args.assignee,
|
|
1950
|
-
taskType: args.taskType,
|
|
1951
|
-
payload: args.payload,
|
|
1952
|
-
expiresInSeconds: args.expiresInSeconds
|
|
1953
|
-
});
|
|
1954
|
-
return `Task assigned to ${result?.assignee}. Task ID: ${result?.id}`;
|
|
1955
|
-
}
|
|
1956
1935
|
case "check_tasks": {
|
|
1957
1936
|
let endpoint = args.direction === "outgoing" ? "/tasks/assigned" : "/tasks/pending";
|
|
1958
1937
|
if (args.direction !== "outgoing" && args.assignee) {
|
|
@@ -2194,6 +2173,8 @@ ${lines.join("\n")}`;
|
|
|
2194
2173
|
}
|
|
2195
2174
|
|
|
2196
2175
|
// src/index.ts
|
|
2176
|
+
import { setTelemetryVersion } from "@agenticmail/core";
|
|
2177
|
+
setTelemetryVersion("0.5.39");
|
|
2197
2178
|
var server = new McpServer({
|
|
2198
2179
|
name: "\u{1F380} AgenticMail",
|
|
2199
2180
|
version: "0.2.26",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agenticmail/mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.40",
|
|
4
4
|
"description": "MCP server for AgenticMail \u2014 give any AI client real email and SMS capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
31
|
-
"zod": "^3.24.0"
|
|
31
|
+
"zod": "^3.24.0",
|
|
32
|
+
"@agenticmail/core": "^0.5.39"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"tsup": "^8.4.0",
|
|
@@ -62,4 +63,4 @@
|
|
|
62
63
|
},
|
|
63
64
|
"author": "Ope Olatunji",
|
|
64
65
|
"license": "MIT"
|
|
65
|
-
}
|
|
66
|
+
}
|