@mosadd/mcp 3.0.0-alpha.13 → 3.0.0-alpha.14
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/bin/mcp.js
CHANGED
|
@@ -734,9 +734,11 @@ async function mIRC_get(input, ctx) {
|
|
|
734
734
|
async function mIRC_update(input, ctx) {
|
|
735
735
|
readSupabaseEnv();
|
|
736
736
|
ctx.log("debug", "mIRC_update invoking channel-manage", { channel_id: input.channel_id });
|
|
737
|
+
const { topic, ...rest } = input;
|
|
738
|
+
const payload = topic !== void 0 ? { ...rest, description: topic } : { ...rest };
|
|
737
739
|
return await invokeFunction("channel-manage", {
|
|
738
740
|
action: "update",
|
|
739
|
-
...
|
|
741
|
+
...payload
|
|
740
742
|
});
|
|
741
743
|
}
|
|
742
744
|
async function mIRC_delete(input, ctx) {
|
|
@@ -1428,7 +1430,9 @@ async function mAIL_send(input, ctx) {
|
|
|
1428
1430
|
throw new Error("mAIL_send requires at least one of body_text or body_html.");
|
|
1429
1431
|
}
|
|
1430
1432
|
ctx.log("debug", "mAIL_send invoking mp0st-send", { to: input.to });
|
|
1431
|
-
|
|
1433
|
+
const res = await invokeFunction("mp0st-send", input);
|
|
1434
|
+
if (res.error) throw new Error(res.error);
|
|
1435
|
+
return { message_id: res.email_id ?? "", status: res.status ?? "sent", is_internal: res.is_internal ?? false };
|
|
1432
1436
|
}
|
|
1433
1437
|
async function mAIL_view(input, ctx) {
|
|
1434
1438
|
readSupabaseEnv();
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mosadd/mcp",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.14",
|
|
4
4
|
"description": "Model Context Protocol server for mosadd. Exposes the 6 live m* modules (mDM, mIRC, mROOM, mTALK, mAIL, mRAG) — 61 tools — to any agent runtime (Claude Code, Cursor, Windsurf, Cline, ChatGPT Apps, Lovable, Bolt, Goose, Manus, custom).",
|
|
5
5
|
"homepage": "https://github.com/Hei33enberg/mosadd-os/tree/main/packages/mcp",
|
|
6
6
|
"repository": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@supabase/supabase-js": "^2.48.0",
|
|
38
38
|
"zod": "^4.3.6",
|
|
39
39
|
"@mosadd/crypto": "3.0.0-alpha.4",
|
|
40
|
-
"@mosadd/
|
|
41
|
-
"@mosadd/
|
|
40
|
+
"@mosadd/providers": "3.0.0-alpha.4",
|
|
41
|
+
"@mosadd/protocol": "3.0.0-alpha.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"tsup": "^8.3.5",
|
package/src/tools/mail.ts
CHANGED
|
@@ -127,13 +127,17 @@ interface MailListItem {
|
|
|
127
127
|
async function mAIL_send(
|
|
128
128
|
input: z.infer<typeof mAIL_send_input>,
|
|
129
129
|
ctx: MosaddToolContext,
|
|
130
|
-
): Promise<{ message_id: string;
|
|
130
|
+
): Promise<{ message_id: string; status: string; is_internal: boolean }> {
|
|
131
131
|
readSupabaseEnv();
|
|
132
132
|
if (!input.body_text && !input.body_html) {
|
|
133
133
|
throw new Error("mAIL_send requires at least one of body_text or body_html.");
|
|
134
134
|
}
|
|
135
135
|
ctx.log("debug", "mAIL_send invoking mp0st-send", { to: input.to });
|
|
136
|
-
|
|
136
|
+
// mp0st-send returns { ok, email_id, status, is_internal } — remap email_id to the
|
|
137
|
+
// tool's message_id contract (email_id IS the message id). Surface backend errors.
|
|
138
|
+
const res = await invokeFunction<{ ok?: boolean; email_id?: string; status?: string; is_internal?: boolean; error?: string }>("mp0st-send", input);
|
|
139
|
+
if (res.error) throw new Error(res.error);
|
|
140
|
+
return { message_id: res.email_id ?? "", status: res.status ?? "sent", is_internal: res.is_internal ?? false };
|
|
137
141
|
}
|
|
138
142
|
|
|
139
143
|
async function mAIL_view(
|
package/src/tools/mirc.ts
CHANGED
|
@@ -108,9 +108,13 @@ async function mIRC_update(
|
|
|
108
108
|
): Promise<{ channel: unknown }> {
|
|
109
109
|
readSupabaseEnv();
|
|
110
110
|
ctx.log("debug", "mIRC_update invoking channel-manage", { channel_id: input.channel_id });
|
|
111
|
+
// channel-manage reads `description`, not `topic` — map it so topic edits aren't
|
|
112
|
+
// silently dropped.
|
|
113
|
+
const { topic, ...rest } = input as typeof input & { topic?: string };
|
|
114
|
+
const payload = topic !== undefined ? { ...rest, description: topic } : { ...rest };
|
|
111
115
|
return await invokeFunction<{ channel: unknown }>("channel-manage", {
|
|
112
116
|
action: "update",
|
|
113
|
-
...
|
|
117
|
+
...payload,
|
|
114
118
|
});
|
|
115
119
|
}
|
|
116
120
|
|