| Crates.io | rash-mcp |
| lib.rs | rash-mcp |
| version | 1.0.0 |
| created_at | 2025-10-04 13:42:43.080511+00 |
| updated_at | 2025-10-10 17:09:00.110974+00 |
| description | MCP server for Rash (Rust-to-Shell transpiler) |
| homepage | |
| repository | https://github.com/paiml/bashrs |
| max_upload_size | |
| id | 1867902 |
| size | 94,137 |
MCP (Model Context Protocol) server for Rash - the Rust-to-Shell transpiler.
cargo build --release -p rash-mcp
cargo run -p rash-mcp
The server exposes one tool:
transpileTranspiles Rust source code to POSIX shell script.
Input:
{
"source": "fn main() { println!(\"Hello, World!\"); }",
"optimize": false,
"strict": false
}
Output:
{
"shell_script": "#!/bin/sh\n...",
"warnings": []
}
Parameters:
source (string, required): Rust source code to transpileoptimize (boolean, optional): Enable optimizations (default: false)strict (boolean, optional): Enable strict mode (default: false)fn main() {
let x = 42;
}
Generates:
#!/bin/sh
main() {
x=42
}
main "$@"
fn main() {
println!("Hello, MCP!");
}
Generates:
#!/bin/sh
rash_println() {
printf '%s\n' "$1"
}
main() {
rash_println 'Hello, MCP!'
}
main "$@"
cargo test -p rash-mcp
TranspileHandler implements pforge Handler traitpforge-runtime for MCP protocolbashrs crateBuilt using EXTREME TDD:
All 3 handler tests passing (100% coverage of critical paths).