https://github.com/dylibso/mcpx-pydantic-ai
https://github.com/dylibso/mcpx-pydantic-ai
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dylibso/mcpx-pydantic-ai
- Owner: dylibso
- License: bsd-3-clause
- Created: 2025-01-07T00:04:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-28T23:28:57.000Z (over 1 year ago)
- Last Synced: 2025-03-01T00:50:19.528Z (over 1 year ago)
- Language: Python
- Size: 167 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mcpx-pydantic-ai
A Python library for using mcp.run tools with [pydantic-ai](https://github.com/pydantic/pydantic-ai)
## Example
```python
agent = Agent("claude-3-5-sonnet-latest", result_type=int)
results = agent.run_sync(
"find the largest prime under 1000 that ends with the digit '3'"
)
print(results.data)
```