MCP服务器由 ACI.dev
\[!重要\] 本README仅涵盖基本的开发指南。有关ACI.dev MCP服务器的完整文档和教程,请访问 aci.dev文档.
目录
- 目录 - 概述 - 在本地运行MCP服务器 - 与MCP客户端集成 - 码头工人 - 调试
概述
此软件包提供了三个模型上下文协议(MCP)服务器,用于访问 ACI.dev 管理功能(工具):
aci-mcp-apps:提供从指定应用程序直接访问功能(工具)的MCP服务器
aci-mcp-unified:提供两个元功能(工具)的MCP服务器(ACI_SEARCH_FUNCTIONS和ACI_EXECUTE_FUNCTION)发现并执行 全部 功能(工具)可在 ACI.dev
\[!重要\] 有关MCP服务器的详细说明和教程,请访问 aci.dev文档.
在本地运行MCP服务器
该包已发布到PyPI,因此您可以直接使用 uvx:
# Install uv if you don't have it already
curl -sSf https://install.pypa.io/get-pip.py | python3 -
pip install uv$ uvx aci-mcp --help
Usage: aci-mcp [OPTIONS] COMMAND [ARGS]...
Main entry point for the package.
Options:
--help Show this message and exit.
Commands:
apps-server Start the apps-specific MCP server to access tools...
unified-server Start the unified MCP server with unlimited tool access.与MCP客户端集成
请参阅 统一MCP服务器 和 应用程序MCP服务器 有关如何使用不同的MCP客户端配置MCP服务器的更多信息,请参阅第节。
码头工人
# Build the image
docker build -t aci-mcp .
# Run the unified server
docker run --rm -i -e ACI_API_KEY= aci-mcp unified-server --linked-account-owner-id
# Run the apps server
docker run --rm -i -e ACI_API_KEY= aci-mcp apps-server --apps --linked-account-owner-id
调试
您可以使用MCP检查器调试服务器:
# For unified server
npx @modelcontextprotocol/inspector uvx aci-mcp unified-server --linked-account-owner-id
# For apps server
npx @modelcontextprotocol/inspector uvx aci-mcp apps-server --apps "BRAVE_SEARCH,GMAIL" --linked-account-owner-id
跑步 tail -n 20 -f ~/Library/Logs/Claude/mcp*.log 将显示服务器的日志,并可能帮助您调试任何问题。
