stackql-mcp 0.1.0

Embedded StackQL MCP server for Rust agentic apps - cloud queries and provisioning over SQL, served over MCP
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Conformance launcher: resolve the server binary, then run it with the
//! canonical launch args and inherited stdio. This is the command the
//! packaging repo's scripts/smoke-test.py drives.
//!
//! Extra argv (e.g. `--auth={...}`) is forwarded to the server verbatim:
//!
//! ```text
//! cargo run --example launcher -- '--auth={"github": {"type": "null_auth"}}'
//! ```

use stackql_mcp::{Mode, StackqlMcp};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut cmd = StackqlMcp::builder().mode(Mode::ReadOnly).command()?;
    cmd.args(std::env::args().skip(1));
    let status = cmd.status()?;
    std::process::exit(status.code().unwrap_or(1));
}