Skip to content
Private SDK

Rust native client

Install from authorized private Argand source. These SDKs are not published on external package registries.

Hosted MCP endpoint

Streamable HTTP
Server URL text
https://beta.argand.org/api/mcp

No local install needed. Configure your own instance URL to self-host.

Run the checked-in example

Use a reviewed signed checkout. The SDK paths below are part of that checkout; you need private Forgejo access. Dependencies may be obtained from their normal sources, but no Argand package is uploaded by these commands.

Run the checked-in example bash
cargo run --locked --manifest-path sdk/rust/argand-client/Cargo.toml \
  --example native_search -- rust

Keep the actual evidence

This is the current checked-in native Search example. Set ARGAND_API_BASE for a different instance. Titles can be absent; source evidence and serving collection remain available.

Native Search example rust
//! Read public source evidence through the real SDK. No credentials are required.
#![forbid(unsafe_code)]
use argand_client::ArgandClient;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let query = std::env::args().nth(1).unwrap_or_else(|| "rust".into());
    let base =
        std::env::var("ARGAND_API_BASE").unwrap_or_else(|_| "https://beta.argand.org".into());
    let result = ArgandClient::builder()
        .base_url(base)
        .build()?
        .search(&query, 1, 10)
        .await?;
    if result
        .collection_id
        .as_ref()
        .is_none_or(|identity| identity.trim().is_empty())
    {
        return Err("the instance did not return a serving collection identity".into());
    }
    println!("{}", serde_json::to_string_pretty(&result)?);
    Ok(())
}

Error and precision contracts

Responses are bounded to two MiB decoded data. The SDKs validate required native evidence and refuse unsupported operations; they do not fabricate successful results after failures. Python and Rust retain integer coordinates. TypeScript retains large integers as BigInt where native JSON token context is available, or refuses unsafe values. Its decimal-string JSON export preserves their digits.

HTTP client or MCP client?

These SDKs read native Search HTTP responses. Use a standards-compatible MCP client when you need tools/call or resources/read. Captured-source fetch and citation are MCP contracts, not implemented SDK REST methods.