Files
strata-ctl/Cargo.toml
T
adm 0d335b808c agent: wire MCP connectors into the loop (rmcp v3, Initialize lifecycle)
- src/mcp: streamable-HTTP client (rmcp v3.12) negotiating Initialize +
  LATEST_WITH_INITIALIZE; namespaced mcp__{connector}__{tool} surface, write
  badges from ToolAnnotations, persisted discovery (tools_json) so the agent
  tool declarations stay byte-stable for KV-cache reuse.
- store: mcp_connectors catalog + tools_json column (idempotent migration) and
  set_mcp_tools; per-session per-tool allowlist (SessionSettings.mcp_enabled).
- agent: execute_mcp routes namespaced calls, gated on the session allowlist
  before any network call; Bearer token comes from the DB catalog, never echoed.
- api/sessions: build the MCP surface into Ambient + the agent tool declarations
  on both the turn and prewarm paths (identical rebuild keeps the prefix stable).
- api/mcp + GUI: connector CRUD, tool-discovery picker, per-session enable.
- examples/mcp_probe: read-only CLI discovery spike.

Live-verified: 22 gmail tools discovered, gmail_labels returned 25 labels, and a
full model-driven GUI turn (7 enabled tools) with a 9197-token RESUME cache hit.
2026-11-30 02:29:55 +01:00

37 lines
1.3 KiB
TOML

[package]
name = "strata-ctl"
version = "0.1.0"
edition = "2021"
description = "Rust control layer for the Strata inference engine: OpenAI-compatible HTTP API over the engine's line protocol"
license = "MIT"
[dependencies]
anyhow = "1"
thiserror = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1", features = ["rt-multi-thread", "process", "io-util", "sync", "time", "macros", "signal", "net"] }
tracing = "0.1"
axum = "0.8"
futures = "0.3.34"
tokio-stream = "0.1.19"
tokenizers = "0.23.2"
minijinja = { version = "3.1.0", features = ["serde"] }
image = "0.25.10"
base64 = "0.23.1"
ureq = "3.5.2"
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
# Embedded SQLite for the GUI's session/context store (bundled = compiled into the
# binary, no external service). Behind a `Store` trait so it can be swapped later.
rusqlite = { version = "0.32", features = ["bundled"] }
# Embeds the web/ GUI assets into the binary (single-binary, offline-capable).
rust-embed = "8"
pulldown-cmark = "0.13.6"
pulldown-latex = "0.8.0"
rmcp = { version = "3.12.0", default-features = false, features = ["client", "transport-streamable-http-client-reqwest", "reqwest"] }
[dev-dependencies]
http-body-util = "0.1.5"
tokio = { version = "1", features = ["full"] }
tower = { version = "0.5", features = ["util"] }