Commit 796f7ea5 authored by Lisa (AI Assistant)'s avatar Lisa (AI Assistant)

Update README with self-registration docs

parent 1d2b20ab
Pipeline #275 canceled with stages
......@@ -152,3 +152,25 @@ Stefy Lanza <stefy@nexlab.net>
---
<p align="center">Made with 🧠 and 🔧 by Stefy</p>
## Agent Self-Registration
Each OpenClaw instance self-registers with the central MCP server, sending its own info:
```json
// Call register tool with:
{
"hook": "https://lisa.nexlab.net/hooks/agent",
"token": "lisa-own-hook-token-123",
"capability_prompt": "Can run commands, manage Ganeti VMs, access cameras",
"skill_prompt": "To request a task from me, post a job with:\n- action: the command or action to perform\n- target: the target (e.g., ganeti1, ganeti2)\n- params: any additional parameters\n\nResults are returned as JSON with 'output' and 'error' fields."
}
```
The agent provides:
- **hook**: Its own webhook URL (where to receive jobs)
- **token**: Its own token (so MCP can authenticate callbacks to it)
- **capability_prompt**: Short summary (~500 chars) for listing
- **skill_prompt**: Full instructions (can be large, no limit)
This way each agent controls its own description and authentication.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment