Einfacher TypeScript MCP-Server
Eine einfache TypeScript-Vorlage zum Erstellen von Model Context Protocol (MCP)-Servern mit grundlegenden CRUD-Operationen. Diese Vorlage bietet die Grundlage für die Erstellung von MCP-Tools, die JSON-Antworten zurückgeben.
Merkmale
Einfache Notizen-API mit CRUD-Operationen
In-Memory-Datenspeicherung
TypeScript-Implementierung
JSON-Antworten
Bereit zum Testen mit Vitest
Aufstellen
Ausführen des Servers
Bauen für die Produktion
Verfügbare Tools
Diese Vorlage enthält die folgenden MCP-Tools:
getNote: Ruft eine Notiz nach ID abgetAllNotes: Alle Notizen abrufencreateNote: Erstelle eine neue NotizupdateNote: Aktualisieren Sie eine vorhandene NotizdeleteNote: Löscht eine Notiz anhand der ID
Testen
Führen Sie die Tests mit folgendem aus:
Oder im Beobachtungsmodus:
Customizing
Sie können diese Vorlage als Ausgangspunkt für Ihren eigenen MCP-Server verwenden, indem Sie die Tools in src/server.ts an Ihre Anforderungen anpassen.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Eine TypeScript-Vorlage zum Erstellen von Model Context Protocol-Servern, die grundlegende CRUD-Operationen zum Notieren mit JSON-Antworten implementiert.
Related MCP Servers
- Asecurity-licenseAqualityA production-ready template for creating Model Context Protocol servers with TypeScript, providing tools for efficient testing, development, and deployment.Last updated -115838MIT License
- Asecurity-licenseAqualityA production-ready template for building Model Context Protocol servers in TypeScript, offering fast development with Bun, Biome linting, and automated version management.Last updated -1158MIT License
- Asecurity-licenseAqualityA TypeScript-based template for developing Model Context Protocol servers with features like dependency injection and service-based architecture, facilitating the creation and integration of custom data processing tools.Last updated -114
- Asecurity-licenseAqualityA TypeScript-based template for building Model Context Protocol servers, featuring fast testing, automated version management, and a clean structure for MCP tool implementations.Last updated -11584MIT License