modelcontextprotocol/servers / src / everything / docs / extension.md
Model Context Protocol Servers
extension.md
Everything Server - Extension Points
Architecture | Project Structure | Startup Process | Server Features | Extension Points | How It Works
Adding Tools
- Create a new file under
tools/with yourregisterXTool(server)function that registers the tool viaserver.registerTool(...). - Export and call it from
tools/index.tsinsideregisterTools(server).
Adding Prompts
- Create a new file under
prompts/with yourregisterXPrompt(server)function that registers the prompt viaserver.registerPrompt(...). - Export and call it from
prompts/index.tsinsideregisterPrompts(server).
Adding Resources
- Create a new file under
resources/with yourregisterXResources(server)function usingserver.registerResource(...)(optionally withResourceTemplate). - Export and call it from
resources/index.tsinsideregisterResources(server).
Rendered from the public repository modelcontextprotocol/servers on GitHub; content belongs to its authors. Cached for up to an hour.