
pyroprompts/mcp-stdio-to-streamable-http-adapter
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
STDIO MCP Server によるプロキシで、ストリーミング可能な HTTP MCP Server と連携
概要
ストリーミング可能な HTTP MCP サーバーで、STDIO MCP Server サポート (最も多い) を持つ MCP クライアントを統合 ストリーミング可能な HTTP MCP サーバーがある場合、これをフォークし、 URI とパブリッシングをハードコーディングすると、ポイントできるリポジトリを付与し、ディレクトリに追加し、STDIO 経由で人々 が使用できるようにします。 注意: これはmcp-remoteパッケージに類似しています MCP 仕様では、3 月 2025 日と 4 月末の HTTP トランスポートのランディング エンドを追加し、クライアントはサポートを採用していません。 typescript-sdk はコードをマージしましたが、リリースされていません。 Python SDKはまだ開発中です。 インスペクターはそれをサポートしていますが、それはそれです。 開発者は awkward の立場で発言します。 STDIOまたはSSE(非推奨)を使用してMCP Serverを開発することで、クライアントと連携したり、ストリーミング可能なHTTPトランスポートで開発したりできますが、誰も使用できません。 私は(ferrants)は、単にインスペクターよりもストリーミング可能なHTTP MCPサーバーを統合し始めたいので、クライアントとLMをすぐに接続する方法が必要です!
概要(AI 翻訳)
ストリーミング可能な HTTP MCP サーバーで、STDIO MCP Server サポート (最も多い) を持つ MCP クライアントを統合
ストリーミング可能な HTTP MCP サーバーがある場合、これをフォークし、 URI とパブリッシングをハードコーディングすると、ポイントできるリポジトリを付与し、ディレクトリに追加し、STDIO 経由で人々 が使用できるようにします。
注記: これはmcp-remoteパッケージに類似しています
なぜ?
MCP 仕様では、3 月 2025 日と 4 月末の HTTP トランスポートのランディング エンドを追加し、クライアントはサポートを採用していません。 typescript-sdk はコードをマージしましたが、リリースされていません。 Python SDKはまだ開発中です。 インスペクターはそれをサポートしていますが、それはそれです。
開発者は awkward の立場で発言します。 STDIOまたはSSE(非推奨)を使用してMCP Serverを開発することで、クライアントと連携したり、ストリーミング可能なHTTPトランスポートで開発したりできますが、誰も使用できません。
私は(ferrants)は、単にインスペクターよりもストリーミング可能なHTTP MCPサーバーを統合し始めたいので、クライアントとLMをすぐに接続する方法が必要です!
このパッケージは、Streamable HTTP MCP Server に中継する STDIO MCP Server であることによって、キャップをブリッジすることを目指しています。 これにより、MCP クライアントは、ストリーム可能な HTTP をすぐにサポートできます.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
mcp-stdio-to-streamable-http-adapter MCP Server
Integrate any MCP Client that has STDIO MCP Server Support (most do) with the Streamable HTTP MCP Servers
If you have a Streamable HTTP MCP Server, forking this, hardcoding the URI and publishing will give you a repo that you can point to, add to directories and let people use via STDIO.
Note: This has similarities to the mcp-remote package
Why?
The MCP Spec to add a Streamable HTTP Transport landed end of March 2025 and as of the end of April, no clients have adopted support. The typescript-sdk has merged the code, but not released. The Python SDK is still in development to support it. The Inspector supports it, but that’s it.
This leaves developers in an awkward position. Develop the MCP Server using STDIO or SSE (deprecated) so it works with clients or develop with Streamable HTTP transport, but nobody can use it.
I (ferrants) want to start integrating the Streamable HTTP MCP Servers beyond just the inspector, so I need a way to connect them to clients and LLMs right away!
This package aims to bridge the cap by being a STDIO MCP Server that relays to your Streamable HTTP MCP Server. This makes all MCP Clients support Streamable HTTP right away. And now developers can develop the Streamable HTTP MCP Servers and provide an installation method.
Installation
To add OpenAI to Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
Env Vars
URI: The URL of the Streamable HTTP MCP Server. This is required.MCP_NAME: The name of the MCP Server. This is optional. If you configure multiple, this is required so they do not have the same names.BEARER_TOKEN: The Bearer token for the Streamable HTTP MCP Server. This is optional. If specified, this will be sent along in the Authorization header.
Configuration
You can use it via npx in your Claude Desktop configuration like this:
{
"mcpServers": {
"my-saas-app-development": {
"command": "npx",
"args": [
"@pyroprompts/mcp-stdio-to-streamable-http-adapter"
],
"env": {
"URI": "http://localhost:3002/mcp",
"MCP_NAME": "local-custom-streamable-http-adapter"
}
}
}
}
Or, if you clone the repo, you can build and use in your Claude Desktop configuration like this:
{
"mcpServers": {
"my-saas-app-development": {
"command": "node",
"args": [
"/path/to/mcp-stdio-to-streamable-http-adapter/build/index.js"
],
"env": {
"URI": "http://localhost:3002/mcp",
"MCP_NAME": "local-custom-streamable-http-adapter"
}
}
}
}
インストール
npx @pyroprompts/mcp-stdio-to-streamable-http-adapter設定
{
"mcpServers": {
"my-saas-app-development": {
"command": "npx",
"args": [
"@pyroprompts/mcp-stdio-to-streamable-http-adapter"
],
"env": {
"URI": "http://localhost:3002/mcp",
"MCP_NAME": "local-custom-streamable-http-adapter"
}
}
}
}