M
Mcproto
作者 @TheOpenTeam
Minecraft protocols in Rust. Async, fast and easy-to-use.
创建于 3/7/2026
更新于 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协议,对于使用本项目用于商业、开源产品的,请署名。
快速设置
此服务器的安装指南
安装命令 (包未发布)
git clone https://github.com/TheOpenTeam/mcproto
手动安装: 请查看 README 获取详细的设置说明和所需的其他依赖项。
Cursor 配置 (mcp.json)
{
"mcpServers": {
"theopenteam-mcproto": {
"command": "git",
"args": [
"clone",
"https://github.com/TheOpenTeam/mcproto"
]
}
}
}