kontext-dev

Crates.iokontext-dev
lib.rskontext-dev
version0.1.1
created_at2025-12-27 06:44:37.818807+00
updated_at2025-12-27 17:16:11.688146+00
descriptionRust SDK for accessing Kontext-Dev MCP servers.
homepage
repositoryhttps://github.com/kontext-dev/kontext-dev-sdk-rs
max_upload_size
id2006773
size45,088
Michel (michiosw)

documentation

README

Kontext-Dev SDK

Rust SDK for accessing Kontext-Dev MCP servers.

Get Started

Add the SDK and runtime dependencies:

[dependencies]
kontext-dev = "0.1.0"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }

Use the SDK:

use kontext_dev::{build_mcp_url, request_access_token, KontextDevConfig};

#[tokio::main]
async fn main() -> Result<(), kontext_dev::KontextDevError> {
    let config = KontextDevConfig {
        mcp_url: "https://mcp.example.com/mcp".to_string(),
        token_url: "https://auth.example.com/oauth2/token".to_string(),
        client_id: "client".to_string(),
        client_secret: "secret".to_string(),
        scope: kontext_dev::DEFAULT_SCOPE.to_string(),
        server_name: kontext_dev::DEFAULT_SERVER_NAME.to_string(),
    };

    let token = request_access_token(&config).await?;
    let url = build_mcp_url(&config, token.access_token.as_str())?;
    println!("{url}");
    Ok(())
}
Commit count: 0

cargo fmt