AE

akeruai/eliza-plugin-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

0 stars 18 forks 质量 46 趋势 0

ElizaOS 插件, 允许代理连接 MCP 服务器

概览

这个插件将"模型背景协议"(MCP)与"ElizaOS"相融合,允许代理连接到多个MCP服务器并使用其资源,提示和工具. 模式上下文协议(MCP)是一个开放的协议,它能够使LLM应用与外部数据源和工具无缝地融合. 它提供了一种标准化的方法,将有限责任公司与它们所需要的背景联系起来。 此插件允许您的 ElizaOS 代理同时访问多个 MCP 服务器, 每个服务器提供不同的能力 : - : 代理引用的背景和数据 - : 模板消息和工作流程 - : 代理执行的功能 在您的 ElizaOS 工程中安装插件 : 1. 在字符配置中添加插件 : MCP支持两种服务器:"stdio"和"sse". 每个类型都有自己的配置选项. 插件配置后, MCP 服务器的能力会自动暴露给您的代理 :

概述(AI 翻译)

这个插件将"模型背景协议"(MCP)与"ElizaOS"相融合,允许代理连接到多个MCP服务器并使用其资源,提示和工具.

□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□

模式上下文协议(MCP)是一个开放的协议,它能够使LLM应用与外部数据源和工具无缝地融合. 它提供了一种标准化的方法,将有限责任公司与它们所需要的背景联系起来。

此插件允许您的 ElizaOS 代理同时访问多个 MCP 服务器, 每个服务器提供不同的能力 :

  • ** 资源**:代理人参考的背景和数据
  • ** 方法**:模板信息和工作流程
  • 工具: 代理执行的职能

□ 安装

在您的 ElizaOS 工程中安装插件 :

  • npm (单位:千美元)

  • 日记**

  • ** 亚伦**

  • ** 弹出**

□🚀用.

  1. 在字符配置中添加插件 :

□ QQ 配置选项

MCP支持两种服务器:“stdio"和"sse”. 每个类型都有自己的配置选项.

常见选项

  • 选项 * 类型 * 说明 * * |------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- QQ type QQ 字符串 MCP 服务器的类型:“stdio"或"sse” QQ

本页由 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

  1. 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

在 GitHub 查看完整 README

安装

npx -y @modelcontextprotocol/server-github
新手?先看 mcpskill.org 教程 →