File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Releases prior to 7.0 has been removed from this file to declutter search result
1111### Fixed  
1212
1313-  demos: Use Etherscan v2 API endpoints in EVM templates.
14+ -  mcp: Fixed crash when using ` mcp.tool `  decorator.
1415
1516### Changed  
1617
Original file line number Diff line number Diff line change 1- from  __future__  import   annotations 
2- 
1+ # NOTE: Careful there, PEP 563  annotations break `mcp` library! 
2+ # from __future__ import annotations 
33import  logging 
44import  traceback 
55from  collections .abc  import  Awaitable 
66from  collections .abc  import  Callable 
7- from  typing  import  TYPE_CHECKING 
87from  typing  import  Any 
98from  typing  import  TypeVar 
109from  typing  import  cast 
2120_logger  =  logging .getLogger (__name__ )
2221
2322
23+ from  collections .abc  import  Iterable 
24+ 
2425import  mcp .server 
2526import  mcp .types  as  types 
2627
27- if  TYPE_CHECKING :
28-     from  collections .abc  import  Iterable 
29- 
30- 
3128# NOTE: Global context management 
3229_ctx : McpContext  |  None  =  None 
3330
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments