@gethmy/mcp 2.10.0 → 2.11.0
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/server.ts +5 -1
package/package.json
CHANGED
package/src/server.ts
CHANGED
|
@@ -2287,7 +2287,11 @@ async function handleToolCall(
|
|
|
2287
2287
|
"Pass at most one of assigneeId / agentId — a card is assigned to a human OR an agent, never both.",
|
|
2288
2288
|
);
|
|
2289
2289
|
}
|
|
2290
|
-
//
|
|
2290
|
+
// Send only the side being set. The MCP `agentId` arg maps to the
|
|
2291
|
+
// backend's `assignedAgentId` field (DB column `assigned_agent_id`);
|
|
2292
|
+
// `assigneeId` maps straight through. When one side is set to a non-null
|
|
2293
|
+
// value the backend clears the other, so we never send both — that keeps
|
|
2294
|
+
// a card from ending up assigned to a human AND an agent at once.
|
|
2291
2295
|
const updates: {
|
|
2292
2296
|
assigneeId?: string | null;
|
|
2293
2297
|
assignedAgentId?: string | null;
|