Skip to main content

Prerequisites

Make sure you have Python 3.11+ and the fastmcp library installed.
  • Python 3.11+
  • fastmcp client library

Set Your Adgentic API Key

If your MCP server is deployed with ADGENTIC_API_KEY in its environment, you can omit api_key in the call.

Run the Sample Script

Python
It is recommended to run this script using uv run for consistent dependency management and environment isolation.

Error Handling

Was this page helpful?👍 Yes👎 No