话语MCP服务器
Node.js服务器实现了用于话语搜索操作的模型上下文协议(MCP)。
特性
- 使用MCP协议在话语论坛上搜索帖子。
API
工具
- 搜索帖子
- 在Discourse论坛上搜索帖子 - 输入: query (字符串) - 返回一个post对象数组
使用Claude Desktop
将此添加到您的 claude_desktop_config.json:
码头工人
{
"mcpServers": {
"discourse": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "DISCOURSE_API_URL=https://try.discourse.org",
"-e", "DISCOURSE_API_KEY=1234",
"-e", "DISCOURSE_API_USERNAME=ash",
"ashdev/discourse-mcp-server"
]
}
}
}NPX
{
"mcpServers": {
"discourse": {
"command": "npx",
"args": [
"-y",
"@ashdev/discourse-mcp-server"
],
"env": {
"DISCOURSE_API_URL": "https://try.discourse.org",
"DISCOURSE_API_KEY": "1234",
"DISCOURSE_API_USERNAME": "ash"
}
}
}
}构建
Docker构建:
docker build -t ashdev/discourse-mcp-server .