Skip to content
Agentmart
Submit a tool

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

IndexedApache-2.0Local (stdio)★ 65
Write a review

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.

We use your email only for this newsletter. Privacy

About

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

Use cases: monitoring-observability

No 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_patterns
  • nr_observe_get_api_failures
  • nr_observe_get_budget_status
  • nr_observe_get_claudemd_impact
  • nr_observe_get_collaboration_profile
  • nr_observe_get_compute_waste
  • nr_observe_get_config
  • nr_observe_get_context_composition
  • nr_observe_get_context_efficiency
  • nr_observe_get_context_tracking
  • nr_observe_get_cost_breakdown
  • nr_observe_get_cost_forecast
Show 27 more tools
  • nr_observe_get_cost_per_outcome
  • nr_observe_get_cost_per_tool
  • nr_observe_get_decision_tree
  • nr_observe_get_efficiency_score
  • nr_observe_get_git_efficiency
  • nr_observe_get_instruction_drift
  • nr_observe_get_latency_decomposition
  • nr_observe_get_latency_percentiles
  • nr_observe_get_model_recommendation
  • nr_observe_get_model_usage
  • nr_observe_get_personal_insights
  • nr_observe_get_platform_comparison
  • nr_observe_get_prompt_cache_health
  • nr_observe_get_quality_proxy
  • nr_observe_get_recommendations
  • nr_observe_get_retry_alerts
  • nr_observe_get_session_history
  • nr_observe_get_session_stats
  • nr_observe_get_session_timeline
  • nr_observe_get_task_completion_rate
  • nr_observe_get_team_summary
  • nr_observe_get_tool_selection_score
  • nr_observe_get_trends
  • nr_observe_get_turn_analysis
  • nr_observe_get_weekly_summary
  • nr_observe_get_workflow_trace
  • nr_observe_health

Write 8 · Create, change, send or run things.

  • nr_observe_install_hooks
  • nr_observe_mark_task_boundary
  • nr_observe_report_feedback
  • nr_observe_report_session_end
  • nr_observe_report_session_start
  • nr_observe_report_tool_call
  • nr_observe_send_digest
  • nr_observe_subscribe_digest

Delete 2 · Delete, drop, revoke or wipe things.

  • nr_observe_report_tokens
  • nr_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 code
  • antigravity.google · found in code
  • api.eu.newrelic.com · found in code
  • api.jp.newrelic.com · found in code
  • api.newrelic.com · found in code
  • apple.com · found in code
  • aws.amazon.com · found in code
  • aws.github.io · found in code
  • claude.com · found in code
  • cline.bot · found in code
  • codeload.github.com · found in code
  • continue.dev · found in code
  • cursor.com · found in code
  • docs.windsurf.com · found in code
  • exafunction.github.io · found in code
  • factory.ai · found in code
  • geminicli.com · found in code
  • git-scm.com · found in code
  • github.com · found in code
  • hooks.slack.com · found in code
  • insights-collector.eu01.nr-data.net · found in code
  • insights-collector.newrelic.com · found in code
  • kilocode.ai · found in code
  • kiro.dev · found in code
  • marketplace.visualstudio.com · found in code
  • metric-api.eu.newrelic.com · found in code
  • metric-api.newrelic.com · found in code
  • newrelic-experimental.github.io · found in code
  • newrelic.com · found in code
  • one.newrelic.com · found in code
Show 7 more hosts
  • opencode.ai · found in code
  • otlp.nr-data.net · found in code
  • pi.dev · found in code
  • raw.githubusercontent.com · found in code
  • staging-insights-collector.newrelic.com · found in code
  • staging-metric-api.newrelic.com · found in code
  • unpkg.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-only

    Get detected anti-patterns (thrashing, re-reading, stuck loops, blind editing, over-delegation) for the most recent task.

  • nr_observe_get_api_failuresread-only

    Get 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-only

    Get 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-only

    Get 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-only

    Get a developer's collaboration profile: specificity, autonomy, correction rate, task complexity, and classification.

  • nr_observe_get_compute_wasteread-only

    Get 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-only

    Show 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-only

    Get 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-only

    Get 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-only

    Get 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-only

    Get 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-only

    Project 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-only

    Get 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-only

    Cost 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-only

    Get 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-only

    Get the AI coding efficiency score for the most recent task or the session-wide rolling average.

  • nr_observe_get_git_efficiencyread-only

    Get 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-only

    Get 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-only

    Get 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-only

    Get 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-only

    Get 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-only

    Get 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-only

    Returns 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-only

    Compare 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-only

    Get 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-only

    Get 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-only

    Get personalized optimization recommendations covering cost, efficiency, prompt engineering, CLAUDE.md impact, and model selection.

  • nr_observe_get_retry_alertsread-only

    Get 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-only

    Get a list of past sessions with summary metrics (efficiency, cost, tool calls, outcome).

  • nr_observe_get_session_statsread-only

    Get current session observability metrics: tool call counts, success rates, file access stats, and duration summaries.

  • nr_observe_get_session_timelineread-only

    Get an ordered list of recent tool calls with timestamps, names, durations, and success/failure status.

  • nr_observe_get_task_completion_rateread-only

    Get task lifecycle metrics: completed task count, average task duration, and average tool calls per task.

  • nr_observe_get_team_summaryread-only

    Get 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-only

    Get 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-only

    Get trend data for a metric over time: weekly efficiency, cost, task success rate, or tool call counts.

  • nr_observe_get_turn_analysisread-only

    Conversation turn analysis — groups tool calls by AI response, shows parallelism and turn patterns.

  • nr_observe_get_weekly_summaryread-only

    Get a weekly summary report with per-developer breakdown, cost, efficiency, and anti-pattern counts.

  • nr_observe_get_workflow_traceread-only

    Get the complete tool call trace for a task, including sequence, duration, and anti-pattern/efficiency analysis.

  • nr_observe_healthread-only

    Check 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_hooks

    Install 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_boundary

    Explicitly 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_feedback

    Record user quality feedback for a task. Helps correlate efficiency metrics with perceived quality.

  • nr_observe_report_session_end

    Report that the current AI coding session has ended. Call this at the end of a session to finalize session metrics.

  • nr_observe_report_session_start

    Report 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_tokens

    Report 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_call

    Report 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_digest

    Generate the current weekly AI coding summary and POST it to the configured Slack webhook immediately.

  • nr_observe_subscribe_digest

    Register a Slack webhook URL to receive weekly AI coding cost and efficiency summaries.

  • nr_observe_unsubscribe_digest

    Remove 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
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)