New Relic Preflight

官方 New Relic 可观测性

让智能体使用 New Relic Preflight 追踪 AI 编程助手的操作、成本和效率。 摘要由 AI Index 撰写。

Registry 描述:New Relic MCP server for observing AI coding assistants (Claude Code, Cursor, Copilot, etc.)

本地安装包(npm)

添加到你的客户端

把 New Relic Preflight MCP 服务器添加到 Claude Code

  1. 运行命令

    claude mcp add new-relic-preflight -- npx -y @newrelic/preflight
  2. 填写取值 ↓

  3. 确认已连接

如果文件里已有其他服务器,把这一项加到已有的对象里。 确认是否已连接:重启或重新加载客户端,在它的 MCP 服务器列表里找到 new-relic-preflight。需要登录的服务器会在第一次使用时打开登录。

需要填写的值

必填项以 <NAME> 占位符出现在片段里;可选项按同样方式添加。说明来自服务器在 Registry 里的条目。

  • <NEW_RELIC_LICENSE_KEY> 环境变量 可选 · 密钥

    New Relic ingest license key. Optional: while NR_AI_MODE is unset or local, Preflight runs local-only with the dashboard at localhost:7777. A license key with no mode set by NR_AI_MODE or the config file makes the server fail to start.

  • <NR_AI_MODE> 环境变量 可选

    Where telemetry goes: "cloud" (New Relic only), "both" (New Relic plus the local dashboard) or "local". Required when NEW_RELIC_LICENSE_KEY is set, unless the config file sets a mode. cloud turns off the local dashboard and local alerts.

  • <NEW_RELIC_ACCOUNT_ID> 环境变量 可选

    New Relic account id. Required when NR_AI_MODE is cloud or both; also used for dashboard and alert deployment.

客户端兼容性

按传输方式判断:客户端文档列出的传输方式里是否有这个服务器提供的。不涉及登录等其他要求。

来源

This data comes from the Official MCP Registry.