视角 MCP 服务器是一个基于 Model Context Protocol (MCP) 的服务器,它提供了与 Perspective API 交互的工具,能帮助用户进行文本分析等操作。
要使用视角 MCP 服务器,您需要完成以下两个步骤:
{
"mcpServers": {
"perspective": {
"command": "npx",
"args": [
"-y",
"@mtane0412/perspective-mcp-server"
],
"env": {
"PERSPECTIVE_API_KEY": "your-api-key"
}
}
}
}
将服务器添加到 MCP 设置文件的示例代码:
{
"mcpServers": {
"perspective": {
"command": "npx",
"args": [
"-y",
"@mtane0412/perspective-mcp-server"
],
"env": {
"PERSPECTIVE_API_KEY": "your-api-key"
}
}
}
}
由于 MCP 服务器通过标准输入输出进行通信,调试可能具有挑战性。我们建议使用 MCP Inspector,该工具作为包脚本提供,使用命令如下:
npm run inspect
Inspector 将为您提供一个访问浏览器中的调试工具的 URL。
本项目采用 MIT License 进行许可。