Skip to content

washanhanzi/rmcp-in-process-transport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rmcp-in-process-transport

use tokio task instead of child process to start the mcp.

    // Create and start an in-process service, using the TokioInProcess API
    // which is similar to TokioChildProcess
    let calculator = Calculator::new(format!("Client #{}", idx));
    let tokio_in_process = TokioInProcess::new(calculator).await?;
    let service = ().into_dyn().serve(tokio_in_process).await?;

About

Run mcp server in tokio task

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages