
akeruai/eliza-plugin-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ElizaOS プラグインにより、エージェントが MCP サーバーに接続できるように
概要
このプラグインは、モデルコンテキストプロトコル (MCP) を ElizaOS と統合し、エージェントは複数の MCP サーバーに接続し、リソース、プロンプト、およびツールを使用することを可能にします。 Model Context Protocol (MCP) は、LLM アプリケーションと外部のデータソースとツール間のシームレスな統合を可能にするオープンプロトコルです。 LLM を必要なコンテキストに接続するための標準化された方法を提供します。 このプラグインにより、ElizaOS エージェントが複数の MCP サーバーを同時にアクセスでき、それぞれ異なる機能を提供します。 - : エージェントが参照するコンテキストとデータ - : テンプレートされたメッセージとワークフロー - : エージェントが実行する関数 ElizaOSプロジェクトにプラグインをインストールします。 1. プラグインをキャラクター構成に追加します。 MCPは「stdio」と「sse」の2つのサーバーをサポートしています。 各タイプに独自の設定オプションがあります。 設定したら、プラグインはMCPサーバーの機能をエージェントに自動的に公開します
概要(AI 翻訳)
このプラグインは、モデルコンテキストプロトコル (MCP) を ElizaOS と統合し、エージェントは複数の MCP サーバーに接続し、リソース、プロンプト、およびツールを使用することを可能にします。
MCPとは?
Model Context Protocol (MCP) は、LLM アプリケーションと外部のデータソースとツール間のシームレスな統合を可能にするオープンプロトコルです。 LLM を必要なコンテキストに接続するための標準化された方法を提供します。
このプラグインにより、ElizaOS エージェントが複数の MCP サーバーを同時にアクセスでき、それぞれ異なる機能を提供します。
-Resources:エージェントが参照するコンテキストとデータ
- プロンプト: テンプレートされたメッセージとワークフロー
- ツール: エージェントが実行する機能
インストール
ElizaOSプロジェクトにプラグインをインストールします。
-
npm
-
pm
-
** yarn**
-
文
OST の使用法
- プラグインをキャラクター構成に追加します。
◀ 設定オプション
MCPは「stdio」と「sse」の2つのサーバーをサポートしています。 各タイプに独自の設定オプションがあります。
共通オプション
| オプション | 種類 | 説明 |
|---|---|---|
[type |
文字列 | MCP サーバーの種類: stdio または “sse” |
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Plugin for ElizaOS
This plugin integrates the Model Context Protocol (MCP) with ElizaOS, allowing agents to connect to multiple MCP servers and use their resources, prompts, and tools.
🔍 What is MCP?
The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. It provides a standardized way to connect LLMs with the context they need.
This plugin allows your ElizaOS agents to access multiple MCP servers simultaneously, each providing different capabilities:
- Resources: Context and data for the agent to reference
- Prompts: Templated messages and workflows
- Tools: Functions for the agent to execute
📦 Installation
Install the plugin in your ElizaOS project:
- npm
npm install @fleek-platform/eliza-plugin-mcp
- pnpm
pnpm install @fleek-platform/eliza-plugin-mcp
- yarn
yarn add @fleek-platform/eliza-plugin-mcp
- bun
bun add @fleek-platform/eliza-plugin-mcp
🚀 Usage
- Add the plugin to your character configuration:
{
"name": "Your Character",
"plugins": ["@fleek-platform/eliza-plugin-mcp"],
"settings": {
"mcp": {
"servers": {
"github": {
"type": "stdio",
"name": "Code Server",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"]
}
}
}
}
}
⚙️ Configuration Options
MCP supports two types of servers: “stdio” and “sse”. Each type has its own configuration options.
Common Options
| Option | Type | Description |
|---|---|---|
type |
string | The type of MCP server: “stdio” or “sse” |
name |
string | The display name of the server |
timeout |
number | Timeout in seconds for tool calls (default: 60) |
disabled |
boolean | Whether the server is disabled |
stdio Server Options
| Option | Type | Description |
|---|---|---|
command |
string | The command to run the MCP server |
args |
string[] | Command-line arguments for the server |
env |
object | Environment variables to pass to the server |
cwd |
string | Optional Working directory to run the server in |
sse Server Options
| Option | Type | Description |
|---|---|---|
url |
string | The URL of the SSE endpoint |
🛠️ Using MCP Capabilities
インストール
npx -y @modelcontextprotocol/server-github