AM

abluva/mcp-remote

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

54 stars 14 forks 质量 83 趋势 21MIT

abluva/mcp-remote 是从 https://github.com/abluva/mcp-remote. 导入的 MCP 服务器候选

概览

abluva/mcp-remote 是从 https://github.com/abluva/mcp-remote. 导入的 MCP 服务器候选

概述(AI 翻译)

Abluva维护的mcp-remote分支——一个stdio代理,连接MCP客户端(Claude Desktop、光标等)与带有OAuth的远程MCP服务器。

当上游mcp-remote在认证中卡住、会话重新登录中途中断,或拒绝localhost的OAuth回调时,使用该包。

不管 @abluva/mcp-remote
GitHub abluva-research/mcp-remote
上游基地 geelen/mcp-remote v0.1.38
还包含了 jacopoc PR #213(会话中重新授权——上游仍然开放)

📄 完整的分支变更日志、上游问题/PR映射及版本历史: ABLUVA-FORK.md


为什么Abluva要维护这把叉子

上游mcp-remote实际上是仅限stdio的MCP客户端的OAuth桥接。geelen/mcp-remote上有若干关键OAuth漏洞*仍未解决——尤其是在会话中令牌到期、Claude Desktop卡顿,以及localhost回调连接被拒绝。

@abluva/mcp-remote 合并:

  • jacopoc 未合并的重新认证分支(PR #213)
  • 部分开放上游PRs(#297、#290、#302、#262部分)
  • Abluva 生产修复 MCP 网关 OAuth 修复(回调服务器寿命、自动端口、集线器登出重新认证)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

@abluva/mcp-remote

Abluva-maintained fork of mcp-remote — a stdio proxy that connects MCP clients (Claude Desktop, Cursor, etc.) to remote MCP servers with OAuth.

Use this package when upstream mcp-remote hangs on auth, drops mid-session re-login, or refuses OAuth callbacks on localhost.

npm @abluva/mcp-remote
GitHub abluva-research/mcp-remote
Upstream base geelen/mcp-remote v0.1.38
Also incorporates jacopoc PR #213 (mid-session re-auth — still open upstream)

📄 Full fork changelog, upstream issue/PR mapping, and version history: ABLUVA-FORK.md


Why Abluva maintains this fork

Upstream mcp-remote is the de facto OAuth bridge for stdio-only MCP clients. Several critical OAuth bugs remain open on geelen/mcp-remote — especially mid-session token expiry, Claude Desktop hangs, and localhost callback connection refused.

@abluva/mcp-remote merges:

  • jacopoc’s unmerged re-auth branch (PR #213)
  • Selected open upstream PRs (#297, #290, #302, #262 partial)
  • Abluva production fixes for MCP gateway OAuth (callback server lifetime, auto ports, Hub logout re-auth)

Quick start (Claude Desktop)

{
  "mcpServers": {
    "remote-example": {
      "command": "npx",
      "args": [
        "-y",
        "@abluva/mcp-remote@latest",
        "https://your-mcp-gateway.example/mcp-connect/"
      ]
    }
  }
}

Direct stateless server (MCP 2026-07-28, bypass gateway):

{
  "mcpServers": {
    "sql-sandbox-v2": {
      "command": "npx",
      "args": [
        "-y",
        "@abluva/mcp-remote@latest",
        "--protocol",
        "2026-07-28",
        "--allow-http",
        "http://127.0.0.1:8095/mcp/v2"
      ]
    }
  }
}

Protocol modes (--protocol)

Mode Behavior
auto (default) Probe remote with server/discover; use 2026-07-28 if supported, else legacy
legacy Stateful Streamable HTTP (initialize + session) — use for Obot/gateway URLs
在 GitHub 查看完整 README

安装

npx -y @abluva/mcp-remote@latest https://your-mcp-gateway.example/mcp-connect/<catalog-id>
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "remote-example": { "command": "npx", "args": [ "-y", "@abluva/mcp-remote@latest", "https://your-mcp-gateway.example/mcp-connect/<catalog-id>" ] } } }