fastapi_mcp
fastapi_mcp copied to clipboard
fix: pass description as keyword argument in Server initialization
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!