fathom-mcp 0.2.0 → 0.2.1
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 +5 -5
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -213,9 +213,9 @@ 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:
|
|
216
|
+
sender: { type: "string", description: `Who is posting (defaults to workspace name: "${config.workspace}")` },
|
|
217
217
|
},
|
|
218
|
-
required: ["room", "message"
|
|
218
|
+
required: ["room", "message"],
|
|
219
219
|
},
|
|
220
220
|
},
|
|
221
221
|
{
|
|
@@ -279,7 +279,7 @@ const tools = [
|
|
|
279
279
|
properties: {
|
|
280
280
|
workspace: { type: "string", description: "Target workspace name — run fathom_workspaces to see available options" },
|
|
281
281
|
message: { type: "string", description: "Message to send to the target workspace's Claude instance" },
|
|
282
|
-
from: { type: "string", description:
|
|
282
|
+
from: { type: "string", description: `Your workspace name so the recipient knows who sent it (defaults to "${config.workspace}")` },
|
|
283
283
|
},
|
|
284
284
|
required: ["workspace", "message"],
|
|
285
285
|
},
|
|
@@ -411,7 +411,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
411
411
|
result = await client.hybridSearch(args.query, { limit: args.limit, ws: args.workspace });
|
|
412
412
|
break;
|
|
413
413
|
case "fathom_room_post":
|
|
414
|
-
result = await client.roomPost(args.room, args.message, args.sender);
|
|
414
|
+
result = await client.roomPost(args.room, args.message, args.sender || config.workspace);
|
|
415
415
|
break;
|
|
416
416
|
case "fathom_room_read":
|
|
417
417
|
result = await client.roomRead(args.room, args.hours);
|
|
@@ -428,7 +428,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
428
428
|
case "fathom_send":
|
|
429
429
|
// Send is implemented server-side (it manages tmux sessions)
|
|
430
430
|
result = await client.request?.("POST", `/api/room/${encodeURIComponent("__dm__")}`, {
|
|
431
|
-
body: { message: `Message from workspace (${args.from ||
|
|
431
|
+
body: { message: `Message from workspace (${args.from || config.workspace}): ${args.message}`, sender: args.from || config.workspace },
|
|
432
432
|
});
|
|
433
433
|
// For now, fall back to error until server implements /api/send
|
|
434
434
|
if (!result || result.error) {
|