fastapi_mcp icon indicating copy to clipboard operation
fastapi_mcp copied to clipboard

Support for other MCP types

Open Nicholas-Schaub opened this issue 9 months ago • 4 comments

Awesome project. Started going down the road of building my own, and then found this.

It looks like in the current state, endpoints are only exposed as tools. However, quite often endpoints are exposing data that might be more properly classified as resources.

It would be nice to allow some kind of tagging system to allow mcp type tagging in the fastapi decorators, or allow each mcp type to be defined in the add_mcp_server.

Nicholas-Schaub avatar Mar 20 '25 12:03 Nicholas-Schaub

I agree. We are working on a roadmap for the project and one of the topics is broader support and not just support for tools. We will probably add this as an item. And I think a decorator is the right approach.

shahar4499 avatar Mar 23 '25 11:03 shahar4499

Happy to be a part of those discussions if you all are open to it. We plan on using mcp extensively, and am happy to contribute in any way.

Nicholas-Schaub avatar Mar 23 '25 16:03 Nicholas-Schaub

Just revisiting this one. I don't have a strong opinion but as things evolve lately, it seems to me more and more that Prompts and Resources are far less used features than tools.

It seems that most MCP servers out there expose things like documentation, static content, knowledge, etc. as tools and not as resources, which makes sense because tools are the only feature in MCP that is LLM-controlled, according to the spec.

So, I wonder how much of a priority this is

shahar4499 avatar Apr 10 '25 16:04 shahar4499

support Prompts +1

Explorer1092 avatar Apr 30 '25 20:04 Explorer1092