rust-mcp-sdk 0.9.0

An asynchronous SDK and framework for building MCP-Servers and MCP-Clients, leveraging the rust-mcp-schema for type safe MCP Schema Objects.
Documentation
1
2
3
4
5
6
7
use super::{AuthInfo, AuthenticationError};
use async_trait::async_trait;

#[async_trait]
pub trait OauthTokenVerifier: Send + Sync {
    async fn verify_token(&self, access_token: String) -> Result<AuthInfo, AuthenticationError>;
}