cratesio-mcp 0.1.4

MCP server for querying crates.io - the Rust package registry
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Team-related API endpoints.

use super::CratesIoClient;
use super::error::Error;
use super::types::Team;
use super::wire::TeamResponse;

impl CratesIoClient {
    /// Get a team by login (e.g. `github:org:team-name`).
    pub async fn team(&self, login: &str) -> Result<Team, Error> {
        let resp: TeamResponse = self.get_json(&format!("/teams/{login}")).await?;
        Ok(resp.team)
    }
}