Skip to content

Commit b33721e

Browse files
committed
Move operations into "working" state before tool execution
1 parent b0d3f30 commit b33721e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mcp/server/lowlevel/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ async def handler(req: types.CallToolRequest):
544544
async def execute_async():
545545
try:
546546
logger.debug(f"Starting async execution of {tool_name}")
547+
self.async_operations.mark_working(operation.token)
547548
results = await func(tool_name, arguments)
548549
logger.debug(f"Async execution completed for {tool_name}")
549550

0 commit comments

Comments
 (0)