agentcat-api 0.0.3

Generated Rust client for the AgentCat API, consumed by agentcat-sdk.
Documentation

agentcat-api

Generated HTTP client for the AgentCat API.

You probably want agentcat-sdk instead

This is the low-level generated transport, produced from the AgentCat OpenAPI specification and consumed by agentcat-sdk, which is the supported integration surface for MCP server authors.

Do not edit this crate by hand. Every release is regenerated from the specification.

Installation

[dependencies]
agentcat-api = "0.0"

The client is async and runs on reqwest, so it needs a Tokio runtime. HTTPS uses the platform's native TLS library by default. For a pure-Rust TLS stack, turn off the default features and enable rustls:

[dependencies]
agentcat-api = { version = "0.0", default-features = false, features = ["rustls"] }

Usage

use agentcat_api::apis::configuration::{ApiKey, Configuration};
use agentcat_api::apis::events_api::{self, PublishEventParams};
use agentcat_api::models::publish_event_request::EventType;
use agentcat_api::models::PublishEventRequest;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let config = Configuration {
        api_key: Some(ApiKey {
            prefix: Some("Token".to_owned()),
            key: "YOUR_API_KEY".to_owned(),
        }),
        ..Configuration::default()
    };

    let mut event = PublishEventRequest::new("proj_...".to_owned());
    event.event_type = Some(EventType::McpColonToolsSlashCall);

    events_api::publish_event(
        &config,
        PublishEventParams {
            publish_event_request: Some(event),
        },
    )
    .await?;

    Ok(())
}

Every endpoint and model is documented in docs.

Other languages

Language Generated client
TypeScript agentcat-api
Python agentcat-api
Go agentcat-go-api
Ruby agentcat-api
Java com.agentcat:api
PHP agentcat/api
.NET AgentCat.Api

License

MIT © AgentCat, Inc.