@chamade/mcp-server 2.0.1 → 2.0.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/dist/index.js +9 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -798,13 +798,18 @@ function channelWatchInbox() {
|
|
|
798
798
|
platform: data.platform || "",
|
|
799
799
|
});
|
|
800
800
|
break;
|
|
801
|
-
case "call_invite":
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
801
|
+
case "call_invite": {
|
|
802
|
+
const callState = data.state || "ringing";
|
|
803
|
+
const callAction = callState === "active"
|
|
804
|
+
? "Call is already active."
|
|
805
|
+
: "Use chamade_call_accept to pick up, or chamade_call_refuse to reject.";
|
|
806
|
+
await channelPush(`Incoming call${data.caller ? ` from ${data.caller}` : ""} on ${data.platform || "sip"}. Call ID: ${data.call_id}. ${callAction}`, { type: "call_invite", call_id: data.call_id || "" });
|
|
807
|
+
// Auto-watch if already active (auto_answer)
|
|
808
|
+
if (callState === "active" && data.call_id) {
|
|
805
809
|
channelWatchCall(data.call_id);
|
|
806
810
|
}
|
|
807
811
|
break;
|
|
812
|
+
}
|
|
808
813
|
case "dm_started":
|
|
809
814
|
await channelPush(`New conversation from ${data.remote_name || "unknown"} on ${data.platform}.`, {
|
|
810
815
|
type: "dm_started",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chamade/mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
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": {
|