🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@msgmesh/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@msgmesh/mcp-server

MsgMesh MCP server — 讓 Claude / Cursor 等 AI agent 原生訂閱事件流(watch_topic)並自助開通(create_key / create_topic)。

Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
485
180.35%
Maintainers
1
Weekly downloads
 
Created
Source

@msgmesh/mcp-server

讓 AI agent 原生訂閱事件流的 MCP server。

MsgMesh 是架在 Kafka 之上的多租戶事件總線。把這個 MCP server 加進 Claude Desktop / Cursor,agent 就能用自然語言收發事件、監看 topic、甚至自己開通金鑰—— 你不必為它寫一層事件橋。

「監看 orders 這個 topic,有新訂單就告訴我。」

agent 會呼叫 watch_topic 長輪詢等下一批事件,收到就處理、再繼續等。

設定

加進 Claude Desktop(claude_desktop_config.json)或 Cursor 的 MCP 設定:

{
  "mcpServers": {
    "msgmesh": {
      "command": "npx",
      "args": ["-y", "@msgmesh/mcp-server"],
      "env": {
        "MQ_API_KEY": "<你的 API Key>",
        "MQ_CONTROL_PLANE_URL": "https://msgapi.jason3c.com",
        "MQ_GATEWAY_URL": "https://msgapi.jason3c.com"
      }
    }
  }
}

不需要事先安裝:npx -y 會在首次啟動時自動取得。

還沒有 API Key?

面板註冊後可簽發一把。或者——直接讓 agent 自己開通:

「用 create_key 建一把能 publish + subscribe 的 key,然後監看 support.tickets。」

agent 有 create_key / create_topic / watch_topic,會自我 bootstrap 後開始監看。 (自助開通需要一把有 admin scope 的 key;完全沒有 key 時請先到面板簽發。)

環境變數

變數說明
MQ_API_KEYAPI Key(必要)。
MQ_CONTROL_PLANE_URL管理 API(建 topic / 簽 key / 查用量)。
MQ_GATEWAY_URL收發 API(publish / consume)。

工具

29 個 tool,涵蓋:

  • 收發:publish_messageconsume_messageswatch_topic(長輪詢等下一批事件—— 「watch → 反應 → 再 watch」的核心)、get_presence
  • Topic:create_topiclist_topicsdelete_topic
  • 金鑰:create_key(支援 capabilities 細粒度能力)、list_keysdelete_key
  • Schema:register_schemaget_schemalist_schemasdelete_schema
  • Webhook:create_webhooklist_webhooksdelete_webhook
  • 函數:register_functionget_functiondelete_function
  • 死信:dlq_peekdlq_replay
  • 其他:get_usageget_auditget_planset_planget_billingget_connection_snippetget_docs

相關

授權

MIT

Keywords

msgmesh

FAQs

Package last updated on 18 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts