mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 00:03:23 +02:00
965 B
965 B
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).