Spaces:
Running
Running
Ricky Sahu commited on
Commit ·
ae97edf
1
Parent(s): 5be345f
lint
Browse files
src/fastmcp/client/client.py
CHANGED
|
@@ -171,7 +171,9 @@ class Client:
|
|
| 171 |
message: str | None = None,
|
| 172 |
) -> None:
|
| 173 |
"""Send a progress notification."""
|
| 174 |
-
await self.session.send_progress_notification(
|
|
|
|
|
|
|
| 175 |
|
| 176 |
async def set_logging_level(self, level: mcp.types.LoggingLevel) -> None:
|
| 177 |
"""Send a logging/setLevel request."""
|
|
|
|
| 171 |
message: str | None = None,
|
| 172 |
) -> None:
|
| 173 |
"""Send a progress notification."""
|
| 174 |
+
await self.session.send_progress_notification(
|
| 175 |
+
progress_token, progress, total, message
|
| 176 |
+
)
|
| 177 |
|
| 178 |
async def set_logging_level(self, level: mcp.types.LoggingLevel) -> None:
|
| 179 |
"""Send a logging/setLevel request."""
|
src/fastmcp/server/context.py
CHANGED
|
@@ -115,7 +115,10 @@ class Context:
|
|
| 115 |
return
|
| 116 |
|
| 117 |
await self.request_context.session.send_progress_notification(
|
| 118 |
-
progress_token=progress_token,
|
|
|
|
|
|
|
|
|
|
| 119 |
)
|
| 120 |
|
| 121 |
async def read_resource(self, uri: str | AnyUrl) -> list[ReadResourceContents]:
|
|
|
|
| 115 |
return
|
| 116 |
|
| 117 |
await self.request_context.session.send_progress_notification(
|
| 118 |
+
progress_token=progress_token,
|
| 119 |
+
progress=progress,
|
| 120 |
+
total=total,
|
| 121 |
+
message=message,
|
| 122 |
)
|
| 123 |
|
| 124 |
async def read_resource(self, uri: str | AnyUrl) -> list[ReadResourceContents]:
|