feat(model): add ServerConfig and ClientConfig (#1266)

This commit is contained in:
Dale Seo 2026-09-14 15:30:41 -04:00 • committed by GitHub
commit 165ff92df1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@ use std::env;
use anyhow::{Context, Result};
use rmcp::{
ServiceExt,
model::InitializeRequestParams,
model::ClientConfig,
transport::{
StreamableHttpClientTransport,
auth::{AuthClient, ClientCredentialsConfig, OAuthState},
@ -73,7 +73,7 @@ async fn main() -> Result<()> {
);
// Connect to MCP server and list tools
let client_service = InitializeRequestParams::default();
let client_service = ClientConfig::default();
let client = client_service.serve(transport).await?;
tracing::info!("Connected to MCP server");