Live data from Hacker News

Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers

github.com

21–29 of 29 posts

Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers

#21
post #7

Since you're framing this as a learning resource, here are a couple things I see: Your views are not following a single convention: some of them return dictionaries, some return base JSONResponse objects, and others return properly defined Pydantic schemas. I didn't run the code, but I'd venture to guess your generated documentation is not comprehensive, nor is it cohesive. I'd also further extend this into your agen…

Thanks a lot for taking the time to go through the code and leave such a detailed comment, I really appreciate the thoughtful feedback either bad or good, it always helps.

Just to clarify: this repo is meant as a quick demo/learning resource after experimenting with Pydanticai(for some limited time), FastAPI, and agents. It’s not something I’d structure or ship in a production environment or at a real job in any case.

That said, your points are spot on:

- Consistency in return types (Pydantic schemas over mixed dicts/JSONResponse, which was done either because I glued code from other projects I had either from generated so if it is used from anyone in real case it needs refactoring).

Structuring data exchange between agents with typed models instead of raw dicts. (totally correct too)

Avoiding redundant abstractions in the agent base. (I wouldn't agree fully on that as it is an area that anyone can have different opinion on what is a redudant abstraction)

Breaking views into logical modules rather than dropping them all into main.py. (I fully agree again)

These are all best practices I’d absolutely follow in production code and more as the codebase is not 100% structured robustly, and it’s great to see them highlighted here so others reading can also learn from the contrast between “demo” and “real-world” implementations.

Again, thanks for diving in this kind of feedback is exactly what makes sharing experiments valuable.

Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers

#22
post #13
post #8

Earlier quoted context omitted.

Are you using Pydantic AI for structured output? If so, have you also tried instructor?

I personally just switched to https://docs.boundaryml.com/guide/comparisons/baml-vs-pydant... just feels a bit more polished. especially testing part.

Haven't tried balm, I will give it a shot, I am really curious to see all the features it supports.

Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers

#23

Without using all the jargon can you kindly explain what your project actually does because I did read the repo and still dont get it

It just builds a ChatGPT like UI that has Agents to serve you either latest news on a specific tech topic (via fetching them via MCP Servers for: Brave Browser, Hackernews and Github for trending repos or repos fetched in the response). It also supports giving you back general knowledge answers. The whole purpose of the repo is to be a general example of how Agents speak with Agents and how to pair them with MCP servers and why we need MCP Servers(for example better run all calculations not in LLM because they hallucinate, but via code and then give the answer back to the LLM). I hope it clarifies what it does now.

Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers

#24
post #5

Looks interesting! Thanks for posting it. Would be great if you can add the slides or video of the presentation to the repo. Maybe also add a description and update the summary at the top? It seems like the project is a multi-agent playground & demo to learn how to make AI agents work together?

Hello exactly what you are saying is what this repo does. I will upload today probably the whole PyCon presentation of it in my blog if you are interested. You will find it at: https://www.petrostechchronicles.com/

Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers

#25
post #4

Can't really grasp much from the repo, the slides are needed

That's correct, the slides are mostly showing how MCP - A2A work and basic architectures between them and Agents in general. I will upload probably today the presentation slides in my blog.

Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers

#26
post #4

Can't really grasp much from the repo, the slides are needed

That's correct, the slides are mostly showing how MCP - A2A work and basic architectures between them and Agents in general. I will upload probably today the presentation slides in my blog.

If you are interested, I just released the slides in my blog: https://www.petrostechchronicles.com/blog/PyCon_Greece_2025_...

Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers

#27
post #5

Looks interesting! Thanks for posting it. Would be great if you can add the slides or video of the presentation to the repo. Maybe also add a description and update the summary at the top? It seems like the project is a multi-agent playground & demo to learn how to make AI agents work together?

Hello exactly what you are saying is what this repo does. I will upload today probably the whole PyCon presentation of it in my blog if you are interested. You will find it at: https://www.petrostechchronicles.com/

Just released it if you are interested: https://www.petrostechchronicles.com/blog/PyCon_Greece_2025_...
Post reply on HN