Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Document ping

Jeremiah Lowind78425cd3fcb
diff --git a/docs/clients/client.mdx b/docs/clients/client.mdx
index 479120ce6..d2dcf875c 100644
--- a/docs/clients/client.mdx
+++ b/docs/clients/client.mdx
@@ -226,6 +226,15 @@ MCP allows servers to make requests *back* to the client for certain capabilitie
)
```
+### Utility Methods
+
+* **`ping()`**: Sends a ping request to the server to verify connectivity.
+ ```python
+ async def check_connection():
+ async with client:
+ await client.ping()
+ print("Server is reachable")
+ ```
### Error Handling