
lizqwerscott/mcp.el
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Emacs内のMcpクライアント
概要
[https://melpa.org/#/mcp] [https://www.gnu.org/licenses/gpl-3.0] これはMCPサーバーへの接続をサポートする[https://modelcontextprotocol.io/introduction],とインターフェースするためのEmacsクライアントです。 * 特徴 - MCPサーバーとの構造化通信 - ファイルシステムおよび汎用MCPサーバーのサポート - 拡張可能なツールおよびプロンプトシステム - 非同期および同期操作 - リソース管理機能 - サーバーライフサイクル管理(開始・停止・再起動)の直感的なインターフェース - 人気のEmacsパッケージ(例:gptel、llm)との統合 * インストールは Emacs 30 以上のバージョンが必要です (use-package mcp :ensure t :after gptel :custom (mcp-hub-servers '(("filesystem" .(:command "npx" :args ("-y" "@modelcontextprotocol/server-filesystem") :roots ("/home/lizqwer/MyProject/"))("fetch" 。(:command "uvx" :args ("mcp-server-fetch"))("qdrant" .(:URL "http://localhost:8000/sse"))("graphlit" .
概要(AI 翻訳)
#+タイトル:MCP.el - Emacs向けモデルコンテキストプロトコル
[[https://melpa.org/#/mcp][file:https://melpa.org/packages/mcp-badge.svg]] [[https://www.gnu.org/licenses/gpl-3.0][https://img.shields.io/badge/License-GPLv3-blue.svg]]
これはMCPサーバーへの接続をサポートする[[[https://modelcontextprotocol.io/introduction][MCP]],とインターフェースするためのEmacsクライアントです。
- 特徴
- MCPサーバーとの構造化通信
- ファイルシステムおよび汎用MCPサーバーのサポート
- 拡張可能なツールおよびプロンプトシステム
- 非同期および同期操作
- リソース管理機能
- サーバーライフサイクル(開始・停止・再起動)を管理する直感的なインターフェース
- 人気のEmacsパッケージ(例:gptel、llm)との統合
- 設置 Emacs 30以上のバージョンが必要です #+begin_src エリスプ (use-package mcp :確保 t :グプテルの後 :custom (mcp-hub-servers '((「ファイルシステム」(:command “npx” :args (“-y” “@modelcontextprotocol/server-filesystem”) :roots(「/home/lizqwer/MyProject/」)) (「fetch」(:command “uvx” :args (“mcp-server-fetch”)) (「qdrant」(:URL “http://localhost:8000/sse”)) (「グラフライト」( :command “npx” :args (“-y” “graphlit-mcp-server”) :env(
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
#+TITLE: MCP.el - Model Context Protocol for Emacs
[[https://melpa.org/#/mcp][file:https://melpa.org/packages/mcp-badge.svg]] [[https://www.gnu.org/licenses/gpl-3.0][https://img.shields.io/badge/License-GPLv3-blue.svg]]
This is an Emacs client for interfacing with [[https://modelcontextprotocol.io/introduction][MCP]], supporting connections to MCP servers.
- Features
- Structured communication with MCP servers
- Support for filesystem and generic MCP servers
- Extensible tool and prompt system
- Asynchronous and synchronous operations
- Resource management capabilities
- Intuitive interface for managing server lifecycle (start/stop/restart)
- Integration with popular Emacs packages (e.g., gptel, llm)
- Installation Need Emacs 30 or higher version #+begin_src elisp (use-package mcp :ensure t :after gptel :custom (mcp-hub-servers `((“filesystem” . (:command “npx” :args (“-y” “@modelcontextprotocol/server-filesystem”) :roots (“/home/lizqwer/MyProject/”))) (“fetch” . (:command “uvx” :args (“mcp-server-fetch”))) (“qdrant” . (:url “http://localhost:8000/sse”)) (“graphlit” . ( :command “npx” :args (“-y” “graphlit-mcp-server”) :env ( :GRAPHLIT_ORGANIZATION_ID “your-organization-id” :GRAPHLIT_ENVIRONMENT_ID “your-environment-id” :GRAPHLIT_JWT_SECRET “your-jwt-secret”))))) :config (require 'mcp-hub) :hook (after-init . mcp-hub-start-all-server)) #+end_src
- Usage ** Mcp hub *** Configuring MCP Servers #+begin_src elisp (setq mcp-hub-servers '((“filesystem” . (:command “npx” :args (“-y” “@modelcontextprotocol/server-filesystem”) :roots (“/home/lizqwer/MyProject/”))) (“fetch” . (:command “uvx” :args (“mcp-server-fetch”))) (“qdrant” . (:url “http://localhost:8000/sse”)) (“graphlit” . ( :command “npx” :args (“-y” “graphlit-mcp-server”) :env ( :GRAPHLIT_ORGANIZATION_ID “your-organization-id” :GRAPHLIT_ENVIRONMENT_ID “your-environment-id” :GRAPHLIT_JWT_SECRET “your-jwt-secret”))))) #+end_src You can use =mcp-hub-start-all-server= to start all MCP servers, such as launching all MCP servers after starting Emacs. #+begin_src elisp (add-hook 'after-init-hook #'mcp-hub-start-all-server) #+end_src *** Managing MCP Servers Use =mcp-hub= to launch the server management interface, which will automatically start all configured MCP servers.
#+html:
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →