File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ impl Mcp {
43
43
#[ tool( aggr) ] request : McpPermissionRequest ,
44
44
) -> Result < CallToolResult , McpError > {
45
45
let approved = self
46
- . approval_inner ( request. clone ( ) . into ( ) , std:: time:: Duration :: from_secs ( 60 ) )
46
+ . approval_inner (
47
+ request. clone ( ) . into ( ) ,
48
+ std:: time:: Duration :: from_secs ( 60 * 60 * 24 ) ,
49
+ )
47
50
. map_err ( |e| McpError :: internal_error ( e. to_string ( ) , None ) ) ?;
48
51
49
52
let result = Ok ( McpPermissionResponse {
@@ -94,7 +97,7 @@ impl Mcp {
94
97
let start_time = std:: time:: Instant :: now ( ) ;
95
98
for item in rx {
96
99
if start_time. elapsed ( ) > timeout {
97
- eprintln ! ( "Timeout waiting for permission approval (60 seconds )" ) ;
100
+ eprintln ! ( "Timeout waiting for permission approval (1 day )" ) ;
98
101
break ;
99
102
}
100
103
match item {
You can’t perform that action at this time.
0 commit comments