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は大歓迎です

Install Server
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. 1. スニペットを作成する
            2. 2. リストスニペット
            3. 3. スニペットを削除する
          2. 発達
            1. 建てる
            2. 糸くず
          3. 貢献

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              TypeScript-based MCP server designed to enhance code editing experiences by providing features such as hover information, code completion, and diagnostics.
              Last updated -
              3
              24
              MIT License
              • Apple
            • A
              security
              A
              license
              A
              quality
              MCP server for collecting code from files and directories into a single markdown document.
              Last updated -
              2
              8
              Python
              MIT License
            • -
              security
              F
              license
              -
              quality
              An MCP server that enables generating scripts based on specified topics and keywords, while also providing functionality to store and summarize notes.
              Last updated -
              Python
              • 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