feat: scaffold nani CLI + MCP server

Single Rust binary with three modes:
- Human CLI with colored output
- M2M mode (--json, --plain, --silent flags)
- MCP server over stdio (nani mcp-server)

HTTP client for config.saiden.dev REST API:
- Projects: list, set metadata, delete
- Secrets: get, set, list, delete
- Files: get, put, list, delete

Global flags: --json, --plain, --silent, --dry-run, --url, --api-key
Config: ~/.config/nani/config.json + NANI_API_KEY/NANI_URL env vars

MCP tools: nani_get, nani_set, nani_list, nani_delete, nani_file_get, nani_file_put

Dependencies: clap (derive), reqwest (rustls-tls), serde, tokio, rmcp, colored

Closes infra/nani#1
This commit is contained in:
BT-7274
2026-06-12 22:02:08 +02:00
parent b202a19329
commit e8c3e44bad
10 changed files with 1342 additions and 1 deletions
+2
View File
@@ -0,0 +1,2 @@
/target
Cargo.lock