fix: don't send log notification on transport error (#2257)
This commit is contained in:
parent
31a38b5078
commit
62eb08e5b2
1 changed files with 58 additions and 31 deletions
|
|
@ -414,11 +414,6 @@ class Server(Generic[LifespanResultT]):
|
|||
)
|
||||
case Exception():
|
||||
logger.error(f"Received exception from stream: {message}")
|
||||
await session.send_log_message(
|
||||
level="error",
|
||||
data="Internal Server Error",
|
||||
logger="mcp.server.exception_handler",
|
||||
)
|
||||
if raise_exceptions:
|
||||
raise message
|
||||
case _:
|
||||
|
|
|
|||
Loading…
Reference in a new issue