3 ms·
Just 5 or 6. I'm just using the OpenAI tool call API for it; I own the agent (more people should!) so MCP doesn't do much for me.
by tptacek 1y ago
Just 5 or 6. I'm just using the OpenAI tool call API for it; I own the agent (more people should!) so MCP doesn't do much for me.
- fb03 1y agoThis. If you are running your agent loop, MCP does nothing. 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!
- easypancakes 1y agoHi! 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!
- fb03 1y agoOf 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 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.