Setup and Configuration
Set theINFERENCE_KEY to the API key and INFERENCE_URL to the base URL with environment variables:
MCP
You can use Heroku Managed Inference and Agents and Pydantic AI to create agentic workflows with built-in tools and tool calling with MCP.- MCP Client: Pydantic AI agents can act as an MCP Client, connecting to MCP servers to use their tools.
- MCP Server: Agents can be exposed as MCP servers, allowing other agents to use them as tools.