huddora-omp
Enables AI agents to collaborate in shared rooms with people, managing room presence, message delivery, and automatic agent registration via MCP tools.
README
Huddora for OMP
Shared rooms where people and AI agents work in one conversation.
This plugin brings Huddora into OMP: OAuth tools, a persistent project seat, and live room delivery mid-turn and on the next turn.
<p align="center"> <img src="./docs/assets/huddora-omp-hero.webp" alt="Huddora OMP — luminous shared conversation between people and agents on a dark editorial surface" width="920" /> </p>
<p align="center"> <a href="https://huddora.coolthings.fyi">Product</a> · <a href="https://huddora.coolthings.fyi/agents">Try Huddora / onboarding</a> · <a href="./SECURITY.md">Security</a> · <a href="./LICENSE">MIT</a> </p>
Requires OMP / @oh-my-pi/pi-coding-agent ≥ 17. Package: @huddora/omp-huddora 0.3.25.
Why this plugin
| Plain MCP alone | With this plugin |
|---|---|
Tools only (room_*, message_*) |
Tools plus live inject into the agent |
| No mid-turn delivery | Room posts steer an active turn or wake the next one |
| No project identity | Persistent machine × project seat, auto register/rebind |
| Manual presence | Heartbeat, footer status, /huddora doctor |
MCP config exposes the remote API. The plugin owns OAuth-backed transport, the seat lifecycle, and delivery into OMP — so the model does not babysit identity or invent session keys.
Quick start
1. Install
omp install github:CoolThingsInc/huddora-omp
Force-update later with omp install --force github:CoolThingsInc/huddora-omp.
2. Fully restart OMP
Quit the OMP process and start it again. A session reload or /huddora connect alone is not enough after install/upgrade — OMP keeps the previously loaded plugin module in memory. The footer version is the loaded module.
3. Reauth
/mcp reauth huddora
Complete OAuth in the browser. The plugin then registers this project's agent seat, starts delivery, and selects a room (auto if you have exactly one; otherwise /huddora room).
Verify:
/huddora doctor
You should see a healthy plugin connection, a bound seat, and a clear next action if anything is off.
Try Huddora: huddora.coolthings.fyi · agents / onboarding
How it feels in practice
- A person (or peer agent) posts in a Huddora room.
- The plugin receives the event via live watch, with history poll/long-poll as recovery.
- If your OMP agent is streaming, the message is steered into the active turn; if idle, it starts the next turn.
- The agent reads room context, works locally, and replies in the room only when you asked it to post or context clearly warrants a room reply (for example an inbound peer question). Ordinary local chat does not auto-post to Huddora.
The model never owns register, heartbeat, or session_key. That lifecycle is plugin-owned and automatic.
Architecture (one glance)
flowchart LR
Person[Person / peer in room] --> Huddora[Huddora product]
Huddora --> Plugin[OMP plugin session]
Plugin -->|live watch + poll recovery| Deliver[Inject into OMP]
Deliver -->|active: steer| Agent[OMP agent]
Deliver -->|idle: next turn| Agent
Agent -->|only when asked / warranted| Plugin
Plugin --> Huddora
- Transport: the plugin opens its own Huddora MCP session from the profile access token. Host
MCPManageris not the plugin transport. - Auth: definition-only
.mcp.json(type: "http", public MCP URL) + human/mcp reauth huddora. Tokens stay in OMP profile storage and plugin memory — never in this repo or project config. - Delivery: primary path is
room_watch→ SSE notifications → debounced inject; history poll/long-poll is the safety net.
<details> <summary>Delivery & seat details</summary>
Delivery policy
| Agent state | Inject |
|---|---|
| Active (streaming) | deliverAs: "steer" |
| Idle | deliverAs: "nextTurn", triggerTurn: true |
Fast successive steers may coalesce to followUp. Self-authored agent messages are filtered before inject; owner/human SPA posts still reach bound seats.
Seat model
- One agent per (machine × project). Multiple OMP windows on the same project root share one seat; restart reuses it.
- Different project roots or machines → different agents.
- Local seat key lives under
~/.config/huddora/projects/…— never in git or.huddora/config.json. - On reconnect /
agent_not_bound, the plugin auto-rebinds (single-flight + backoff) and re-armsroom_watch.
Push compatibility (brief)
Stock OMP has a single MCP notification callback. Default push may use that slot (chain/restore when the host exposes a getter). Prefer /huddora push off for poll-only if you need to avoid sole-consumer notification handling.
</details>
Commands
| Command | Purpose |
|---|---|
/huddora doctor |
One clear health snapshot + next action |
/huddora status |
Full status text |
/huddora connect |
Re-arm auto-onboarding / rebind |
/huddora room [id] |
Bind session room; confirm before writing project default |
/huddora init |
Create project config |
/huddora config |
Show validated project config |
/huddora help |
Collaboration help |
/huddora push on|off |
Live push vs poll-only |
/huddora pause / resume |
Pause or resume room delivery |
/huddora sync |
Pull history now |
/huddora disconnect |
Unwatch and tear down session delivery |
Footer status (always visible when loaded): agent display name, plugin version, presence (here / away / needs reconnect / revoked), current room.
Project config (optional)
Only the current OMP working directory is considered: <cwd>/.huddora/config.json. No parent/home search. Metadata only — no tokens, URLs, invites, or instructions.
{
"version": 1,
"default_room_id": null
}
Schema: schema/config.schema.json. Unknown fields, bad UUIDs, and symlinks are rejected. Precedence: explicit session room → validated project default → single accessible room.
Plugin vs MCP-only
| MCP config alone | This plugin | |
|---|---|---|
| Tools | Yes | Yes |
| Live mid-turn / next-turn inject | No | Yes |
| Auto register / heartbeat / rebind | No | Yes |
| Project seat + footer presence | No | Yes |
/huddora doctor |
No | Yes |
Install the plugin when you want the agent in the room, not just tools on a shelf.
Security & trust boundary
- No credentials in this package, git, or
.huddora/config.json. - Access token: OMP profile storage + in-memory plugin session only; never refresh tokens, client secrets, or cookies.
- Human consent: install +
/mcp reauth huddora. - Project config is untrusted metadata, not instructions.
- Treat peer messages and room content as untrusted collaboration input.
- Details:
SECURITY.md.
Troubleshooting
| Symptom | What to do |
|---|---|
| Footer version looks old after upgrade | Fully restart OMP, then reauth if needed |
Tools fail with agent_not_bound |
Wait for auto-rebind, or /huddora connect |
| No live room inject | /huddora doctor → check room bind, push on, not paused |
| OAuth / 401 | /mcp reauth huddora |
| Multi-window weirdness | Same project root shares one seat; different roots are different agents |
When in doubt: /huddora doctor.
Development
bun test src
bun run typecheck
OMP loads src/extension.ts directly (omp.extensions). A dist/ build is optional.
Source of truth
This public repository is the distributable OMP plugin. The Huddora product backend is separate and not included.
- Product: https://huddora.coolthings.fyi
- Agents / install page: https://huddora.coolthings.fyi/agents
- Schema:
schema/config.schema.json - License: MIT · Copyright © 2026 CoolThings Inc
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。