[package]
name = "run_code_rmcp"
description = "云函数服务,执行JS/TS/Python语言代码,脚本必须有约定的函数名称(handler/main),会调用约定的函数名称结果和日志返回."
version.workspace = true
edition.workspace = true
license = "Apache-2.0"
repository = "https://github.com/nuwax-ai/mcp-proxy"
homepage = "https://nuwax.com/"
readme = "README.md"
default-run = "run_code_rmcp"
[package.metadata.dist]
dist = false
[features]
default = []
mcp = ["dep:rmcp"]
[dependencies]
tokio = { workspace = true, features = ["fs", "signal", "io-util", "process", "time"] }
serde = { workspace = true }
serde_json = { workspace = true }
log = { workspace = true }
anyhow = { workspace = true }
thiserror = { workspace = true }
tempfile = { workspace = true }
clap = { workspace = true }
once_cell = { workspace = true }
async-trait = { workspace = true }
utoipa = { workspace = true }
env_logger = "0.11"
rmcp = { version = "0.17", features = [
"server",
"client",
"transport-io",
"transport-async-rw",
"macros",
], optional = true }
regex = "1.13"
pest = { version = "2.9", features = ["pretty-print"] }
pest_derive = "2.9"
blake3 = "1.8"
pin-project = "1.1"
schemars = "1.2"
[[bin]]
name = "script_runner"
path = "src/script_runner.rs"
required-features = ["mcp"]