@chamade/mcp-server 1.1.6 → 1.1.8

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -273,11 +273,15 @@ server.tool("chamade_say", "Speak text aloud in the meeting via TTS. Write natur
273
273
  };
274
274
  });
275
275
  // -- Tool: chat -------------------------------------------------------------
276
- server.tool("chamade_chat", "Send a text chat message in the meeting.", {
276
+ server.tool("chamade_chat", "Send a text chat message in the meeting. Set sender_name to identify yourself (e.g. your name or 'AI Assistant').", {
277
277
  call_id: z.string().describe("Call ID from chamade_join"),
278
278
  text: z.string().describe("Chat message to send"),
279
- }, async ({ call_id, text }) => {
280
- await chamadePost(`/api/call/${call_id}/chat`, { text });
279
+ sender_name: z.string().optional().describe("Display name shown in the chat (e.g. 'Claude', 'AI Assistant')"),
280
+ }, async ({ call_id, text, sender_name }) => {
281
+ const body = { text };
282
+ if (sender_name)
283
+ body.sender_name = sender_name;
284
+ await chamadePost(`/api/call/${call_id}/chat`, body);
281
285
  return {
282
286
  content: [{ type: "text", text: `Chat sent: "${text}"` }],
283
287
  };
@@ -818,8 +822,7 @@ async function channelSyncActiveCalls() {
818
822
  try {
819
823
  const data = (await chamadeGet("/api/calls"));
820
824
  for (const call of data.calls) {
821
- if (call.state !== "ended" &&
822
- call.state !== "error" &&
825
+ if (call.state === "active" &&
823
826
  !_callWatchers.has(call.id) &&
824
827
  !_closedWatchers.has(call.id)) {
825
828
  channelWatchCall(call.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chamade/mcp-server",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "MCP server for Chamade — voice gateway for AI agents. Join Discord, Teams, Meet, Telegram, SIP, Zoom meetings and interact via speech and text. Supports Claude Code channel mode for push events.",
5
5
  "type": "module",
6
6
  "bin": {