Prerequisites
Make sure you have Python 3.11+ and the fastmcp library installed.- Python 3.11+
- fastmcp client library
Set Your Adgentic API Key
Run the Sample Script
Python
Error Handling
| Error | Cause / Fix |
|---|---|
| 401 Unauthorized | Missing or invalid ADGENTIC_API_KEY. Set env var correctly or pass api_key in the tool call. |
| 400 Bad Request | Malformed request (e.g. missing prompt or invalid context). Ensure payload contains prompt and valid JSON. |
| 500 Server Error | Temporary issue on the Adgentic MCP server. Retry; if persists, contact support: [email protected] |
| Timeouts & Connection Errors | Network instability or unreachable server. Verify connectivity and endpoint: https://mcp.adgenticplatform.com/mcp/ |