
yonaka15/mcp-server-runner
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Model Context Protocol (MCP) サーバを実行するための WebSocket サーバーの実装。 このアプリケーションは、WebSocket接続を介してMCPサーバーにアクセスし、Webとの統合を促進することができます...
概要
: 現在、WIP(Work In Progress)の運用状況下にあるプロジェクトです。 特長と API が大幅に変更される場合があります。 Model Context Protocol (MCP) サーバを実行するための WebSocket サーバーの実装。 このアプリケーションは、MCP サーバーがWebSocket接続を介してアクセスでき、Webアプリケーションと他のネットワーク対応クライアントとの統合を促進します。 - 一般的な : このソフトウェアは、アクティブ開発中です - ⚠️ : APIと機能は、通知なしで変更する可能性があります - 🧪 : 現在、テストと改良を受けています - ドキュメントは積極的に更新されます MCP Server ランナーは、WebSocket クライアントと MCP サーバーの実装間のブリッジとして機能します.
概要(AI 翻訳)
**注記: 現在、WIP(Work In Progress)の運用状況下にあるプロジェクトです。 特長と API が大幅に変更される場合があります。
Model Context Protocol (MCP) サーバを実行するための WebSocket サーバーの実装。 このアプリケーションは、MCP サーバーがWebSocket接続を介してアクセスでき、Webアプリケーションと他のネットワーク対応クライアントとの統合を促進します。
##開発状況
- 在宅勤務**: このソフトウェアは、アクティブな開発中です
- ⚠️** API の安定性**: API と機能が通知なしで変更される場合があります
- 🧪 テスト:現在テストおよび精製を受けています
- ドキュメント**: ドキュメントを積極的に更新
概要
MCP Server ランナーは、WebSocket クライアントと MCP サーバーの実装間のブリッジとして機能します。 それは:
- MCP サーバープロセスの起動
- WebSocket接続の管理
- クライアントとMCPサーバー間の双方向通信を処理する
- 優雅な操業停止および間違いの処理を支えて下さい
##特徴
- WebSocketサーバーの実装と単一クライアントのサポート
- MCP サーバーインスタンスのプロセス管理
- クライアントとサーバー間で渡る双方向メッセージ
- 優雅な操業停止の処理
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Server Runner
Note: This project is currently under active development and in WIP (Work In Progress) status. Features and APIs may change significantly.
A WebSocket server implementation for running Model Context Protocol (MCP) servers. This application enables MCP servers to be accessed via WebSocket connections, facilitating integration with web applications and other network-enabled clients.
Development Status
- 🚧 Work In Progress: This software is in active development
- ⚠️ API Stability: APIs and features may change without notice
- 🧪 Testing: Currently undergoing testing and refinement
- 📝 Documentation: Documentation is being actively updated
Overview
MCP Server Runner acts as a bridge between WebSocket clients and MCP server implementations. It:
- Launches an MCP server process
- Manages WebSocket connections
- Handles bidirectional communication between clients and the MCP server
- Supports graceful shutdown and error handling
Features
- WebSocket server implementation with single-client support
- Process management for MCP server instances
- Bidirectional message passing between client and server
- Graceful shutdown handling
- Comprehensive error logging
- Cross-platform support (Unix/Windows)
Prerequisites
- Rust 1.70 or higher
- An MCP server implementation executable
Configuration
Environment Variables
The application can be configured through environment variables:
PROGRAM= # Path to the MCP server executable (required if no config file)
ARGS= # Comma-separated list of arguments for the MCP server
HOST=0.0.0.0 # Host address to bind to (default: 0.0.0.0)
PORT=8080 # Port to listen on (default: 8080)
CONFIG_FILE= # Path to JSON configuration file
Additional environment variables will be passed through to the MCP server process.
JSON Configuration
Alternatively, you can provide a JSON configuration file:
{
"servers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/workspace"
]
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your_token_here"
}
}
},
"default_server": "filesystem",
"host": "0.0.0.0",
"port": 8080
}
You can specify the configuration file in two ways:
- As a command-line argument:
mcp-server-runner config.json - Using the
CONFIG_FILEenvironment variable:CONFIG_FILE=config.json mcp-server-runner
The JSON configuration allows you to define multiple server configurations and select one as the default.
Configuration Priority
- Command-line specified config file
CONFIG_FILEenvironment variable- Environment variables (
PROGRAM,ARGS, etc.) - Default values
Usage
インストール
npx -y @modelcontextprotocol/server-filesystem /path/to/workspace