最后9 MCP 服务器是为 Last9 实现的 Model Context Protocol 服务器。它能让 AI 代理无缝地将实时生产上下文(日志、指标和跟踪)带入本地环境,从而更快地自动修复代码。
本服务器与 Claude 桌面应用程序兼容,也可用于 Cursor 和 Windsurf。
last9-mcplast9-mcp --auth_token=your_auth_token --base_url=http://localhost:1234 --refresh_token=your_refresh_token
brew install last9/mcp/last9-mcp
claude_desktop_config.json 文件。{
"mcpServers": {
"last9": {
"command": "/opt/homebrew/bin/last9-mcp",
"env": {
"LAST9_AUTH_TOKEN": "" ,
"LAST9_BASE_URL": "" ,
"LAST9_REFRESH_TOKEN": ""
}
}
}
}
{
"mcpServers": {
"last9": {
"command": "/opt/homebrew/bin/last9-mcp",
"env": {
"LAST9_AUTH_TOKEN": "" ,
"LAST9_BASE_URL": "" ,
"LAST9_REFRESH_TOKEN": ""
}
}
}
}
windsurf_config.json 文件。{
"mcpServers": {
"last9": {
"command": "/opt/homebrew/bin/last9-mcp",
"env": {
"LAST9_AUTH_TOKEN": "" ,
"LAST9_BASE_URL": "" ,
"LAST9_REFRESH_TOKEN": ""
}
}
}
}
⚠️ 重要提示
- 所有
<...>部分都需要替换为实际值。- 确保安装完成后正确配置环境变量,并验证 MCP 服务器是否正常运行。