fastapi_mcp icon indicating copy to clipboard operation
fastapi_mcp copied to clipboard

fix: pass description as keyword argument in Server initialization

Open vincent067 opened this issue 8 months ago • 0 comments

Hey there! 👋

Found a small bug while reading through the codebase - the description parameter was being passed positionally to Server(), which actually maps it to the version parameter instead of description.

The fix: Changed Server(self.name, self.description) to Server(self.name, description=self.description) to ensure the description goes to the right place.

This should fix #272 🙂

Noticed this while exploring how the MCP server gets initialized - loving the clean architecture of this project btw! The ASGI transport approach is really elegant.

Let me know if you need any changes!

vincent067 avatar Apr 04 '26 18:04 vincent067