Simple TypeScript MCP Server

by jasonkneen

Integrations

  • Built with TypeScript for type-safe development, allowing creation of robust MCP tools with proper typing and improved code reliability.

  • Integrates with Vitest for testing the MCP server functionality, enabling test-driven development of the note management capabilities.

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

npm install

Ausführen des Servers

npm run dev

Bauen für die Produktion

npm run build npm start

Verfügbare Tools

Diese Vorlage enthält die folgenden MCP-Tools:

  • getNote : Ruft eine Notiz nach ID ab
  • getAllNotes : Alle Notizen abrufen
  • createNote : Erstelle eine neue Notiz
  • updateNote : Aktualisieren Sie eine vorhandene Notiz
  • deleteNote : Löscht eine Notiz anhand der ID

Testen

Führen Sie die Tests mit folgendem aus:

npm test

Oder im Beobachtungsmodus:

npm run test:watch

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.

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Eine TypeScript-Vorlage zum Erstellen von Model Context Protocol-Servern, die grundlegende CRUD-Operationen zum Notieren mit JSON-Antworten implementiert.

  1. Merkmale
    1. Aufstellen
      1. Ausführen des Servers
        1. Bauen für die Produktion
          1. Verfügbare Tools
            1. Testen
              1. Customizing

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  A production-ready template for creating Model Context Protocol servers with TypeScript, providing tools for efficient testing, development, and deployment.
                  Last updated -
                  1
                  7
                  12
                  JavaScript
                  MIT License
                • A
                  security
                  A
                  license
                  A
                  quality
                  A production-ready template for building Model Context Protocol servers in TypeScript, offering fast development with Bun, Biome linting, and automated version management.
                  Last updated -
                  1
                  7
                  JavaScript
                  MIT License
                • A
                  security
                  F
                  license
                  A
                  quality
                  A 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 -
                  1
                  2
                  TypeScript
                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol server that extracts embedded data (such as i18n translations or key/value configurations) from TypeScript/JavaScript source code into structured JSON configuration files.
                  Last updated -
                  2
                  14
                  2
                  JavaScript
                  MIT License

                View all related MCP servers

                ID: h4hg5cqqpp