Skip to main content
Glama
Code Snippet Server

Code Snippet Server

by ngeojiajun

코드 스니펫 서버

개요

코드 스니펫 서버는 다양한 프로그래밍 언어에서 코드 스니펫을 관리하고 저장하도록 설계된 모델 컨텍스트 프로토콜(MCP) 서버입니다. 표준화된 서버 인터페이스를 사용하여 코드 스니펫을 생성, 나열 및 삭제할 수 있는 유연하고 확장 가능한 방법을 제공합니다.

Related MCP server: CodeBot MCP Server v2

특징

  • 제목, 언어 및 코드를 사용하여 코드 조각을 만듭니다.

  • 언어 또는 태그별 선택적 필터링을 통해 스니펫 목록 작성

  • 고유 ID로 스니펫 삭제

  • 현지화 지원

  • 영구 로컬 스토리지

필수 조건

  • Node.js(18.x, 20.x 또는 22.x)

  • 엔피엠

설치

지엑스피1

용법

서버는 세 가지 주요 도구를 제공합니다.

1. 스니펫 만들기

제목, 언어, 코드를 입력하여 새로운 코드 조각을 만듭니다.

매개변수:

  • title (필수): 스니펫의 이름

  • language (필수): 프로그래밍 언어

  • code (필수): 실제 코드 조각

  • tags (선택 사항): 분류를 위한 태그 배열

2. 목록 스니펫

선택적 필터링을 통해 스니펫 목록을 검색합니다.

매개변수:

  • language (선택 사항): 프로그래밍 언어로 스니펫 필터링

  • tag (선택 사항): 태그로 스니펫 필터링

3. 스니펫 삭제

저장소에서 스니펫을 제거합니다.

매개변수:

  • id (필수): 삭제할 스니펫의 고유 식별자

개발

짓다

npm run build

린트

npm run lint

기여하다

모든 PR을 환영합니다

Available Tools

3 tools
create_snippetC

Create a snippet (specify title, language, and code)

Inputs: code (required), language (required), title (required), tags.

delete_snippetC

Delete a snippet (specify ID)

Inputs: id (required).

list_snippetsC

List snippets (can filter by language or tags)

Inputs: language, tag.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: create_snippet for creation, delete_snippet for deletion, and list_snippets for listing with optional filtering. There is no overlap or ambiguity between these operations.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (create_snippet, delete_snippet, list_snippets) using snake_case throughout. This makes the set predictable and easy to understand.

    Tool Count3/5

    With only 3 tools, the set feels thin for a snippet management server. While it covers basic operations, it lacks tools for updating snippets or retrieving a single snippet by ID, which are common needs in such domains.

    Completeness3/5

    The server provides create, delete, and list operations, but there are notable gaps: no update_snippet tool to modify existing snippets and no get_snippet tool to retrieve a specific snippet by ID. This limits functionality and may cause agent workarounds.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers