esa-mcp-server 是一个通过 Model Context Protocol (MCP) 提供 esa.io API 的服务器。
<a href="https://glama.ai/mcp/servers/undwqgwbtd"><img width="380" height="200" src="https://gips0.baidu.com/it/u=2723885766,2219523973&fm=3081&app=3081&f=PNG?w=760&h=400" alt="ESA Server MCP 服务器" /></a>
根据使用的工具准备相应的设置文件如下:
{
"mcpServers": {
"esa-mcp-server": {
"command": "npx",
"args": ["-y", "esa-mcp-server@latest"],
"env": {
"ESA_API_KEY": "在这里填写你的 API 密钥",
"DEFAULT_ESA_TEAM": "在这里填写你的默认 esa 团队"
}
}
}
}
## 使用 esa 工具
为了检索 esa 的信息,可以使用以下工具。
- 对于文章搜索,使用 search_esa_posts 工具。如果需要使用复杂的查询,请先使用 get_search_query_document 工具来了解如何准确地编写查询。
- 要获取文章内容,使用 read_esa_post 或 read_esa_multiple_posts 工具。如果有需要获取多篇文章的情况,建议使用 read_esa_multiple_posts 工具一次性获取。
- 要创建、更新或删除文章,分别使用 create_esa_post、update_esa_post 和 delete_esa_post 工具。
请参阅 src/server.ts。
欢迎贡献。