mcp-server-cloudflare icon indicating copy to clipboard operation
mcp-server-cloudflare copied to clipboard

Consider adopting FastMcp

Open punkpeye opened this issue 11 months ago • 0 comments

The main benefit of FastMCP is that it cuts down on the boilerplate code for setting up tools, prompts, resources, error handling, etc.

Here is an example PR showing how much code is reduced by adopting FastMCP: https://github.com/pskill9/website-downloader/pull/2/files

All the code maps directly to your existing implementation. The only consideration is that FastMCP uses Zod instead of JSON schema.

Additionally, FastMCP enables SSE transports, which is great to future proof your MCP server.

If you are open to it, I would be happy to raise a PR that does the migration.

punkpeye avatar Dec 27 '24 05:12 punkpeye