LB

laurynas-biveinis/mcp-server-lib.el

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

51 stars 12 forks 품질 49 트렌드 27GPL-3.0

모형 Context 의정서의 Emacs Lisp 실시

개요

[https://github.com/laurynas-biveinis/mcp-server-lib.el/actions/workflows/elisp-test.yml]] https://github.com/laurynas-biveinis/mcp-server-lib.el/actions/workflows/linter.yml]] [https://melpa.org/#/mcp-server-lib]] https://stable.melpa.org/#/mcp-server-lib]]] =mcp-server-lib.el=는 Emacs Lisp의 [https://modelcontextprotocol.io/]] (MCP) 서버 구축을위한 라이브러리입니다. Emacs 패키지에 대한 인프라를 제공하여 도구와 리소스를 큰 언어 모델로 노출시킵니다. - 도구 (Elisp 기능) 및 리소스를 등록하기위한 간단한 API - 멀티 서버 지원 - URI 패턴 매칭 (RFC 6570 하위 세트)와 리소스 템플릿 - MCP 프로토콜 통신 및 JSON-RPC 메시지 처리 - emacsclient 래퍼 스크립트를 통해 Stdio 운송 - 내장 사용 미터 및 디버깅 지원 - Emacs 27.1 이상 - Emacs daemon 실행 (스트로디 수송용) - [https://github.com/laurynas-biveinis/elisp-dev-mcp] - Elisp 개발 지원 도구 - [https://github.]

개요(AI 번역)

#+TITLE: mcp-server-lib.el - Emacs Lisp를 위한 모델 콘텍스트 프로토콜 서버 라이브러리

[[https://github.com/laurynas-biveinis/mcp-server-lib.el/actions/workflows/elisp-test.yml][https://github.com/laurynas-biveinis/mcp-server-lib.el/actions/workflows/elisp-test.yml/badge.svg]]]] [[https://github.com/laurynas-biveinis/mcp-server-lib.el/actions/workflows/linter.yml][https://github.com/laurynas-biveinis/mcp-server-lib.el/actions/workflows/linter.yml/badge.svg]]] [[https://melpa.org/#/mcp-server-lib][https://melpa.org/packages/mcp-server-lib-badge.svg]]] [[https://stable.melpa.org/#/mcp-server-lib][file:https://stable.melpa.org/packages/mcp-server-lib-badge.svg]]]

  • 개요

=mcp-server-lib.el=는 Emacs Lisp의 [[[https://modelcontextprotocol.io/][Model Context Protocol] 서버 구축을위한 라이브러리입니다. Emacs 패키지에 대한 인프라를 제공하여 도구와 리소스를 큰 언어 모델로 노출시킵니다.

  • 특징
  • 도구 등록을위한 간단한 API (Elisp 기능) 및 리소스
  • 멀티 서버 지원
  • URI 패턴 매칭으로 리소스 템플릿 (RFC 6570 subset)
  • MCP 프로토콜 통신 및 JSON-RPC 메시지 처리

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

#+TITLE: mcp-server-lib.el - Model Context Protocol Server Library for Emacs Lisp

[[https://github.com/laurynas-biveinis/mcp-server-lib.el/actions/workflows/elisp-test.yml][https://github.com/laurynas-biveinis/mcp-server-lib.el/actions/workflows/elisp-test.yml/badge.svg]] [[https://github.com/laurynas-biveinis/mcp-server-lib.el/actions/workflows/linter.yml][https://github.com/laurynas-biveinis/mcp-server-lib.el/actions/workflows/linter.yml/badge.svg]] [[https://melpa.org/#/mcp-server-lib][https://melpa.org/packages/mcp-server-lib-badge.svg]] [[https://stable.melpa.org/#/mcp-server-lib][file:https://stable.melpa.org/packages/mcp-server-lib-badge.svg]]

  • Overview

=mcp-server-lib.el= is a library for building [[https://modelcontextprotocol.io/][Model Context Protocol]] (MCP) servers in Emacs Lisp. It provides the infrastructure for Emacs packages to expose their functionality as tools and resources to Large Language Models.

  • Features
  • Simple API for registering tools (Elisp functions) and resources
  • Multi-server support
  • Resource templates with URI pattern matching (RFC 6570 subset)
  • Handles MCP protocol communication and JSON-RPC messages
  • Stdio transport via emacsclient wrapper script
  • Built-in usage metrics and debugging support
  • Requirements
  • Emacs 27.1 or later
  • Running Emacs daemon (for stdio transport)
  • MCP servers built on this library
  • Installation

From [[https://melpa.org/#/mcp-server-lib][MELPA]] or [[https://stable.melpa.org/#/mcp-server-lib][MELPA Stable]]:

=M-x package-install RET mcp-server-lib RET=

  • For Users

If you’re using an MCP server built with this library:

  1. Run =M-x mcp-server-lib-install= to install the stdio script
  2. The script will be at =~/.emacs.d/emacs-mcp-stdio.sh=
  3. Follow your MCP server’s documentation for client registration

Available commands:

  • =M-x mcp-server-lib-start= - Start the MCP server
  • =M-x mcp-server-lib-stop= - Stop the MCP server
  • =M-x mcp-server-lib-describe-setup= - View registered tools and resources with usage statistics
  • =M-x mcp-server-lib-show-metrics= - View usage metrics
  • =M-x mcp-server-lib-uninstall= - Remove the stdio script
  • For Developers

To build your own MCP server, see [[https://github.com/laurynas-biveinis/elisp-dev-mcp][elisp-dev-mcp]] for a complete example.

** Client Registration

Register your MCP server with a client using the stdio script:

#+BEGIN_EXAMPLE claude mcp add -s user -t stdio your-server – ~/.emacs.d/emacs-mcp-stdio.sh
–init-function=your-init-func --stop-function=your-stop-func #+END_EXAMPLE

Script options:

  • =–init-function=NAME= - Emacs function to call on startup
  • =–stop-function=NAME= - Emacs function to call on shutdown
  • =–socket=PATH= - Custom Emacs server socket (optional)
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →