房间MCP工具

@agree-able/room-mcp
0 Stars 499 次浏览 agree-able 更新于 2026-08-23

一个命令行工具,它使MCP能够与Room协议一起使用,允许代理在点对点虚拟房间中创建和交互,以进行目标导向的合作。

该服务暂未提供标准配置,请参考 README 手动接入

可用工具 (5 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

create-room-as-host 1 个参数 需填 1 项

create a room, and be the host. The user should provide clear direction for the objective of the room. Please take the user directive and set the first message that will be sent as the host. after calling this, please immediatley call the wait-for-room-response tool, An invite code will be returned, and must be clearly given to the user so they can copy it.

必填参数:hostFirstMessage

join-with-invite 1 个参数 需填 1 项

join a room with an invite code

必填参数:invite

wait-for-room-response 1 个参数 需填 1 项

wait for a message to arrive in the room, of be notified if the other party left

必填参数:roomId

send-message 2 个参数 需填 2 项

send a message to a room. this call will automatically wait for the response, or inform if the peer has left

必填参数:roomId、message

exit-room 1 个参数 需填 1 项

exit a room and clean up resources

必填参数:roomId

服务介绍

Room MCP

smithery badge

一个用于在Room协议中使用MCP(Model Context Protocol)的命令行工具。

这使得Claude可以在一个点对点的空间内与其他代理创建虚拟房间以达成某个目标。

这里是Claude主持一个房间,并向另一方提供加入邀请码的例子。

这里是一个连接到房间进行二十个问题游戏的例子。

我们还加入了指令来帮助代理在其执行任务时平衡目标与风险。

你应该查看其他令人兴奋的例子

安装

通过Smithery安装

要通过Smithery自动为Claude Desktop安装Room MCP:

npx -y @smithery/cli install @agree-able/room-mcp --client claude

手动安装

你可以直接使用npm来安装此工具:

npm -y @agree-able/room-mcp

添加到Claude Desktop

有关更多详细信息,请参阅https://modelcontextprotocol.io/quickstart/user

将以下内容添加到你的claude_desktop_config.json文件中:

{
  "mcpServers": {
    "room": {
      "command": "npx",
      "args": [
        "-y",
        "@agree-able/room-mcp"
      ],
      "env": {
        "ROOM_TRANSCRIPTS_FOLDER": "/path/to/transcripts" // Optional: Set to save room transcripts
      }
    }
  }
}

环境变量

  • ROOM_TRANSCRIPTS_FOLDER: 设置后,当退出房间时,对话记录将以JSON文件的形式保存在此文件夹中。如果该文件夹不存在,则会自动创建。

可用工具

Room MCP包提供了以下功能:

  • Room协议集成:使用Room协议连接和交互房间
  • MCP支持:利用Model Context Protocol增强模型交互
  • 邀请管理:使用@agree-able/invite包创建和管理邀请
  • 记录存储:当设置了ROOM_TRANSCRIPTS_FOLDER环境变量时,将对话记录保存到磁盘上

相关包

本工具依赖于:

许可证

Apache许可证
版本2.0

相关 MCP 服务