Gives agents access to AgentOps observability and trace data for debugging AI agent runs.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add agentops --env AGENTOPS_API_KEY='<AGENTOPS_API_KEY>' -- uv --directory path/to/your/main/directory run server.py~/.codex/config.toml
[mcp_servers.agentops]
command = "uv"
args = ["--directory", "path/to/your/main/directory", "run", "server.py"]
env = { AGENTOPS_API_KEY = "<AGENTOPS_API_KEY>" }
# codex mcp add agentops --env AGENTOPS_API_KEY='<AGENTOPS_API_KEY>' -- uv --directory path/to/your/main/directory run server.py~/.cursor/mcp.json
{
"mcpServers": {
"agentops": {
"command": "uv",
"args": [
"--directory",
"path/to/your/main/directory",
"run",
"server.py"
],
"env": {
"AGENTOPS_API_KEY": "<AGENTOPS_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agentops": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"path/to/your/main/directory",
"run",
"server.py"
],
"env": {
"AGENTOPS_API_KEY": "<AGENTOPS_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agentops": {
"command": "uv",
"args": [
"--directory",
"path/to/your/main/directory",
"run",
"server.py"
],
"env": {
"AGENTOPS_API_KEY": "<AGENTOPS_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agentops": {
"command": "uv",
"args": [
"--directory",
"path/to/your/main/directory",
"run",
"server.py"
],
"env": {
"AGENTOPS_API_KEY": "<AGENTOPS_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agentops": {
"command": "uv",
"args": [
"--directory",
"path/to/your/main/directory",
"run",
"server.py"
],
"env": {
"AGENTOPS_API_KEY": "<AGENTOPS_API_KEY>"
}
}
}
}需要的环境变量
AGENTOPS_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。