
模型上下文协议(MCP)和代理通信协议(ACP)指南
概览
学习如何构建与框架无关、不依赖LLM的代理型AI解决方案。请参阅下面的博客系列了解更多信息。 点击这里了解更多关于人工智能代理互操作性的信息:Medium.com 1. 我用 Tavily 搜索实现了网页搜索工具,在这里创建了 Tavily API 密钥:https://www.tavily.com 2.我用了 Google SERP API 实现飞行搜索工具,创建了 SERP API 密钥,这里创建了 SERP API 密钥:https://serpapi.com/manage-api-key 1. 克隆仓库。注意:推荐使用UV包管理器。1. 安装UV包管理器。1. 安装UV包管理器后,创建虚拟环境并激活它。1. 安装Python依赖。1. 导出环境变量填充环境值 1. 启动 mcp/acp 服务器。1. 启动 mcp 服务器,执行:1. 启动 acp 服务器,在另一个终端中运行:1. 运行笔记本,进入 src/notebooks 目录,执行以下命令:
概述(AI 翻译)
学习如何构建与框架无关、不依赖LLM的代理型AI解决方案。请参阅下面的博客系列了解更多信息。
参考架构
Medium 文章
点击这里了解更多关于人工智能代理互操作性的信息:Medium.com
前提条件
- 我用 Tavily 搜索实现了网页搜索工具,在这里创建一个 Tavily API 密钥:
- 我用过Google SERP API来实现飞行搜索工具,在这里创建一个SERP API密钥:
设置代码库
- 克隆仓库。
注:推荐使用UV包管理器。
-
安装UV包管理器。
-
安装完 UV 包管理器后,创建虚拟环境并激活它。
-
安装 Python 依赖。
-
导出环境变量
填充环境值
-
启动MCP/acp服务器。
-
启动MCP服务器运行:
-
启动 acp 服务器,在另一个终端运行中:
-
要运行笔记本,进入
src/notebooks目录并执行以下命令:
本页由 AI 翻译,技术细节请以原文为准。
README
AI Agents Interoperability Series
Learn how to architect Agentic AI solutions which are framework agnostic, LLM Agnostic. Refer to the Blog series below to learn more.
Reference Architecture
Medium articles
Read more about AI Agents Interoperability here: Medium.com
Pre-requirements
- I have used Tavily search for the web search tool implementation, create a Tavily API Key here:
- I have used Google SERP APIs for the flight search tool implementation, create a SERP API key here:
Setup codebase
-
Clone the repo.
git clone https://github.com/manojjahgirdar/ai-agents-interoperability.gitNote: UV Package manager is recommended.
-
Install the uv package manager.
pip install pipx pipx install uv -
Once the uv package manager is installed, create a virtual environment and activate it.
uv venv source .venv/bin/activate -
Install the python dependencies.
uv sync -
Export env variables
cp env.example .envFill the env values
-
Launch the mcp/acp servers.
- To launch the mcp server run:
cd src/mcp/mcp-server uv run mcp_server.py - To launch the acp server, in another terminal run:
cd src/acp/acp-server export REMOTE_MCP_URL=http://127.0.0.1:8000/sse uv run acp_server.py
- To launch the mcp server run:
-
To run the notebooks, goto
src/notebooksdirectory and run the following command:jupyter notebook
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →