TA

tidewave-ai/mcp_proxy_rust

开发工具

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

125 stars 20 forks 质量 48 趋势 0

tidewave-ai/mcp_proxy_rust 是一个从 https://github.com/tidewave-ai/mcp_proxy_rust. 导入的 MCP 服务器候选

概览

tidewave-ai/mcp_proxy_rust 是一个从 https://github.com/tidewave-ai/mcp_proxy_rust. 导入的 MCP 服务器候选

概述(AI 翻译)

一个独立的二进制文件,用于将基于 STDIO 的 MCP 客户端连接到基于 HTTP(SSE)的 MCP 服务器。

注意:代理同时支持根据2024-11-05的SSE以及根据2025-03-26规范的可流式HTTP。 不过也有可能连接的客户端不支持服务器发送的版本。

安装

最新发布可在发布页面查看。

macOS

根据你的Mac,你可以用以下命令之一下载最新版本:

苹果硅片:

英特尔:

这将mcp-proxy二进制文件放入当前工作目录(pwd)。

请注意,这些二进制文件没有公证,所以如果你用浏览器下载版本,将无法打开。

或者,你也可以用以下方式移除隔离旗:

Linux

你可以从发布页面下载最新版本,也可以根据你的架构使用一个命令:

x86:

arm64 / aarch64:

Windows

您可以从发布页面下载最新版本,或使用以下 Powershell 命令:

从零开始建设

代理是用 Rust 构建的。如果你安装了 Rust 及其工具,项目可以用 cargo 构建:

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

README

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

mcp-proxy

A standalone binary for connecting STDIO based MCP clients to HTTP (SSE) based MCP servers.

Note: the proxy supports both SSE according to the 2024-11-05 as well as streamable HTTP according to the 2025-03-26 specification. It may happen though that the connecting client does not support the version sent by the server.

Installation

The latest releases are available on the releases page.

macOS

Depending on your Mac, you can download the latest version with one of the following commands:

Apple Silicon:

curl -sL https://github.com/tidewave-ai/mcp_proxy_rust/releases/latest/download/mcp-proxy-aarch64-apple-darwin.tar.gz | tar xv

Intel:

curl -sL https://github.com/tidewave-ai/mcp_proxy_rust/releases/latest/download/mcp-proxy-x86_64-apple-darwin.tar.gz | tar xv

which will put the mcp-proxy binary in the current working directory (pwd).

Note that the binaries are not notarized, so if you download the release with the browser, you won’t be able to open it.

Alternatively, you can remove the quarantine flag with:

xattr -d com.apple.quarantine /path/to/mcp-proxy

Linux

You can download the latest release from the Releases page or with one command, depending on your architecture:

x86:

curl -sL https://github.com/tidewave-ai/mcp_proxy_rust/releases/latest/download/mcp-proxy-x86_64-unknown-linux-musl.tar.gz | tar zxv

arm64 / aarch64:

curl -sL https://github.com/tidewave-ai/mcp_proxy_rust/releases/latest/download/mcp-proxy-aarch64-unknown-linux-musl.tar.gz | tar zxv

Windows

You can download the latest release from the Releases page or with the following Powershell command:

curl.exe -L -o mcp-proxy.zip https://github.com/tidewave-ai/mcp_proxy_rust/releases/latest/download/mcp-proxy-x86_64-pc-windows-msvc.zip; Expand-Archive -Path mcp-proxy.zip -DestinationPath .

Building from scratch

The proxy is built in Rust. If you have Rust and its tools installed, the project can be built with cargo:

cargo build --release

Then, the binary will be located at target/release/mcp-proxy.

Usage

If you have an SSE MCP server available at http://localhost:4000/tidewave/mcp, a client like Claude Desktop would then be configured as follows.

On macos/Linux

{
  "mcpServers": {
    "my-server": {
      "command": "/path/to/mcp-proxy",
      "args": ["http://localhost:4000/tidewave/mcp"]
    }
  }
}

On Windows

{
  "mcpServers": {
    "my-server": {
      "command": "c:\\path\\to\\mcp-proxy.exe",
      "args": ["http://localhost:4000/tidewave/mcp"]
    }
  }
}

Configuration

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "my-server": { "command": "/path/to/mcp-proxy", "args": ["http://localhost:4000/tidewave/mcp"] } } }