Skip to main content
Glama

Code Snippet Server

コードスニペットサーバー

概要

コードスニペットサーバーは、異なるプログラミング言語間でコードスニペットを管理・保存するために設計されたモデルコンテキストプロトコル(MCP)サーバーです。標準化されたサーバーインターフェースを使用して、コードスニペットを作成、一覧表示、削除するための柔軟で拡張性の高い方法を提供します。

特徴

  • タイトル、言語、コードを含むコードスニペットを作成する
  • 言語またはタグによるフィルタリングが可能なリストスニペット
  • 一意のIDでスニペットを削除する
  • ローカリゼーションサポート
  • 永続的なローカルストレージ

前提条件

  • Node.js (18.x、20.x、または 22.x)
  • npm

インストール

git clone git@github.com:ngeojiajun-deriv/mcp-code-snippets.git npm run build npm link

使用法

サーバーは 3 つの主要なツールを公開します。

1. スニペットを作成する

タイトル、言語、コードを含む新しいコード スニペットを作成します。

パラメータ:

  • title (必須): スニペットの名前
  • language (必須): プログラミング言語
  • code (必須): 実際のコードスニペット
  • tags (オプション): 分類用のタグの配列

2. リストスニペット

オプションのフィルタリングを使用してスニペットのリストを取得します。

パラメータ:

  • language (オプション): プログラミング言語でスニペットをフィルタリングします
  • tag (オプション):タグでスニペットをフィルタリングする

3. スニペットを削除する

ストレージからスニペットを削除します。

パラメータ:

  • id (必須): 削除するスニペットの一意の識別子

発達

建てる

npm run build

糸くず

npm run lint

貢献

PRは大歓迎です

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

さまざまなプログラミング言語のコード スニペットを管理および保存するための MCP サーバー。ユーザーは標準化されたインターフェイスを使用してスニペットを作成、一覧表示、削除できます。

  1. 概要
    1. 特徴
      1. 前提条件
        1. インストール
          1. 使用法
            1. スニペットを作成する
            2. リストスニペット
            3. スニペットを削除する
          2. 発達
            1. 建てる
            2. 糸くず
          3. 貢献

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A simple MCP server that facilitates website fetching through a configurable server platform using stdio or SSE transport, allowing integration with tools like Cursor for streamlined access.
              Last updated -
              2
              23
              Python
              MIT License
            • -
              security
              F
              license
              -
              quality
              An MCP server that provides tools and resources for managing a coding project's todo list, allowing users to view, add, update, and delete todo items with details like priority, status, and tags.
              Last updated -
              1
              Python
            • A
              security
              F
              license
              A
              quality
              An MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.
              Last updated -
              39
              28
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/ngeojiajun/mcp-code-snippets'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server