Jeremiah Lowin commited on
Commit
f3eec52
·
1 Parent(s): f89cab0

Document ping

Browse files
Files changed (1) hide show
  1. docs/clients/client.mdx +9 -0
docs/clients/client.mdx CHANGED
@@ -226,6 +226,15 @@ MCP allows servers to make requests *back* to the client for certain capabilitie
226
  )
227
  ```
228
 
 
 
 
 
 
 
 
 
 
229
 
230
  ### Error Handling
231
 
 
226
  )
227
  ```
228
 
229
+ ### Utility Methods
230
+
231
+ * **`ping()`**: Sends a ping request to the server to verify connectivity.
232
+ ```python
233
+ async def check_connection():
234
+ async with client:
235
+ await client.ping()
236
+ print("Server is reachable")
237
+ ```
238
 
239
  ### Error Handling
240