bolt: 极速单文件 MCP 命令执行服务器
- 手写 JSON-RPC 2.0 + MCP (2025-06-18) 协议实现,仅依赖 serde_json + libc - 双传输:stdio(本地 AI 客户端)与 Streamable HTTP(远程连接) - 工具:run_command(超时/取消/进度通知/进程树杀除)与 shell 持久会话四件套 - 安全:命令白黑名单、Bearer 认证、Origin 校验 - LTO fat + codegen-units=1,ping 吞吐约 1.4 万 msg/s - 8 个单元测试 + stdio/HTTP 端到端集成测试(31 项)
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
[package]
|
||||
name = "bolt"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
description = "bolt — 极速单文件 MCP 命令执行服务器 (stdio / Streamable HTTP)"
|
||||
license = "MIT"
|
||||
|
||||
[dependencies]
|
||||
serde_json = "1"
|
||||
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
libc = "0.2"
|
||||
|
||||
[profile.release]
|
||||
opt-level = 3
|
||||
lto = "fat"
|
||||
codegen-units = 1
|
||||
strip = true
|
||||
Reference in New Issue
Block a user