ProjectBuild a Permission-Aware Knowledge Hub as an MCP Server: the explanation · Module 11: The MCP tools, resources and prompts · part 13 of 22
Part 13 · Module 11: The MCP tools, resources and prompts
Module 11: The MCP tools, resources and prompts
25 min read·
About 50 minutes · Needs: Module 3 (MCP primitives and the SDK), Module 9 (search), Module 10 (permission filtering) · Code: server/wayfinder/mcp/server.py, server/wayfinder/mcp/models.py, server/wayfinder/mcp/render.py, server/wayfinder/mcp/backend.py, server/wayfinder/knowledge.py
Where this fits
This module (blue): the MCP layer that describes and checks every call, the knowledge functions behind the specialised tools, and the search behind search_knowledge.
This module is Wayfinder's public face for AI clients: the 8 tools, 4 resource templates and 3 prompts that clients see after they connect. The highlighted parts are the MCP layer, which describes and checks every call, the knowledge functions behind the specialised tools, and the search from Module 9 behind search_knowledge. Module 3 explained the MCP primitives (tools, resources, prompts); here we look at how this server designs them.
The rest of this project is yours to keep
This project is bought on its own, once, and stays readable afterwards, including the parts added to it later.