File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ pub mod util;
28
28
29
29
i18n ! ( "locales" , fallback = "en-us" ) ;
30
30
31
- #[ tokio:: main( flavor = "multi_thread" ) ]
32
- async fn main ( ) {
31
+ fn main ( ) {
33
32
#[ cfg( debug_assertions) ]
34
33
check_debug ( ) ;
35
34
@@ -99,7 +98,7 @@ async fn main() {
99
98
subcommand:: function ( & subcommand) ;
100
99
} ,
101
100
SubCommand :: Mcp => {
102
- if let Err ( err) = start_mcp_server ( ) . await {
101
+ if let Err ( err) = start_mcp_server ( ) {
103
102
error ! ( "{}" , t!( "main.failedToStartMcpServer" , error = err) ) ;
104
103
exit ( util:: EXIT_MCP_FAILED ) ;
105
104
}
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ impl ServerHandler for McpServer {
48
48
/// # Errors
49
49
///
50
50
/// This function will return an error if the MCP server fails to start.
51
+ #[ tokio:: main( flavor = "multi_thread" ) ]
51
52
pub async fn start_mcp_server ( ) -> Result < ( ) , McpError > {
52
53
let service = match McpServer :: new ( ) . serve ( stdio ( ) ) . await {
53
54
Ok ( service) => service,
You can’t perform that action at this time.
0 commit comments