コードスニペットサーバー
概要
コードスニペットサーバーは、異なるプログラミング言語間でコードスニペットを管理・保存するために設計されたモデルコンテキストプロトコル(MCP)サーバーです。標準化されたサーバーインターフェースを使用して、コードスニペットを作成、一覧表示、削除するための柔軟で拡張性の高い方法を提供します。
特徴
タイトル、言語、コードを含むコードスニペットを作成する
言語またはタグによるフィルタリングが可能なリストスニペット
一意のIDでスニペットを削除する
ローカリゼーションサポート
永続的なローカルストレージ
前提条件
Node.js (18.x、20.x、または 22.x)
npm
インストール
使用法
サーバーは 3 つの主要なツールを公開します。
1. スニペットを作成する
タイトル、言語、コードを含む新しいコード スニペットを作成します。
パラメータ:
title
(必須): スニペットの名前language
(必須): プログラミング言語code
(必須): 実際のコードスニペットtags
(オプション): 分類用のタグの配列
2. リストスニペット
オプションのフィルタリングを使用してスニペットのリストを取得します。
パラメータ:
language
(オプション): プログラミング言語でスニペットをフィルタリングしますtag
(オプション):タグでスニペットをフィルタリングする
3. スニペットを削除する
ストレージからスニペットを削除します。
パラメータ:
id
(必須): 削除するスニペットの一意の識別子
発達
建てる
糸くず
貢献
PRは大歓迎です
local-only server
The server can only run on the client's local machine because it depends on local resources.
さまざまなプログラミング言語のコード スニペットを管理および保存するための MCP サーバー。ユーザーは標準化されたインターフェイスを使用してスニペットを作成、一覧表示、削除できます。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityTypeScript-based MCP server designed to enhance code editing experiences by providing features such as hover information, code completion, and diagnostics.Last updated -325MIT License
- AsecurityAlicenseAqualityMCP server for collecting code from files and directories into a single markdown document.Last updated -9MIT License
- AsecurityAlicenseAqualityMCP Server for running code snippet and show the result.Last updated -1859203MIT License
- -securityFlicense-qualityAn MCP server that enables generating scripts based on specified topics and keywords, while also providing functionality to store and summarize notes.Last updated -1