@wipcomputer/wip-ldm-os 0.4.73-alpha.13 → 0.4.73-alpha.14

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.
@@ -54,4 +54,20 @@ export function registerTools(server, getIdentity) {
54
54
  const masked = apiKey.slice(0, 7) + "..." + apiKey.slice(-4);
55
55
  return { content: [{ type: "text", text: `Agent: ${agentId}\nAPI key: ${masked}\nPending: ${countPending(agentId)}\nServer: wip.computer hosted MCP` }] };
56
56
  });
57
+
58
+ server.registerTool("list_agents", {
59
+ description: "List all known agents on the Bridge. Shows who you can send messages to.",
60
+ inputSchema: {},
61
+ }, async () => {
62
+ // Read API_KEYS from server to find known agents
63
+ // For now, return hardcoded list plus any OAuth-registered agents
64
+ const known = [
65
+ { id: "cc-mini", description: "Claude Code on Mac mini (CLI)" },
66
+ { id: "lesa", description: "Lesa (OpenClaw agent on Mac mini)" },
67
+ { id: "parker", description: "Parker (human, any device)" },
68
+ ];
69
+ const text = known.map(a => `**${a.id}** ... ${a.description}`).join("\n");
70
+ return { content: [{ type: "text", text: `Known agents:\n\n${text}\n\nSend with: send_message(to: "agent-id", body: "your message")` }] };
71
+ });
72
+
57
73
  }