原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Preflight

作者:newrelic-experimental版本 1.71.0i★ –i在你的电脑上运行
注册名称io.github.newrelic-experimental/preflight

安装

概览

作者提供的说明(英文原文)

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

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:NEW_RELIC_LICENSE_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: NEW_RELIC_LICENSE_KEY, NR_AI_MODE, NEW_RELIC_ACCOUNT_ID

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "preflight": {
      "command": "npx",
      "args": [
        "-y",
        "@newrelic/preflight"
      ],
      "env": {
        "NEW_RELIC_LICENSE_KEY": "your-value",
        "NR_AI_MODE": "your-value",
        "NEW_RELIC_ACCOUNT_ID": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add preflight --env NEW_RELIC_LICENSE_KEY=your-value --env NR_AI_MODE=your-value --env NEW_RELIC_ACCOUNT_ID=your-value -- npx -y @newrelic/preflight

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "preflight": {
      "command": "npx",
      "args": [
        "-y",
        "@newrelic/preflight"
      ],
      "env": {
        "NEW_RELIC_LICENSE_KEY": "your-value",
        "NR_AI_MODE": "your-value",
        "NEW_RELIC_ACCOUNT_ID": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "preflight": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@newrelic/preflight"
      ],
      "env": {
        "NEW_RELIC_LICENSE_KEY": "your-value",
        "NR_AI_MODE": "your-value",
        "NEW_RELIC_ACCOUNT_ID": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • NEW_RELIC_LICENSE_KEY 机密 env
    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…
  • NR_AI_MODE env
    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…
  • NEW_RELIC_ACCOUNT_ID env
    New Relic account id. Required when NR_AI_MODE is cloud or both; also used for dashboard and alert deployment.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 newrelic-experimental 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32708 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32708 个服务器的 92% 更新
  • 基础检查结果等于或优于此分类中其他 32708 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Preflight 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:NEW_RELIC_LICENSE_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.71.0)于3天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, OpenTakeoff

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

OpenTakeoff

作者:Kentucky-ai

Construction takeoff for AI agents: load plans, set scale, measure, count, export with provenance.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Preflight Observability for AI Coding Assistants

Docs • What's New • Examples • Community • Contributing


Why Your AI Tool Needs Observability

Your AI coding assistant makes hundreds of decisions every session — what to read, what to edit, when to run commands. But you can't see any of it. You know it was fast, but was it _efficient_? You got a PR merged, but how much did it cost? You fixed a bug, but did it get stuck in a loop first?

Preflight is observability for agentic coding — the actions, cost, and efficiency of your AI coding assistant as it works. See exactly what's happening, how much it costs, and where your AI is wasting time.

Local-first by design. Preflight runs entirely on your machine and sends your data nowhere by default. A live dashboard at localhost:7777 shows your sessions in real time, fully offline. Connect a New Relic account only when you want more — team rollups, alerting, and cross-session history. You choose: local-only, New Relic, or both.


Demo

See cost breakdown, efficiency scoring, anti-patterns, and live session tracking in action.


What You Get

Visibility
  • Every action captured — file reads, edits, commands, searches
  • Live session dashboard — see what's happening right now
  • Historical trends — analyze patterns over weeks and months
Cost Control
  • USD spend tracking — per session, day, and week
  • Per-model and cache breakdown — know which models cost most and how efficiently context is reused
  • Budget alerts — get notified before you overspend
  • Forecasting — project monthly burn rate
Efficiency Insights
  • Efficiency score — 0–100 score per task, based on how directly the AI worked
  • Anti-pattern detection — catches re-reads, blind edits, stuck loops
  • Personalized recommendations — optimize your AI workflow
  • Weekly coaching reports — narrative analysis vs. your historical baseline
Dashboards
  • Local dashboard — live session view at localhost:7777, no account required
  • 8 pre-built New Relic dashboards — deploy in seconds _(New Relic mode)_:
  • Overview — session stats, cost summary, top tools
  • Personal — 30-day self-reflection scoped to you
  • Session Detail — deep-dive into a single session's tool calls
  • Team View — aggregated cost and efficiency across developers
  • Manager View — high-level team metrics, no tool-call content
  • Adoption & Cost — adoption momentum, spend, skill and MCP usage, and per-developer outcomes for engineering managers
  • Platform Comparison — Claude Code vs. Cursor vs. Windsurf, etc.
  • Security Audit — audit trail of sensitive file access

Quick Start

1. Install
npm install -g @newrelic/preflight

Using [Smithery](https://smithery.ai)? Installing Preflight from the Smithery MCP registry wires up the MCP server for you, but Smithery has no mechanism to write Claude Code hooks. After install, either run preflight install in a terminal, or set "allowHeadlessInstall": true in your Preflight config (or NEW_RELIC_AI_ALLOW_HEADLESS_INSTALL=true) and ask Claude Code to call the nr_observe_install_hooks MCP tool. The tool refuses by default, because any connected MCP client can call it. With the flag on, it offers to do this automatically once nr_observe_health reports setup_required: true. Then restart Claude Code to activate monitoring.

2. Run setup
preflight setup

The wizard defaults to local mode — press Enter through the prompts and you're set. It wires Preflight into your AI tool (hooks + MCP server) and writes config to ~/.newrelic-preflight/. Takes under a minute, no account required.

Using GitHub Copilot? The wizard also asks to install Copilot hooks — saying yes configures both the Copilot CLI and VS Code Copilot Chat automatically (hooks, MCP registration, and the fix for VS Code's hook double-capture), so Copilot gets the same tool-call and cost metrics Claude Code does. Run it standalone anytime with preflight install --copilot. See docs/ADAPTERS.md for details.

When prompted, pick a mode:

ModeWhat it doesNew Relic account?
local _(default)_Everything stays on your machine; live dashboard at localhost:7777Not needed
cloudShips telemetry to New RelicRequired
bothLocal dashboard and New RelicRequired
3. Start coding

Restart your AI tool — hooks and the MCP server load at session start. Every tool call is captured automatically. Open http://localhost:7777 to watch your session live.

Using Kiro? Add Preflight as a Kiro Power for the

nr_observe_* query tools — see the doc for install steps and how to add

automatic tool-call capture on top.

Using Claude Code? You can skip the npm install above and add Preflight as a Claude Code plugin instead:

`

/plugin marketplace add newrelic-experimental/preflight

/plugin install newrelic-preflight@newrelic-preflight-marketplace

`

Other ways to install

Cursor — Add to Cursor installs the MCP server via a one-click deeplink; run preflight setup afterwards for hook capture.

Homebrew (macOS):

brew tap newrelic-experimental/preflight

brew trust newrelic-experimental/preflight brew install preflight

Run preflight setup afterwards for hook capture.


Works With

Claude Code • Amazon Kiro • Amazon Q Developer CLI • Factory Droid • OpenAI Codex • opencode • Kilo Code • Pi • GitHub Copilot • GitHub Copilot SDK • GitHub Copilot app • Google Gemini CLI • Cursor • Windsurf • Google Antigravity • Zed • Continue.dev • Cline

Coverage isn't uniform — some platforms capture every built-in tool call, others (Zed, Continue.dev, Cline) only see calls routed to Preflight's own MCP tools. See ADAPTERS.md for what each platform can and can't observe, and per-platform setup steps.


Connect New Relic (optional)

Local mode is fully featured on its own. Connect a New Relic account to unlock:

  • Team & manager dashboards across multiple developers
  • Alerting on cost spikes, low efficiency, and stuck loops
  • Cross-session history, trends, and weekly coaching reports

Re-run preflight setup and choose cloud or both, or configure it non-interactively:

preflight install \

--mode cloud \ --license-key YOUR_LICENSE_KEY \ --account-id YOUR_ACCOUNT_ID

EU accounts add --eu. FedRAMP accounts add --fedramp. Japan accounts add --jp.

A key passed with --license-key is visible to every local user through ps. For scripts, read it from a file instead (--license-key-file ~/.nr-key, which warns if other users can read the file) or set NEW_RELIC_LICENSE_KEY and NEW_RELIC_ACCOUNT_ID in the environment. The flag wins over the file, and the file wins over the environment. The environment is used only when config.json has no stored licenseKey or licenseKeyCommand, so a shell that already exports these variables for an APM agent never overwrites your stored key. To replace a stored key, pass --license-key-file. With --copilot, the key is still handed to copilot mcp add as an argument, so it is briefly visible in ps for that one call.

Then deploy the prebuilt dashboards:

NEW_RELIC_API_KEY=NRAK-... NEW_RELIC_ACCOUNT_ID=12345 \

preflight deploy-dashboards --all

You'll need a license key (telemetry ingest) and your account ID, plus a user API key (NRAK-…) to deploy dashboards and alerts. See ADVANCED.md for alerts, OTLP export to other backends, and Terraform.

No dashboard until you run `deploy-dashboards`. Cloud mode ships telemetry to New Relic as soon as it's configured, but nothing creates a dashboard automatically — that's the separate step above, and it needs a different credential (a user API key, not your license key). Until you run it, there's no UI to look at. In the meantime, query the raw events directly in New Relic's Query Builder, e.g.:

`sql

SELECT * FROM AiToolCall SINCE 1 hour ago

`

Once deploy-dashboards succeeds, find the dashboards under your New Relic account's Dashboards section.

Data ingest note: Telemetry sent to New Relic counts against your account's data ingest. On paid plans, standard ingest rates apply. Monitor your usage under NR One → Data Management → Data Ingestion.


Requirements

Required
  • Node.js v22 or higher (get it or use nvm)
  • An AI coding tool (Claude Code recommended for deepest integration)
Optional
  • New Relic account — only for cloud/both mode. Skip it to run local-only (the default).
  • User API key (NRAK-…) — only needed to deploy dashboards and alerts

Other Commands

preflight doctor               # Run 10 diagnostic checks and print actionable fix commands

preflight validate # Check config for syntax errors and unknown keys preflight update # Pull latest version, rebuild, and offer to restart a running dashboard (source installs only — npm installs: npm install -g @newrelic/preflight@latest; Homebrew installs: brew upgrade preflight) preflight local # List running --local dashboard processes and live --stdio MCP processes preflight local --clean # Kill orphaned --local processes and --stdio processes with a missing binary (prompts for confirmation) preflight uninstall # Remove hooks and MCP config (prompts with a summary first) preflight uninstall --yes # Skip the confirmation prompt (for scripts and CI) preflight uninstall --daemon # Remove only the background dashboard daemon

Add --project to install/uninstall to scope changes to the current directory only.

WSL users: preflight setup will ask which Claude Code you're running. You can also set it explicitly:

  • --windows-cc — Windows Claude Code (the desktop app); uses wsl.exe hooks and Windows paths
  • --linux-cc — Linux Claude Code installed via npm inside WSL

Documentation

  • ADVANCED.md — Configuration, dashboards, alerts, Terraform
  • SCORECARDS.md — New Relic Scorecard rules for team attribution
  • ARCHITECTURE.md — Data flow, component reference, and operating modes
  • ADAPTERS.md — Per-platform integration mechanism, setup steps, and known gaps
  • [**FLEET_

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx