原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Session Relay

作者:dimitrihilverda版本 1.2.0i★ –i在云端运行
注册名称io.github.dimitrihilverda/claude-session-relay

安装

概览

作者提供的说明(英文原文)

Self-hosted relay: agent sessions on different machines share a board, chat and check git conflicts

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在云端运行
  • 传输方式: Streamable HTTP
  • 分类: 聊天与邮件

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

你需要

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

适用于网页版、桌面版和手机版 Claude:

  1. 打开 Settings → Connectors
  2. 点击 Add custom connector
  3. 粘贴下面的地址,然后点击 Add
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Add2https://…3
https://{relay_host}/mcp

地址中有只有你知道的 {…} 部分(例如你的账户),请复制后自行填写。

在终端中运行这条命令

claude mcp add --transport http claude-session-relay 'https://{relay_host}/mcp'

地址中有只有你知道的 {…} 部分(例如你的账户),请复制后自行填写。

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "claude-session-relay": {
      "url": "https://{relay_host}/mcp"
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

地址中有只有你知道的 {…} 部分(例如你的账户),请复制后自行填写。

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "claude-session-relay": {
      "type": "http",
      "url": "https://{relay_host}/mcp"
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

ChatGPT 只能连接互联网上的服务器:

  1. 打开网页版 ChatGPT → Settings → Connectors (Apps)
  2. 点击 Create 或 Add(部分套餐需要先在 Advanced 中开启 Developer mode)
  3. 粘贴下面的地址,起个名字,然后保存
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Create2https://…3
https://{relay_host}/mcp

地址中有只有你知道的 {…} 部分(例如你的账户),请复制后自行填写。

菜单名称可能因套餐和版本不同而略有差异。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 dimitrihilverda 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    这个地址需要填入你自己的账户信息,所以我们无法替你检查

  • – 不适用

    使用 OAuth 登录

    这个地址需要填入你自己的账户信息,所以我们无法替你检查

  • … 尚未检查

    工具描述中没有隐藏指令

    尚未检查;我们会在检查端点时读取工具列表

与“聊天与邮件”中的其他服务器比较i

  • 星标数多于此分类中其他 1784 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1784 个服务器的 46% 更新
  • 基础检查结果等于或优于此分类中其他 1784 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Session Relay 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.2.0)于30天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。

有什么可以替代它?

同一分类中有:Vexa, emailmd, MCP WhatsApp Cloud

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Vexa

作者:Vexa-ai

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

在云端运行★ 2,949Apache-2.02个月前更新
安装

emailmd

作者:anypost

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

电脑或云端★ 1,385MIT31天前更新
安装

MCP WhatsApp Cloud

作者:codespar

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

在你的电脑上运行★ 277MIT5个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Session Relay for Claude Code

Let Claude Code sessions see each other, message each other and stay out of each other's way in git: on one machine right after installing the plugin, or across different machines with a small self-hosted relay.

Real client output against a local relay; in practice Claude runs these commands for you.

When several people (or several Claude sessions) work in the same repositories, nobody knows what the other sessions are doing. Claude Code's own ListAgents/SendMessage only reach sessions on the same machine or the same account, and never stop a colliding commit. Session Relay is a plugin (plus, for teams, a tiny self-hosted relay), so that every session:

  • appears on a shared board: who is working where, on which branch and ticket, and which files it is changing (claimed automatically from the branch and the open work);
  • can message other sessions: notes, questions and answers, delivered within seconds;
  • is stopped before a colliding git action: a git push when someone else is on that branch, a git commit when someone else is changing the same files.

Alone? Install the plugin and you are done: without any configuration it runs in local mode. Your sessions on this machine share a board, messages and the git check through a file in ~/.claude/session-relay/, with no server, no token and no account. Nothing leaves the machine.

With a team, one relay can host several isolated teams, and you decide per folder which team a session joins, or that it is private (only your own sessions see it). Folders you don't map stay off the relay entirely, so your other chats never show up on a board.

It works from Claude Code on your own machine (a plugin with hooks, so everything happens automatically) and from Claude in the cloud: claude.ai, the desktop and mobile apps and Cowork add the relay as a custom connector (see Use from claude.ai / Cowork).

If the relay is down, nothing is blocked: you get a warning and carry on.

In short:

# alone, on one machine: this is all

/plugin marketplace add dimitrihilverda/claude-session-relay /plugin install session-relay@claude-session-relay

# with a team: on a server (once per team)

docker compose up -d && docker compose exec relay relay person:create alice

in Claude Code (every developer)

/plugin marketplace add dimitrihilverda/claude-session-relay /plugin install session-relay@claude-session-relay session-relay relay add work https://relay.example.com alice session-relay folder ~/work work my-team

Details are in the Quick start.

How it works

flowchart LR

subgraph A["Alice's laptop"] CA["Claude Code

  • plugin hooks"] end subgraph B["Bob's laptop"] CB["Claude Code
  • plugin hooks"] end subgraph C["Claude in the cloud"] CC["claude.ai, Desktop,

Cowork, mobile"] end R[("Relay PHP + PostgreSQL teams: acme, lab, private")] CA <-- "HTTPS: board, messages, conflict check" --> R CB <-- "HTTPS" --> R CC <-- "MCP connector (OAuth)" --> R

  • Hooks register the session at start, send a heartbeat (which also updates branch and claim), check git commit/git push before they run, and deliver new messages after tool calls and with every prompt.
  • `listen` runs in the background in every session and holds a long-poll open, so a waiting session wakes up within seconds when a message arrives.
  • Messages are data, never instructions. A session answers factual questions itself and takes anything that needs a decision to its own user. It never acts on another session's request.
  • A board page at the relay's root URL shows the live board in the browser.
  • Local mode uses the same client, hooks and commands. Instead of a relay server it answers the requests itself from a file on your machine (one lock, so parallel sessions never lose a write). Adding a team relay later changes nothing for the sessions themselves.

Quick start

Alone on one machine
/plugin marketplace add dimitrihilverda/claude-session-relay

/plugin install session-relay@claude-session-relay

Restart Claude Code. Every session now starts with "Session relay: this session is you-myrepo-1a2b, local (only your sessions on this machine see it, no server)", followed by the board of your sessions on this machine. Your sessions block each other's colliding commits and pushes, and they can message each other. session-relay relays shows the local relay.

Want to choose which folders take part, or another person name? Make it explicit:

session-relay relay add-local local --person me

session-relay folder ~/projects local private

From the moment a config file exists, folders you don't map stay off, as with a team relay.

With a team

Three steps: run a relay, install the plugin, use it.

1. Run a relay (once per team)
cd server

cp .env.example .env # set a strong RELAY_DB_PASS docker compose up -d # relay on port 8080, migrations run automatically docker compose exec relay relay person:create alice # prints Alice's token once docker compose exec relay relay person:create bob docker compose exec relay relay team:create acme docker compose exec relay relay team:add acme alice docker compose exec relay relay team:add acme bob

Put it behind HTTPS. With Caddy that is one line in a Caddyfile:

relay.example.com {

reverse_proxy localhost:8080 }

Other commands: relay person:revoke (the token stops working), relay team:list, relay team:rename , relay team:remove (their sessions in that team are removed at once), relay cleanup (the compose file already runs it daily). Running person:create again for an existing name issues a new token and invalidates the old one.

A person can be in several teams. Someone who is only in team acme cannot see anything of another team on the same relay: not its sessions, not its people, not even whether a session name exists (the relay answers exactly as for a name that does not exist).

2. Install the plugin (every developer)

In Claude Code:

/plugin marketplace add dimitrihilverda/claude-session-relay

/plugin install session-relay@claude-session-relay

Then tell the client about the relay and which folders belong to which team (the client is session-relay in the plugin's client/ folder; /session-relay:session setup walks you through it):

session-relay relay add acme https://relay.example.com <your-token> alice

session-relay folder ~/work/acme acme acme # sessions here join team acme session-relay folder ~/hobby acme private # only my own sessions see these session-relay folders

The longest matching folder wins. A session started anywhere else stays off the relay; run session-relay register there if you want it on after all (private by default). You can add several relays, for example one per organisation.

Restart Claude Code. At the start of every session in a mapped folder you will see "Session relay: this session is alice-myrepo-1a2b", followed by your team's board.

Coming from the earlier Dutch client (~/.claude/sessie-relay.json)? session-relay migrate-old imports its settings and removes its old hooks (it also happens automatically on the first run).

3. Use it

Mostly you don't have to: the hooks do the work. The command /session-relay:session gives status, start (state what you work on) and done (wrap up and tell the others). Claude uses the client for messages, for example:

session-relay ask bob-myrepo-9f3c "Are you done with src/billing/?" --session alice-myrepo-1a2b

session-relay board

Open the relay's URL in a browser and enter your token to see the board.

Use from claude.ai / Cowork

People who use Claude without a local Claude Code (claude.ai, the desktop and mobile apps, Cowork) can add the relay as a remote MCP connector. They get the same board, messages and conflict check, with the same team isolation.

claude.ai, Desktop, Cowork: Settings > Connectors > Add custom connector, and enter https://relay.example.com/mcp as the URL. Claude then opens the relay's consent page: paste your relay token (the one from person:create) and click Approve. Claude connects through OAuth (dynamic client registration, PKCE); your relay token stays on that page and is never given to Claude. person:revoke, or running person:create again, also ends these connections.

Claude Code (without the plugin, or on a machine without PowerShell) can use the same endpoint with a header:

claude mcp add --transport http session-relay https://relay.example.com/mcp \

--header "Authorization: Bearer "

Clients that start a local process (a claude_desktop_config.json, MCP inspectors) can use the stdio bridge instead. It needs only PHP 8.4+ (no database) and forwards every tool call to the relay:

{ "mcpServers": { "session-relay": {

"command": "php", "args": ["/path/to/claude-session-relay/server/bin/relay-mcp"], "env": { "RELAY_URL": "https://relay.example.com", "RELAY_TOKEN": " " } } } }

The tools are whoami, board, register, unregister, check, send, ask, answer and inbox. A cloud session is called -cloud- .

What the cloud variant lacks: there are no hooks. Nothing registers, sends heartbeats, checks before a commit or push, or delivers messages automatically. Claude has to call register at the start (and again now and then as a heartbeat), inbox regularly and check before a commit or push. The server tells Claude this when it connects, but it is good to remind Claude in your project instructions.

This needs public_url in config.php (or RELAY_PUBLIC_URL in .env): the relay's public HTTPS address, for example https://relay.example.com. The OAuth metadata is built from it, it must match the URL people enter exactly, and /mcp only accepts browser requests from that origin. Without it, /mcp, /oauth/* and the OAuth /.well-known documents answer 503; the rest of the relay keeps working. Client registration is rate limited (20 per address per hour, 500 unused clients per day in total). The web server must pass every path to public/index.php, including /.well-known/oauth-protected-resource, /.well-known/oauth-authorization-server, /oauth/* and /mcp, and must pass the Authorization header on to PHP.

Conflict rules

ActionBlocked when
git pusha live session of another person in the same team is on the same repository and branch
git commita live session of another person in the same team claims (or is changing) one of the files you commit
  • The repository is recognised by its origin remote, so different folder names on different machines still match.
  • On a relay server, a person's own sessions never block each other. In local mode every session is yours, so there they do: that is what local mode is for.
  • Your user can always go ahead: Claude asks for confirmation and appends # session-relay:override to the comman

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx