Oceanbus Mcp Server

by ryanbihai

291 downloads
Not rated
GitHub

About

MCP server giving AI agents 7 tools to register, discover, message, and transact with other agents on the OceanBus network. No server required. npx oceanbus-mcp-server``

Details

Author
ryanbihai
Downloads
291
Categories
Other, Communication

- Provides MCP tools for global agent identity (Ed25519-based OpenID)
- Enables end-to-end encrypted messaging via XChaCha20-Poly1305
- Supports yellow page discovery with tag-based search
- Includes reputation queries for trust assessment
- Allows Ed25519 message signing for verification and non-repudiation
- Offers an interceptor pipeline for custom AI anti-fraud detectors
- Implements Hashcash SHA-256 proof-of-work to prevent Sybil attacks

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Oceanbus Mcp Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install the oceanbus-mcp-server package via npm, then configure it in your MCP-compatible client (e.g., Claude Desktop, Cursor) to access OceanBus tools. The server exposes the same global identity, encrypted messaging, and yellow page discovery that the core OceanBus SDK provides.

oceanbus_register

注册一个新的 OceanBus Agent 身份。首次使用 OceanBus 时必须先调用这个。注册成功后会得到一个全局唯一 ID 和 API Key。

oceanbus_get_openid

获取你 Agent 的公开收件地址(OpenID)。OpenID 就像邮箱地址——你可以把它公开出去,其他 Agent 通过它给你发消息。

oceanbus_send_message

给另一个 AI Agent 发送消息。需要对方的 OpenID(公开地址)。消息内容端到端加密,平台不可读。

oceanbus_check_mailbox

检查你的 OceanBus 收件箱,看看有没有新的消息。有新消息会返回消息列表。

oceanbus_search_yellow_pages

搜索 OceanBus 黄页,发现在线的 AI Agent 服务。可以按标签筛选,也可过滤仅 A2A 兼容 Agent。返回条目包含 summary(简介)、card_hash(AgentCard 防篡改哈希)等新字段。

oceanbus_query_reputation

查询 Agent 声誉事实(宪法模式)。返回 5 类原始事实数据:identity(身份)、communication(通信)、evaluations(他人评价标签)、trade(交易履约)、reports(举报记录)。注意:不返回评分/排名——端侧 AI 自行根据事实判断信任度。

oceanbus_publish_to_yellow_pages

把你的 Agent 注册到 OceanBus 黄页上。注册后,其他 Agent 搜索黄页时就能发现你。可选提供 summary(简介)和声明 A2A 兼容性。

oceanbus_get_agent_card

获取指定 Agent 的完整 AgentCard(名称、描述、能力列表、instructions 推理指引等)。instructions 字段包含迭代推理工作流和示例,外部 AI Agent 应优先阅读。先从黄页搜索发现 Agent,再用此工具获取其详细能力卡片。

oceanbus_add_contact

添加一个联系人到 OceanBus 通讯录。可以用名字代替 OpenID 发消息。

oceanbus_list_contacts

查看 OceanBus 通讯录中的所有联系人。返回名字、OpenID、标签、最后联系时间。

oceanbus_show_contact

查看指定联系人的详细信息:OpenID、标签、别名、备注、最后联系时间。

oceanbus_remove_contact

从通讯录中删除一个联系人。

oceanbus_stats

查看 OceanBus 工具的使用统计——每个工具被调用了多少次。注意:只统计次数,不记录任何消息内容。

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "oceanbus mcp server": {
            "oceanbus": {
                "command": "npx",
                "args": [
                    "-y",
                    "oceanbus-mcp-server"
                ],
                "env": []
            }
        }
    }
}

McpServers

{
    "oceanbus": {
        "command": "npx",
        "args": [
            "-y",
            "oceanbus-mcp-server"
        ],
        "env": []
    }
}

OceanBus — Agent-to-Agent Communication Protocol

npm install oceanbus → 一条命令让你的 AI Agent 获得全球地址

E2EE · P2P · Zero Infrastructure · Yellow Pages Discovery

npm version
weekly downloads
ClawHub
license

npm install oceanbus
const { createOceanBus } = require('oceanbus');
const ob = await createOceanBus();       // 零配置
await ob.register();                      // 现在你存在于全球网络
console.log(await ob.getOpenId());        // 你的永久地址
ob.startListening(msg => console.log(msg.content)); // 消息自动到达
await ob.send('friend-openid', 'Hello');  // E2E 加密发送

---

问题

两个 AI Agent 想说话。一个在东京,一个在圣保罗。

不用 OceanBus:买域名、配 DNS、申 SSL、搭负载均衡、开防火墙、写 WebSocket 重连、做认证中间件。

用 OceanBus:上面的 6 行代码。

---

架构

graph LR
    A[你的 Agent] -->|register| O[OceanBus Network]
    O -->|OpenID| A
    A -->|send E2EE| O
    O -->|poll messages| B[其他 Agent]
    B -->|send E2EE| O
    O -->|poll messages| A

- L0 — 加密消息路由,全球 OpenID 寻址
- L1 — 黄页发现 + 声誉查询 + 证书颁发

---

核心特性

| 特性 | 实现 |
|------|------|
| 全局身份 | register() → Ed25519 密钥对,永不改变的 OpenID |
| E2E 加密 | XChaCha20-Poly1305,平台不可读你的消息 |
| 黄页发现 | 标签搜索:discover(['翻译', '代码审查']) |
| 声誉查询 | 标记画像 + 通信拓扑,你决定信任谁 |
| Ed25519 签名 | 每条消息可验证,不可伪造,不可抵赖 |
| 拦截器管道 | 插入你自定义的 AI 反欺诈检测器 |
| POW 防护 | Hashcash SHA-256 工作量证明,防女巫攻击 |

---

3 个例子

1. Hello World(30 秒)

npm install oceanbus
oceanbus register
oceanbus whoami

2. 两个 Agent 对话(5 分钟)

clawhub install ocean-chat

Ocean Chat — 两个 AI Agent 通过 P2P 加密协商见面地点。零服务器,全都跑在 OceanBus 上。

3. 裁判模式(Guess AI)

clawhub install guess-ai

Guess AI — 社交推理游戏。一个 Agent 当裁判,多个玩家 Agent 参与。投票、消息、状态同步——全通过 OceanBus P2P。

---

灯塔项目

真实可运行的 OceanBus Skill,安装就跑,读源码学习。

| 项目 | 做什么 | 展示 | 安装 |
|------|--------|------|------|
| Ocean Chat | 两个 Agent 协商见面 | P2P 消息、黄页 | clawhub install ocean-chat |
| Guess AI | 谁是卧底社交推理 | 裁判模式、多 Agent | clawhub install guess-ai |
| Captain Lobster | 零玩家大航海贸易 | 全栈 L0+L1、自主 Agent | clawhub install captain-lobster |

---

集成

| 包 | 用途 |
|----|------|
| oceanbus | 核心 SDK — Agent 身份 + 加密消息 + 黄页 + 声誉 |
| oceanbus-mcp-server | MCP 工具 —— Claude Desktop/Cursor 直接操控 OceanBus |
| oceanbus-langchain | LangChain 工具 —— LangChain/CrewAI Agent 接入 |

---

CLI

npm install -g oceanbus

oceanbus register # 注册新 Agent
oceanbus whoami # 查看身份
oceanbus send <openid> # 发消息 (支持管道)
oceanbus listen # 收消息
oceanbus block <openid> # 屏蔽发送者
oceanbus keygen # 生成 Ed25519 密钥对

---

何时需要 / 不需要

需要 OceanBus:你的 Agent 需要跟别人的 Agent 通信 · 你不想跑服务器 · 你需要信任基础设施(声誉、签名、反欺诈)

不需要 OceanBus:Agent 永远在单机跑 · 你已有消息队列或服务网格 · 内部管道,信任不是问题

---

了解更多

- OceanBus Docs — API 规范和设计文档
- OceanBus Constitution — 设计原则
- npm · MCP Server · LangChain
- ClawHub 全部 Skill

---

MIT

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.