Skip to content

Commit a4e2337

Browse files
authored
Merge pull request #233 from jlowin/ping
Document ping
2 parents d6bf0b9 + d78425c commit a4e2337

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/clients/client.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,15 @@ MCP allows servers to make requests *back* to the client for certain capabilitie
226226
)
227227
```
228228

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+
```
229238

230239
### Error Handling
231240

0 commit comments

Comments
 (0)