@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.
- package/package.json +1 -1
- package/shared/rules/git-conventions.md +3 -3
- package/shared/rules/release-pipeline.md +1 -1
- package/shared/rules/security.md +1 -1
- package/shared/rules/workspace-boundaries.md +1 -1
- package/shared/rules/writing-style.md +1 -1
- package/src/hosted-mcp/demo/agent.html +300 -0
- package/src/hosted-mcp/demo/agent.txt +84 -0
- package/src/hosted-mcp/demo/fallback.jpg +0 -0
- package/src/hosted-mcp/demo/footer.js +16 -0
- package/src/hosted-mcp/demo/index.html +1291 -0
- package/src/hosted-mcp/demo/privacy.html +230 -0
- package/src/hosted-mcp/demo/sprites.jpg +0 -0
- package/src/hosted-mcp/demo/sprites.png +0 -0
- package/src/hosted-mcp/demo/tos.html +205 -0
- package/src/hosted-mcp/package.json +2 -0
- package/src/hosted-mcp/server.mjs +1511 -18
- package/src/hosted-mcp/tools.mjs +16 -0
package/src/hosted-mcp/tools.mjs
CHANGED
|
@@ -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
|
}
|