mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-21 21:14:17 +02:00
commit
a4e233711f
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue