Observability for AI coding assistants — cost tracking, efficiency scoring, and anti-pattern detection for Claude Code, Cursor, Copilot, and more. Local-first; New Relic optional.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add preflight --env NEW_RELIC_LICENSE_KEY='<NEW_RELIC_LICENSE_KEY>' -- npx -y @newrelic/preflight~/.codex/config.toml
[mcp_servers.preflight]
command = "npx"
args = ["-y", "@newrelic/preflight"]
env = { NEW_RELIC_LICENSE_KEY = "<NEW_RELIC_LICENSE_KEY>" }
# codex mcp add preflight --env NEW_RELIC_LICENSE_KEY='<NEW_RELIC_LICENSE_KEY>' -- npx -y @newrelic/preflight~/.cursor/mcp.json
{
"mcpServers": {
"preflight": {
"command": "npx",
"args": [
"-y",
"@newrelic/preflight"
],
"env": {
"NEW_RELIC_LICENSE_KEY": "<NEW_RELIC_LICENSE_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"preflight": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@newrelic/preflight"
],
"env": {
"NEW_RELIC_LICENSE_KEY": "<NEW_RELIC_LICENSE_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"preflight": {
"command": "npx",
"args": [
"-y",
"@newrelic/preflight"
],
"env": {
"NEW_RELIC_LICENSE_KEY": "<NEW_RELIC_LICENSE_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"preflight": {
"command": "npx",
"args": [
"-y",
"@newrelic/preflight"
],
"env": {
"NEW_RELIC_LICENSE_KEY": "<NEW_RELIC_LICENSE_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"preflight": {
"command": "npx",
"args": [
"-y",
"@newrelic/preflight"
],
"env": {
"NEW_RELIC_LICENSE_KEY": "<NEW_RELIC_LICENSE_KEY>"
}
}
}
}Environment variables
NEW_RELIC_LICENSE_KEY
Replace the placeholders with your own credentials and keep them out of version control.