I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

mcp_proxy_pydantic_agent
Example for exposing MCP servers to Pydantic Agents
3 years
Works with Finder
1
Github Watches
5
Github Forks
15
Github Stars
Sample to show to integrate MCP (Model Context Protocol) servers with Pydantic.AI
Parts of this example uses content from : https://github.com/modelcontextprotocol/quickstart-resources.git - Esp. the weather 'server' code
Code uses two different LLMs just for demonstration. The Proxy Agent uses gpt-4o and the tool uses sonnet. So, export OPENAI_API_KEY as well as ANTHROPIC_API_KEY - OR - modify the code to suit your models
The pyproject.toml assumes you are using 'uv' package manager
Steps to run
- Clone this repo
- uv sync
- cd mcp-client
- uv run client.py (this requires openai and anthropic keys and uses anthropic libs directly)
- uv run client2.py (for pure pydantic and works with any fn calling LLM)
(Alternatively try client2.py - this uses only PydanticAI - no direct dep on Anthropic libs)
Now, try interacting with some questions like:
What is the time in NY when it is 7:30pm in Bangalore?
What is the Weather currently in Chicago?
(and quit when done)
相关推荐
Converts Figma frames into front-end code for various mobile frameworks.
Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven
Friendly music guide for 60s-2000s songs, with links to listen online.
A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.
Mirror ofhttps://github.com/suhail-ak-s/mcp-typesense-server
本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。
Short and sweet example MCP server / client implementation for Tools, Resources and Prompts.
Reviews

user_wgYHnClB
I have been using the MediaWiki MCP Server by shiquda and I am thoroughly impressed. The server is highly efficient, easy to set up, and optimizes media management effectively. It has significantly streamlined my workflow, making content management a breeze. Highly recommended for anyone looking to enhance their MediaWiki experience!