fathom-mcp 0.2.0 → 0.2.2
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/package.json +1 -1
- package/src/index.js +4 -6
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -213,9 +213,8 @@ const tools = [
|
|
|
213
213
|
properties: {
|
|
214
214
|
room: { type: "string", description: "Room name, e.g. 'general', 'navier-stokes'. Created on first post." },
|
|
215
215
|
message: { type: "string", description: "Message to post. Use @workspace to mention and notify specific workspaces (e.g. '@fathom check this'), or @all for everyone." },
|
|
216
|
-
sender: { type: "string", description: "Who is posting — workspace name or 'myra'" },
|
|
217
216
|
},
|
|
218
|
-
required: ["room", "message"
|
|
217
|
+
required: ["room", "message"],
|
|
219
218
|
},
|
|
220
219
|
},
|
|
221
220
|
{
|
|
@@ -278,8 +277,7 @@ const tools = [
|
|
|
278
277
|
type: "object",
|
|
279
278
|
properties: {
|
|
280
279
|
workspace: { type: "string", description: "Target workspace name — run fathom_workspaces to see available options" },
|
|
281
|
-
message: { type: "string", description: "Message to send to the target workspace's
|
|
282
|
-
from: { type: "string", description: "Your workspace name so the recipient knows who sent it (defaults to 'unknown')" },
|
|
280
|
+
message: { type: "string", description: "Message to send to the target workspace's agent instance" },
|
|
283
281
|
},
|
|
284
282
|
required: ["workspace", "message"],
|
|
285
283
|
},
|
|
@@ -411,7 +409,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
411
409
|
result = await client.hybridSearch(args.query, { limit: args.limit, ws: args.workspace });
|
|
412
410
|
break;
|
|
413
411
|
case "fathom_room_post":
|
|
414
|
-
result = await client.roomPost(args.room, args.message,
|
|
412
|
+
result = await client.roomPost(args.room, args.message, config.workspace);
|
|
415
413
|
break;
|
|
416
414
|
case "fathom_room_read":
|
|
417
415
|
result = await client.roomRead(args.room, args.hours);
|
|
@@ -428,7 +426,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
428
426
|
case "fathom_send":
|
|
429
427
|
// Send is implemented server-side (it manages tmux sessions)
|
|
430
428
|
result = await client.request?.("POST", `/api/room/${encodeURIComponent("__dm__")}`, {
|
|
431
|
-
body: { message: `Message from workspace (${
|
|
429
|
+
body: { message: `Message from workspace (${config.workspace}): ${args.message}`, sender: config.workspace },
|
|
432
430
|
});
|
|
433
431
|
// For now, fall back to error until server implements /api/send
|
|
434
432
|
if (!result || result.error) {
|