
sparfenyuk/mcp-proxy
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Streamable HTTPと標準MCPトランスポート間の橋渡し
概要
mcpプロキシは、サーバートランスポート間を切り替えるためのツールです。サポートされるモードは2つあります: 1. stdioからSSE/StreamableHTTPへ 2.SSEからstdioへ stdioからプロキシサーバーを設置し、リモートのSSEサーバーに接続します。 このモードは、Claude Desktopのようなクライアントがネイティブサポートされていないにもかかわらず、SSE経由でリモートサーバーと通信することを可能にします。 このモードでは、プログラムの最初の引数としてMCPサーバーのSSEエンドポイントのURLを提供する必要があります。サーバーがStreamable HTTPトランスポートを使用している場合は、--transport=streamablehttpを渡してMCPプロキシ側で必ず強制してください。 MCP-プロキシはMCPクライアントによって起動されるべきなので、設定はそれに応じて行う必要があります。 Claude Desktopの場合、設定エントリは以下のようになります: プロキシサーバーを稼働させ、SSEサーバーを露出させてローカルのスタンディオサーバーに接続します。
概要(AI 翻訳)
- MCP-プロキシ
- 概要
- 1.stdio to SSE/StreamableHTTP
- 1.1 構成
- 1.2 例の使用例
- 2.SSEからstdioへ
- 2.1 構成
- 2.2 例の使用例
- 名前付きサーバー
- 設置
- PyPIによるインストール
- Githubリポジトリ経由でインストール(最新)
- コンテナとして設置
- トラブルシューティング
- コンテナイメージの拡張
- Docker Compose セットアップ
- コマンドライン引数
- 設定ファイルの例
- 試験
概要
mcp-proxyはサーバートランスポート間を切り替えるためのツールです。サポートモードは2つあります:
- stdio to SSE/StreamableHTTP
- SSEからstdioへ
1.stdio to SSE/StreamableHTTP
stdioからプロキシサーバーを設置し、リモートのSSEサーバーに接続します。
このモードは、Claude DesktopのようなクライアントがSSE経由でリモートサーバーと通信することを可能にしますが、サポートされていません ネイティブに。
1.1 構成
このモードでは、プログラムの最初の引数としてMCPサーバーのSSEエンドポイントのURLを提供する必要があります。サーバーがStreamable HTTPトランスポートを使用している場合は、mcp-proxy側で--transport=streamablehttpを渡して強制してください。
議論
|名前 |必須 |説明 |例 |
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
mcp-proxy
- mcp-proxy
About
The mcp-proxy is a tool that lets you switch between server transports. There are two supported modes:
- stdio to SSE/StreamableHTTP
- SSE to stdio
1. stdio to SSE/StreamableHTTP
Run a proxy server from stdio that connects to a remote SSE server.
This mode allows clients like Claude Desktop to communicate to a remote server over SSE even though it is not supported natively.
graph LR
A["Claude Desktop"] |stdio| B["mcp-proxy"]
B |SSE| C["External MCP Server"]
style A fill:#ffe6f9,stroke:#333,color:black,stroke-width:2px
style B fill:#e6e6ff,stroke:#333,color:black,stroke-width:2px
style C fill:#e6ffe6,stroke:#333,color:black,stroke-width:2px
1.1 Configuration
This mode requires providing the URL of the MCP Server’s SSE endpoint as the program’s first argument. If the server uses Streamable HTTP transport, make sure to enforce it on the mcp-proxy side by passing --transport=streamablehttp.
Arguments
| Name | Required | Description | Example |
|---|---|---|---|
command_or_url |
Yes | The MCP server SSE endpoint to connect to | http://example.io/sse |
インストール
uvx mcp-server-fetch設定
{
"mcpServers": {
"mcp-proxy": {
"command": "mcp-proxy",
"args": [
"http://example.io/sse"
],
"env": {
"API_ACCESS_TOKEN": "access-token"
}
}
}
}