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…
Do you have any recommendations for articles or example projects of what a good Python project (that isn't django based) looks like in 2025? Seeing things like pydantic derived types leak everywhere seems wrong from my Java background.
Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers
11–20 of 29 posts
Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers
#12Earlier quoted context omitted.
Do you have any recommendations for articles or example projects of what a good Python project (that isn't django based) looks like in 2025? Seeing things like pydantic derived types leak everywhere seems wrong from my Java background.
Ooh, great question. I don't have a good link. I would say that most of the concepts that I'm expressing come from personal experience and an interest in optimizing my own codebases for maintainability. Pydantic is often misunderstood, and developers who aren't familiar with typesafe-python love to try to raise criticisms of it. But the way that you should think about it is that it's essentially a replacement for a b…
Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers
#13I've been very happy with pydantic-ai, it blows the rest of the python ai ecosystem out of the water
Are you using Pydantic AI for structured output? If so, have you also tried instructor?
just feels a bit more polished. especially testing part.
Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers
#14I've been very happy with pydantic-ai, it blows the rest of the python ai ecosystem out of the water
Are you using Pydantic AI for structured output? If so, have you also tried instructor?
Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers
#15Earlier quoted context omitted.
Ooh, great question. I don't have a good link. I would say that most of the concepts that I'm expressing come from personal experience and an interest in optimizing my own codebases for maintainability. Pydantic is often misunderstood, and developers who aren't familiar with typesafe-python love to try to raise criticisms of it. But the way that you should think about it is that it's essentially a replacement for a b…
Exactly this. From SQL Alchemy to pydantic model, from pydantic model to pydantic dto, from pydantic dto to json/protobuf/binary to ship over the wire…
Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers
#16I've been very happy with pydantic-ai, it blows the rest of the python ai ecosystem out of the water
Are you using Pydantic AI for structured output? If so, have you also tried instructor?
Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers
#17Earlier quoted context omitted.
Exactly this. From SQL Alchemy to pydantic model, from pydantic model to pydantic dto, from pydantic dto to json/protobuf/binary to ship over the wire…
Okay, so seeing pydantic types used in every part of an app not just the API layer is normal.
Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers
#18Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers
#19Re: Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers
#20This is a great repo, I was looking for something like this! I believe MCP and A2A will probably remain and others will build on top of them actually