refactor: fix error introduced by merge, and reorganize feature (#185)
This commit is contained in:
parent
9a771fb157
commit
5e4e77efa5
1 changed files with 67 additions and 55 deletions
|
|
@ -45,7 +45,8 @@ impl McpServerTransportConfig {
|
|||
pub async fn start(&self) -> Result<RunningService<RoleClient, ()>> {
|
||||
let client = match self {
|
||||
McpServerTransportConfig::Sse { url } => {
|
||||
let transport = rmcp::transport::sse::SseTransport::start(url).await?;
|
||||
let transport =
|
||||
rmcp::transport::sse_client::SseClientTransport::start(url.to_owned()).await?;
|
||||
().serve(transport).await?
|
||||
}
|
||||
McpServerTransportConfig::Stdio {
|
||||
|
|
|
|||
Loading…
Reference in a new issue