caelum0x f0cce07148 feat(turnstile): runtime paid-tool editing with persisted store, audit log, live registry and console editor
Admin API /v1/admin/tools (CRUD, enable/disable, If-Match versioning, audit),
Postgres/in-memory ToolStore, live registry hot-swap + multi-replica poller,
MCP listChanged SSE, quoted-price capture on reprice, SSRF/secret guardrails,
paginated settlements and lifetime revenue summary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 10:48:33 +03:00

36 lines
1.3 KiB
TOML

[package]
name = "turnstile-server"
version.workspace = true
edition.workspace = true
license.workspace = true
description = "Turnstile production server: config-declared paid tools over HTTP and MCP gated by turnstile-axum, settled on a live mint-server (402 -> verify -> capture), with a settlement journal and operator console."
[[bin]]
name = "turnstile-server"
path = "src/main.rs"
[dependencies]
turnstile-core = { workspace = true, features = ["postgres"] }
turnstile-axum.workspace = true
aitp-client.workspace = true
axum.workspace = true
tokio = { workspace = true, features = ["time"] }
serde_json.workspace = true
serde.workspace = true
# Upstream proxying for config-declared paid tools.
reqwest.workspace = true
# Stream adapter for the MCP `GET /mcp` list_changed notification stream.
futures-util = { version = "0.3", default-features = false }
[dev-dependencies]
# e2e_paywall.rs runs the full 402 -> authorize (REAL aitp-client Ed25519 signer +
# codec) -> verify -> capture loop against a FakeMintTransport at the seam.
turnstile-core.workspace = true
turnstile-axum.workspace = true
aitp-client.workspace = true
axum.workspace = true
tower = { workspace = true, features = ["util"] }
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
async-trait.workspace = true
serde_json.workspace = true