caelum0x 9307ff6ff7 feat(toolgate): sy CLI with device-code login and stdio MCP shim
`switchyard` / `sy`: device-code login (token stored 0600, refreshed and
rotated transparently, no raw key on disk), search, describe, call
(JSON, @file or stdin input; pin, dry run, max cost, idempotency key,
cache bypass), balance, Dodo top-up, usage, audit log, keys (one key for
Relay and Switchyard), write-only credentials from stdin, SKILL.md bundle
push/install, project caps/policy/pins, and `sy mcp` forwarding stdio
JSON-RPC to /mcp. SWITCHYARD_TOKEN + SWITCHYARD_URL for CI. No telemetry.
Tests drive every command against a live local server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 02:36:55 +03:00

36 lines
917 B
TOML

[package]
name = "switchyard-cli"
description = "The Switchyard CLI (`switchyard`, alias `sy`): device-code login, search, describe, call, balance, top-up, keys, write-only credentials, SKILL.md bundles, project caps and a stdio MCP shim."
version.workspace = true
edition.workspace = true
license.workspace = true
[[bin]]
name = "switchyard"
path = "src/bin/switchyard.rs"
[[bin]]
name = "sy"
path = "src/bin/sy.rs"
[dependencies]
clap.workspace = true
reqwest.workspace = true
tokio.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_yaml.workspace = true
anyhow.workspace = true
chrono.workspace = true
url.workspace = true
[dev-dependencies]
switchyard-server.workspace = true
switchyard-testkit.workspace = true
switchyard-store.workspace = true
switchyard-auth.workspace = true
switchyard-vault.workspace = true
axum.workspace = true
secrecy.workspace = true
reqwest.workspace = true