M
Mcproto
by @TheOpenTeam
Minecraft protocols in Rust. Async, fast and easy-to-use.
Created 3/7/2026
Updated about 4 hours ago
README
Repository documentation and setup instructions
mcproto
使用
安装
在你的项目根目录中使用以下命令:
cargo add mcproto
或者在Cargo.toml中手动添加:
[dependencies]
mcproto = "0.1"
示例
use mcproto::utils::{VarInt};
pub fn main() {
let mut buffer = Vec::new();
VarInt::write_to(&mut buffer, 114514);
println!("{:?}", &buffer[..]); // 输出结果
}
鸣谢与其他
本项目使用RustRover开发,感谢JetBrains的支持。
本项目欢迎来自任何形式的贡献。可以通过Pull Request或Issue进行贡献,也可以为官方文档纠错或加以补充。
注意,本项目遵循MIT协议,对于使用本项目用于商业、开源产品的,请署名。
Quick Setup
Installation guide for this server
Installation Command (package not published)
git clone https://github.com/TheOpenTeam/mcproto
Manual Installation: Please check the README for detailed setup instructions and any additional dependencies required.
Cursor configuration (mcp.json)
{
"mcpServers": {
"theopenteam-mcproto": {
"command": "git",
"args": [
"clone",
"https://github.com/TheOpenTeam/mcproto"
]
}
}
}