2.3 · Lesson

Using Context within Tools

In the previous lesson, you learned how to use lifespan management to initialize and share resources like the Neo4j driver across your MCP server.

But how do your tools actually access these resources? And how can you provide feedback to users during long-running operations?