mcp-server-agentops

mcp-server-agentops

AgentOps SDK 的官方MCP Server。

简介

这是 AgentOps SDK 的官方 MCP 服务器,用于监控和管理您的智能代理。

安装

npm install mcp-server-agentops
# 或
yarn add mcp-server-agentops

基本使用

1. 初始化服务器

const { MCPServer } = require('mcp-server-agentops');

const server = new MCPServer({
  apiKey: 'your-api-key',
  port: 3000 // 可选,默认为3000
});

server.start();

2. 连接您的Agent

const { Agent } = require('agentops');

const agent = new Agent({
  apiKey: 'your-api-key',
  serverUrl: 'http://localhost:3000'
});

agent.connect();

3. 监控活动

服务器启动后,您可以访问仪表板:

http://localhost:3000/dashboard

高级配置

查看完整文档了解更多高级配置选项和API详情。

故障排除

如遇问题,请检查:

  • API密钥是否正确
  • 网络连接是否正常
  • 服务器日志中的错误信息

有关更多信息,请访问我们的GitHub仓库