›Review and Test the Scaffold
3.3 · Lesson
Review and Test the Scaffold
The server is in server/main.py. Read the file, and find each part:
app_lifespan- opens the Neo4j connection when the server starts, and closes it when the server stops. The connection details come from your.envfilemcp = FastMCP(...)- creates the MCP serverread()- runs a read-only query using the connection. The tools call itget_schemaandget_sample_nodes- the two example toolsYOUR TOOLS GO HERE- the place for the tools you will buildmcp.run(...)- starts the server over streamable HTTP
Join GraphAcademy to keep learning
Create your account to unlock 80+ hours of hands-on Neo4j courses, track your progress, and earn a certificate when you complete the course.
Sign in or register