finch-mcp-stdio
finch-mcp-stdio is a simple standard input/output library built in Rust. It provides features that help developers efficiently process data and simplify I/O operations. Notably, it leverages Rust's safety and performance in its design.
GitHub Stars
0
User Rating
Not Rated
Favorites
0
Views
16
Forks
0
Issues
0
Finch-MCP-STDIO
A specialized tool for running MCP (Model Context Protocol) servers in STDIO mode using Finch.
Features
- Run MCP servers in STDIO mode for direct communication via standard input/output
- Support for custom environment variables and volume mounts
- Graceful container termination with Ctrl+C
- Built with Rust for performance and reliability
Prerequisites
Installation
From Source
Clone the repository and build the project:
git clone https://github.com/yourusername/finch-mcp-stdio.git
cd finch-mcp-stdio
cargo build --release
The compiled binary will be available at target/release/finch-mcp-stdio.
Using Cargo
cargo install --git https://github.com/yourusername/finch-mcp-stdio.git
Usage
Basic Usage
Run an MCP server in STDIO mode:
finch-mcp-stdio my-mcp-image:latest
With Environment Variables
finch-mcp-stdio my-mcp-image:latest -e API_KEY=xyz123 -e DEBUG=true
With Volume Mounts
finch-mcp-stdio my-mcp-image:latest -v /host/path:/container/path
Full Options
USAGE:
finch-mcp-stdio [OPTIONS] <IMAGE>
ARGS:
<IMAGE> MCP server image to run
OPTIONS:
-e, --env <KEY=VALUE>... Environment variables to pass to the container
-v, --volume <HOST_PATH:CONTAINER_PATH>... Mount volumes in the container
-h, --help Print help information
-V, --version Print version information
-v, --verbose Enable verbose logging (repeat for more verbosity)
Development
Running Tests
# Run unit tests
cargo test
# Run integration tests (requires Finch)
cargo test -- --ignored
Building Documentation
cargo doc --no-deps --open
How It Works
- The tool validates that Finch is installed and available
- It ensures the Finch VM is running
- It executes the specified container with STDIO mode enabled (
MCP_STDIO=true) - Standard input/output streams are piped between your application and the container
- The tool handles signal interrupts for graceful termination
License
MIT License - See LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
0
Followers
0
Repositories
0
Gists
0
Total Contributions
echokit_server is a high-performance server software built in Rust, offering efficient data processing and API management. Designed for developers, it boasts high scalability and adaptability for various applications. It is particularly well-suited for real-time data processing and microservices architecture.