[package]
edition = "2024"
rust-version = "1.85"
name = "sampling2api"
version = "0.1.0"
authors = ["mirrorange"]
build = false
exclude = [
".vscode/",
"AGENTS.md",
"docs/",
"target/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Expose MCP client sampling as an Anthropic-compatible Messages API"
homepage = "https://github.com/mirrorange/sampling2api"
readme = "README.md"
keywords = [
"mcp",
"anthropic",
"sampling",
"api",
"bridge",
]
categories = [
"command-line-utilities",
"web-programming::http-server",
]
license = "MIT"
repository = "https://github.com/mirrorange/sampling2api"
[lib]
name = "sampling2api"
path = "src/lib.rs"
[[bin]]
name = "sampling2api"
path = "src/main.rs"
[dependencies.anyhow]
version = "1.0.102"
[dependencies.axum]
version = "0.8.8"
[dependencies.clap]
version = "4.6.0"
features = ["derive"]
[dependencies.futures-util]
version = "0.3.32"
[dependencies.http]
version = "1.4.0"
[dependencies.rmcp]
version = "1.3.0"
features = [
"client",
"transport-io",
"transport-streamable-http-client-reqwest",
"transport-streamable-http-server",
]
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.149"
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tokio]
version = "1.50.0"
features = ["full"]
[dependencies.tokio-util]
version = "0.7.18"
[dependencies.tracing]
version = "0.1.44"
[dependencies.tracing-subscriber]
version = "0.3.23"
[dev-dependencies.reqwest]
version = "0.13.2"
features = [
"json",
"stream",
]