How to build your own MCP server using this template
mainThis project serves as a template for building custom MCP servers. To extend it:
- Add Tools: Create new methods and decorate them with
@mcp.tool(). - Add Resources/Prompts: Use
@mcp.resource()and@mcp.prompt()to expose additional data or interaction patterns. - Manage Lifespan: Create a custom lifespan function to manage dependencies like database connections or API clients.
- Helpers: Use
utils.pyfor shared helper functions.