@mosadd/mcp 3.0.0-alpha.14 → 3.0.0-alpha.15
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
|
@@ -458,8 +458,9 @@ async function mDM_respond_request(input, ctx) {
|
|
|
458
458
|
readSupabaseEnv();
|
|
459
459
|
ctx.log("debug", "mDM_respond_request invoking message-request-respond", input);
|
|
460
460
|
await invokeFunction("message-request-respond", {
|
|
461
|
+
action: "respond",
|
|
461
462
|
request_id: input.request_id,
|
|
462
|
-
|
|
463
|
+
status: input.action === "accept" ? "accepted" : "rejected"
|
|
463
464
|
});
|
|
464
465
|
return { ok: true };
|
|
465
466
|
}
|
|
@@ -1861,7 +1862,7 @@ var SupabaseDmProvider = class {
|
|
|
1861
1862
|
space_id: "dm",
|
|
1862
1863
|
thread_id: args.threadId,
|
|
1863
1864
|
limit: args.limit ?? 50,
|
|
1864
|
-
|
|
1865
|
+
before: args.cursor
|
|
1865
1866
|
});
|
|
1866
1867
|
return {
|
|
1867
1868
|
messages: (data?.messages ?? []).map((m) => ({
|
|
@@ -1871,7 +1872,7 @@ var SupabaseDmProvider = class {
|
|
|
1871
1872
|
timestamp: m.created_at,
|
|
1872
1873
|
threadId: m.thread_id
|
|
1873
1874
|
})),
|
|
1874
|
-
nextCursor: data?.
|
|
1875
|
+
nextCursor: data?.has_more ? data?.cursor ?? null : null
|
|
1875
1876
|
};
|
|
1876
1877
|
}
|
|
1877
1878
|
};
|
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.15",
|
|
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": {
|
|
@@ -95,13 +95,16 @@ export class SupabaseDmProvider implements DmProvider {
|
|
|
95
95
|
encrypted_payload: string;
|
|
96
96
|
created_at: string;
|
|
97
97
|
}>;
|
|
98
|
-
|
|
98
|
+
cursor?: string | null;
|
|
99
|
+
has_more?: boolean;
|
|
99
100
|
};
|
|
101
|
+
// message-list paginates history via `before` (a created_at marker) and returns
|
|
102
|
+
// the next marker as `cursor` — NOT `cursor` in / `next_cursor` out.
|
|
100
103
|
const data = await invokeFunction<MessageListResponse>("message-list", {
|
|
101
104
|
space_id: "dm",
|
|
102
105
|
thread_id: args.threadId,
|
|
103
106
|
limit: args.limit ?? 50,
|
|
104
|
-
|
|
107
|
+
before: args.cursor,
|
|
105
108
|
});
|
|
106
109
|
return {
|
|
107
110
|
messages: (data?.messages ?? []).map((m) => ({
|
|
@@ -111,7 +114,7 @@ export class SupabaseDmProvider implements DmProvider {
|
|
|
111
114
|
timestamp: m.created_at,
|
|
112
115
|
threadId: m.thread_id,
|
|
113
116
|
})),
|
|
114
|
-
nextCursor: data?.
|
|
117
|
+
nextCursor: data?.has_more ? (data?.cursor ?? null) : null,
|
|
115
118
|
};
|
|
116
119
|
}
|
|
117
120
|
}
|
package/src/tools/mdm.ts
CHANGED
|
@@ -329,9 +329,12 @@ async function mDM_respond_request(
|
|
|
329
329
|
): Promise<{ ok: true }> {
|
|
330
330
|
readSupabaseEnv();
|
|
331
331
|
ctx.log("debug", "mDM_respond_request invoking message-request-respond", input);
|
|
332
|
+
// message-request-respond expects action:"respond" + status accepted/rejected
|
|
333
|
+
// (not action:"accept"/"reject"). Map it.
|
|
332
334
|
await invokeFunction<{ ok: boolean }>("message-request-respond", {
|
|
335
|
+
action: "respond",
|
|
333
336
|
request_id: input.request_id,
|
|
334
|
-
|
|
337
|
+
status: input.action === "accept" ? "accepted" : "rejected",
|
|
335
338
|
});
|
|
336
339
|
return { ok: true };
|
|
337
340
|
}
|