Preflight
New Relic MCP server for observing AI coding assistants (Claude Code, Cursor, Copilot, etc.)
Connector by newrelic-experimental · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/newrelic-experimental-preflight
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: monitoring-observability
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 25, 2026.
- Tools
- 39 read · 8 write · 2 delete
- Secrets
- 1 (API keys, tokens or passwords)
- Install scripts
- None found
- Runs as
- Node.js package
Tools by what they do 49
Read from the source code; the running server may list different tools.
Read 39 · Look things up without changing anything.
nr_observe_get_anti_patternsnr_observe_get_api_failuresnr_observe_get_budget_statusnr_observe_get_claudemd_impactnr_observe_get_collaboration_profilenr_observe_get_compute_wastenr_observe_get_confignr_observe_get_context_compositionnr_observe_get_context_efficiencynr_observe_get_context_trackingnr_observe_get_cost_breakdownnr_observe_get_cost_forecast
Show 27 more tools
nr_observe_get_cost_per_outcomenr_observe_get_cost_per_toolnr_observe_get_decision_treenr_observe_get_efficiency_scorenr_observe_get_git_efficiencynr_observe_get_instruction_driftnr_observe_get_latency_decompositionnr_observe_get_latency_percentilesnr_observe_get_model_recommendationnr_observe_get_model_usagenr_observe_get_personal_insightsnr_observe_get_platform_comparisonnr_observe_get_prompt_cache_healthnr_observe_get_quality_proxynr_observe_get_recommendationsnr_observe_get_retry_alertsnr_observe_get_session_historynr_observe_get_session_statsnr_observe_get_session_timelinenr_observe_get_task_completion_ratenr_observe_get_team_summarynr_observe_get_tool_selection_scorenr_observe_get_trendsnr_observe_get_turn_analysisnr_observe_get_weekly_summarynr_observe_get_workflow_tracenr_observe_health
Write 8 · Create, change, send or run things.
nr_observe_install_hooksnr_observe_mark_task_boundarynr_observe_report_feedbacknr_observe_report_session_endnr_observe_report_session_startnr_observe_report_tool_callnr_observe_send_digestnr_observe_subscribe_digest
Delete 2 · Delete, drop, revoke or wipe things.
nr_observe_report_tokensnr_observe_unsubscribe_digest
Secrets and settings it asks for
Secrets: values you paste in that let it act as you.
NEW_RELIC_LICENSE_KEY
Other settings (environment variables or headers).
NEW_RELIC_ACCOUNT_ID
Network hosts it talks to 37
agent-plugins.org· found in codeantigravity.google· found in codeapi.eu.newrelic.com· found in codeapi.jp.newrelic.com· found in codeapi.newrelic.com· found in codeapple.com· found in codeaws.amazon.com· found in codeaws.github.io· found in codeclaude.com· found in codecline.bot· found in codecodeload.github.com· found in codecontinue.dev· found in codecursor.com· found in codedocs.windsurf.com· found in codeexafunction.github.io· found in codefactory.ai· found in codegeminicli.com· found in codegit-scm.com· found in codegithub.com· found in codehooks.slack.com· found in codeinsights-collector.eu01.nr-data.net· found in codeinsights-collector.newrelic.com· found in codekilocode.ai· found in codekiro.dev· found in codemarketplace.visualstudio.com· found in codemetric-api.eu.newrelic.com· found in codemetric-api.newrelic.com· found in codenewrelic-experimental.github.io· found in codenewrelic.com· found in codeone.newrelic.com· found in code
Show 7 more hosts
opencode.ai· found in codeotlp.nr-data.net· found in codepi.dev· found in coderaw.githubusercontent.com· found in codestaging-insights-collector.newrelic.com· found in codestaging-metric-api.newrelic.com· found in codeunpkg.com· found in code
Files it touches
/dev/stdin/dev/tty/proc/version- Your home directory (~)
~/.newrelic-preflight~/.newrelic-preflight/dashboard.log
Tools (49)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
nr_observe_get_anti_patternsread-onlyGet detected anti-patterns (thrashing, re-reading, stuck loops, blind editing, over-delegation) for the most recent task.
nr_observe_get_api_failuresread-onlyGet API failure tracking: per-model reliability scorecards, tokens lost, cost impact, throttle alerts, and mean time to recovery. Failures are captured via Claude Code's StopFailure hook, so totalFailures/byErrorType/bySessionPhase reflect real observed failures. LIMITATION: token loss, recovery time, retry count, and totalRequests-derived fields (failureRate, throttleFrequency, p95LatencyMs) remain unavailable or always zero -- StopFailure carries no token/retry data, and nothing currently calls recordRequest() (see the note field in the response).
nr_observe_get_budget_statusread-onlyGet current AI spend vs. configured budget caps (session, daily, weekly). Returns remaining budget, % used, and any threshold alerts fired this session.
nr_observe_get_claudemd_impactread-onlyGet the impact report for the most recent change to the project's instruction file (CLAUDE.md, or the active platform's equivalent — e.g. .cursorrules on Cursor): before/after comparison with deltas and verdict.
nr_observe_get_collaboration_profileread-onlyGet a developer's collaboration profile: specificity, autonomy, correction rate, task complexity, and classification.
nr_observe_get_compute_wasteread-onlyGet compute waste summary: total tokens wasted on retried tool calls and anti-pattern activity (stuck loops, redundant reads, thrashing). Includes per-pattern breakdown and a status assessment (clean / moderate / needs_attention).
nr_observe_get_configread-onlyShow the current server configuration (sensitive fields masked): mode, developer, account, region, storage path, dashboard URL, and config file location. Use to diagnose misconfiguration without exposing credentials.
nr_observe_get_context_compositionread-onlyGet per-turn token breakdown by category (system prompt, conversation history, tool results, injected files). Shows context window fill percentage and dominance alerts. LIMITATION: system_prompt and injected_file_content are always 0 -- the model API's aggregate usage counts have no breakdown by content category (see the note field in the response).
nr_observe_get_context_efficiencyread-onlyGet context window efficiency metrics: unique vs. repeated file reads, repeated-read ratio, and top re-read files. A high ratio suggests the model is losing context.
nr_observe_get_context_trackingread-onlyGet context window tracking: per-turn token growth, category breakdown (System/Tools/User/Assistant), fill percentage, and per-tool output contribution. Shows which tools consume the most context.
nr_observe_get_cost_breakdownread-onlyGet a breakdown of session costs by task, model, and efficiency metrics like cost per line of code. Cost figures are Preflight's own list-price estimate unless costRateMultiplier/dataResidencyPremium are configured for an org's contracted rate — see rate_multiplier_applied in the response.
nr_observe_get_cost_forecastread-onlyProject AI spending forward based on current session rate. Returns forecast cost for end-of-day, end-of-week, and end-of-session (8h), with a confidence note. When this session was resumed after being stale, also includes resumeContext: Claude Code's own report of how long it had been and its estimated cost to re-warm the prompt cache — context for a cost spike the rate-based forecast alone would not explain.
nr_observe_get_cost_per_outcomeread-onlyGet cost breakdown by outcome type (bug fix, feature, refactor, etc.) with waste ratio and ROI estimate. When session history is available, each saved session counts as one task, and the current session is included as of its last 30s checkpoint.
nr_observe_get_cost_per_toolread-onlyCost attribution per tool type — approximate, based on turn-level token correlation. Shows which tools cost the most and average cost per call. Also breaks Skill calls down per skill in costBySkill (calls, estimated cost and tokens, total duration).
nr_observe_get_decision_treeread-onlyGet decision branch analysis: reasoning and action extraction per turn for triggered branches (recovery, retry, delegation), with outcome tagging. Includes post-mortem of failure chains and longest failure streak. LIMITATION: the reasoning field is the model's own thinking/text output only when NEW_RELIC_AI_MCP_RECORD_CONTENT is enabled and the model exposes plaintext reasoning; otherwise it falls back to a fixed rule-based label. Branches are only recorded on 3 narrow triggers rather than every turn (see the note field in the response).
Show 34 more tools
nr_observe_get_efficiency_scoreread-onlyGet the AI coding efficiency score for the most recent task or the session-wide rolling average.
nr_observe_get_git_efficiencyread-onlyGet Git workflow efficiency metrics: merge conflicts, aborted operations, force pushes, stale branch detection, and actionable suggestions to reduce Git friction.
nr_observe_get_instruction_driftread-onlyGet instruction/prompt drift analysis: tracks how the project's instruction file (CLAUDE.md, or the active platform's equivalent) or system prompt changes correlate with session outcomes (success rate, token usage, thrashing).
nr_observe_get_latency_decompositionread-onlyGet latency decomposition: how much time is spent in LLM API calls vs tool execution vs overhead, with p50/p95 percentiles for each component.
nr_observe_get_latency_percentilesread-onlyGet p50/p95/p99 latency percentiles for tool calls, broken down by tool type. Use to identify which tools are slowest in the current session.
nr_observe_get_model_recommendationread-onlyGet a data-driven model recommendation ranked by historical efficiency score, cost, and task success rate across past sessions, both overall and broken down by task outcome type (bug_fix, feature, refactor, investigation, configuration, documentation, failed_attempt).
nr_observe_get_model_usageread-onlyGet per-model usage statistics: request counts, token totals (input, output, thinking, cache read, cache creation), cost, and cost per million billed tokens. Identifies the most-used model, plus any PostModelSwitch events (deliberate /model changes, automatic fallbacks, or resume) recorded this session.
nr_observe_get_personal_insightsread-onlyReturns a narrative coaching report comparing this week's personal AI coding metrics against your historical baseline. Includes highlights, regressions, streaks, and a top recommendation. Requires at least 2 weeks of session history. Returns status: "insufficient_data" with a message when history is too sparse.
nr_observe_get_platform_comparisonread-onlyCompare AI coding assistant platforms side-by-side on a given metric: efficiency, cost, task_success, tool_calls, or error_rate. Each platform bucket is tagged with visibility_level (full-hooks, self-reported, or mcp-tools-only) — platforms differ in how much built-in tool activity Preflight can observe, so a caveat is included when compared platforms span more than one level.
nr_observe_get_prompt_cache_healthread-onlyGet prompt cache health: hit rate, savings, and a concrete recommendation for improving cache efficiency. A high hit rate means more context is being served cheaply from cache rather than priced as fresh input.
nr_observe_get_quality_proxyread-onlyGet quality proxy metrics: diff apply rate, test pass rate, backtrack count, self-correction count, and degradation detection over the session lifetime.
nr_observe_get_recommendationsread-onlyGet personalized optimization recommendations covering cost, efficiency, prompt engineering, CLAUDE.md impact, and model selection.
nr_observe_get_retry_alertsread-onlyGet thrashing/retry detection alerts: repeated failures or highly similar inputs within a sliding window. Identifies when the agent is stuck in a loop.
nr_observe_get_session_historyread-onlyGet a list of past sessions with summary metrics (efficiency, cost, tool calls, outcome).
nr_observe_get_session_statsread-onlyGet current session observability metrics: tool call counts, success rates, file access stats, and duration summaries.
nr_observe_get_session_timelineread-onlyGet an ordered list of recent tool calls with timestamps, names, durations, and success/failure status.
nr_observe_get_task_completion_rateread-onlyGet task lifecycle metrics: completed task count, average task duration, and average tool calls per task.
nr_observe_get_team_summaryread-onlyGet aggregated AI coding cost and efficiency metrics for all developers in the configured team, queried via New Relic NRQL. Requires teamId to be set in config.
nr_observe_get_tool_selection_scoreread-onlyGet tool selection quality score: evaluates efficiency of tool usage by detecting redundant reads, repeated failures, and unused large outputs. Score 0-1 where 1 is perfect.
nr_observe_get_trendsread-onlyGet trend data for a metric over time: weekly efficiency, cost, task success rate, or tool call counts.
nr_observe_get_turn_analysisread-onlyConversation turn analysis — groups tool calls by AI response, shows parallelism and turn patterns.
nr_observe_get_weekly_summaryread-onlyGet a weekly summary report with per-developer breakdown, cost, efficiency, and anti-pattern counts.
nr_observe_get_workflow_traceread-onlyGet the complete tool call trace for a task, including sequence, duration, and anti-pattern/efficiency analysis.
nr_observe_healthread-onlyCheck server health: version, uptime, session ID, and connection timestamp. Also reports whether telemetry event sends are succeeding. Use when the MCP connection feels stale or tools are behaving unexpectedly.
nr_observe_install_hooksInstall PreToolUse, PostToolUse, PermissionRequest, and PermissionDenied monitoring hooks into ~/.claude/settings.json. Call when nr_observe_health reports hooks_installed: false. Requires a Claude Code restart to activate monitoring.
nr_observe_mark_task_boundaryExplicitly mark the end of the current task (a discrete unit of work between user instructions). Call this once you finish responding to a user request. This is the universal task-boundary signal — call it on any platform, but it's the *only* boundary signal on platforms other than Claude Code (which also infers boundaries from its own AskUserQuestion/TaskUpdate tool calls). Improves the accuracy of anti-pattern, efficiency-score, and cost-per-outcome metrics, which all segment activity by task.
nr_observe_report_feedbackRecord user quality feedback for a task. Helps correlate efficiency metrics with perceived quality.
nr_observe_report_session_endReport that the current AI coding session has ended. Call this at the end of a session to finalize session metrics.
nr_observe_report_session_startReport that a new AI coding session has begun. Call this at the start of a session to initialize session metadata for observability.
nr_observe_report_tokensReport token usage for cost tracking. Call periodically to enable accurate cost metrics. Provide the model name and token counts from the most recent API response.
nr_observe_report_tool_callReport a tool call event for observability. Use this to report non-MCP tool calls (file reads, writes, terminal commands) that your AI assistant performs. MCP tool calls are captured automatically via the proxy.
nr_observe_send_digestGenerate the current weekly AI coding summary and POST it to the configured Slack webhook immediately.
nr_observe_subscribe_digestRegister a Slack webhook URL to receive weekly AI coding cost and efficiency summaries.
nr_observe_unsubscribe_digestRemove the registered Slack webhook for weekly digests.
Signals
- Stars
- 65
- Forks
- 27
- Open issues
- 119
- Contributors
- 8
- Weekly downloads
- 424
- Last commit
- Oct 23, 2026 (6 days ago)
- Last release
- Oct 14, 2026 (15 days ago)
- Last package publish
- Oct 14, 2026 (15 days ago)
From GitHub (fetched Oct 24, 2026) and the package registry.
Details
- Registry name
io.github.newrelic-experimental/preflight- Version
- 1.67.2
- Auth
- API key
- Packages
- npm @newrelic/preflight
- License
- Apache-2.0
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
Cite this page
Preflight MCP server. Agent Mart. https://agentmart.dev/connectors/newrelic-experimental-preflight (last updated 2026-10-24)