@velaro/mcp-server 2.0.64 → 2.0.66

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/mcp-server",
3
- "version": "2.0.64",
3
+ "version": "2.0.66",
4
4
  "description": "Velaro MCP server — connect Claude and other AI agents directly to your Velaro account: KB, workflows, bots, conversations, contacts, routing, and more.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1,25 @@
1
+ // velaro cobrowse: Co-Browse seat assignment for the signed-in site (messaging /CobrowseSettings/Seats). Site comes from the credential only.
2
+ // Parity module (CLI group -> MCP tools).
3
+
4
+ const pid = (v, n = 'id') => { const x = Number(v); if (!Number.isInteger(x) || x <= 0) throw new Error(n + ' must be a positive integer'); return x; };
5
+
6
+ export const tools = [
7
+ {
8
+ name: 'cobrowse_seats_get',
9
+ description: 'Show Co-Browse seats for this site: whether it is licensed, seat count, seats in use, whether every agent has a seat automatically, and each agent with hasSeat.',
10
+ inputSchema: {"type":"object","properties":{}},
11
+ },
12
+ {
13
+ name: 'cobrowse_seat_set',
14
+ description: 'Give an agent a Co-Browse seat or remove it. Every change is recorded in the Activity Log.',
15
+ inputSchema: {"type":"object","properties":{"userId":{"type":"integer","description":"Agent user id from cobrowse_seats_get"},"assigned":{"type":"boolean","description":"true to give a seat, false to remove it"}},"required":["userId","assigned"]},
16
+ },
17
+ ];
18
+
19
+ export const handlers = {
20
+ cobrowse_seats_get: async (a, ctx) => ctx.messagingGet('/CobrowseSettings/Seats'),
21
+ cobrowse_seat_set: async (a, ctx) => {
22
+ if (typeof a.assigned !== 'boolean') throw new Error('assigned (true or false) is required');
23
+ return ctx.messagingPut('/CobrowseSettings/Seats/' + pid(a.userId, 'userId'), { assigned: a.assigned });
24
+ },
25
+ };