Exa MCP 服务器借助 Exa API,提供 AI 驱动的代码搜索功能,是一个基于模型上下文协议(MCP)的服务器,能让你通过自然语言高效查询代码。
Exa MCP 服务器旨在提供 AI 驱动的代码搜索服务,以下是使用前的准备步骤。
git clone https://github.com/it-beard/exo-server.git
cd exa-server
npm install
npm run build
{
"mcpServers": {
"exa": {
"command": "node",
"args": ["/path/to/exa-server/build/index.js"],
"env": {
"EXA_API_KEY": "your-api-key-here"
}
}
}
}
该服务器提供了一些实用的工具和资源,以下是具体介绍。
使用 Exa API 执行 AI 驱动的搜索。 输入模式如下:
{
"query": "搜索查询",
"numResults": 10
}
exa://search/{query} - 特定查询的结果。exa://last-search/result - 最近一次搜索查询的结果。src 目录下进行代码修改。npm run build
git checkout -b feature/amazing-feature
git commit -m '添加一些Amazing特性'
git push origin feature/amazing-feature
此项目根据 MIT 许可证发布,有关详细信息,请参阅 LICENSE 文件。