Re:MCP is eating the world–and it's here to stay
by easypancakes on Friday June 27, 2025 @01:15PM
(#44398524)
Hi! I am a bit lost in all of this. How do you create your own agent and run your own loop? I've looked at PydanticAI but don't get it. Would you please give me an example? Thanks!
Re:MCP is eating the world–and it's here to stay
by fb03 on Sunday June 29, 2025 @02:10PM
(#44415082)
Of course! In the PydanticAI docs for Agents, you have a fully defined example of a tool calling agent (roulette_wheel.py)
https://ai.pydantic.dev/agents/#introduction
If you need professional help in any of this, I also do consulting and/or can do mentoring on my knowledge in this area.
MCP is an inter-process (or inter-system) communication standard, and it's extremely successful at that. But some people try to shoehorn it into a single system where it makes for a cumbersome fit, like having your service talk to itself via MCP as a subprocess just for the sake of "hey, we have MCP".
If you own your loop AND your business logic lives in the same codebase/process as your agent loop, you don't need MCP at all, period. Just use a good agent framework like PydanticAI, define your tools (and have your framework forward your docstrings/arguments into the context) and you're golden!