Generate a complete MCP server project in Python with tools, resources, and proper configuration
Create a complete Model Context Protocol (MCP) server in Python with the following specifications:
uv init project-nameuv add "mcp[cli]"server.py).gitignoreif __name__ == "__main__"FastMCP class from mcp.server.fastmcp@mcp.tool() decorator on functions@mcp.resource() decorator"resource://{param}"@mcp.prompt() decoratorFor stdio Servers:
uv run mcp dev server.pyuv run mcp install server.pyFor HTTP Servers:
stateless_http=Truejson_response=Truepython server.py or uv run server.pypython server.py then connect to http://localhost:PORT/mcpuv run mcp dev server.pyuv run mcp install server.pyGenerate a complete, production-ready MCP server with type safety, proper error handling, and comprehensive documentation.