File tree Expand file tree Collapse file tree 3 files changed +2
-27
lines changed Expand file tree Collapse file tree 3 files changed +2
-27
lines changed Original file line number Diff line number Diff line change @@ -40,31 +40,6 @@ def __init__(
40
40
read_timeout_seconds = read_timeout_seconds ,
41
41
)
42
42
43
- async def __aenter__ (self ):
44
- session = await super ().__aenter__ ()
45
- self ._task_group .start_soon (self ._consume_messages )
46
- return session
47
-
48
- async def _consume_messages (self ):
49
- try :
50
- async for message in self .incoming_messages :
51
- try :
52
- if isinstance (message , Exception ):
53
- logger .error (f"Received exception in message stream: { message } " )
54
- elif isinstance (message , RequestResponder ):
55
- logger .debug (f"Received request: { message .request } " )
56
- elif isinstance (message , types .ServerNotification ):
57
- if isinstance (message .root , types .LoggingMessageNotification ):
58
- logger .debug (f"Received notification from server: { message .root .params } " )
59
- else :
60
- logger .debug (f"Received notification from server: { message } " )
61
- else :
62
- logger .debug (f"Received notification: { message } " )
63
- except Exception as e :
64
- logger .exception (f"Error processing message: { e } " )
65
- except Exception as e :
66
- logger .exception (f"Message consumer task failed: { e } " )
67
-
68
43
async def initialize (self ) -> types .InitializeResult :
69
44
result = await self .send_request (
70
45
types .ClientRequest (
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ dependencies = [
11
11
" httpx-sse>=0.4.0" ,
12
12
" lmos-openai-types" ,
13
13
" loguru>=0.7.3" ,
14
- " mcp>=1.2 .0,<=1.7.1" ,
14
+ " mcp>=1.6 .0,<=1.7.1" ,
15
15
" mcpx[docker]>=0.1.1" ,
16
16
" opentelemetry-api>=1.33.1" ,
17
17
" opentelemetry-exporter-otlp>=1.33.1" ,
You can’t perform that action at this time.
0 commit comments