Skip to main content
Glama

New Relic MCP Server

by cloudbring
rest-client.integration.test.ts1.29 kB
import { describe, expect, it } from 'vitest'; import { NewRelicRestClient } from '../../src/client/rest-client'; // Integration tests require real API keys. Each suite is skipped if // its corresponding env var is not present. // US: NEW_RELIC_API_KEY or NEW_RELIC_API_KEY_US // EU: NEW_RELIC_API_KEY_EU (EU-region account key required) const usKey = process.env.NEW_RELIC_API_KEY || process.env.NEW_RELIC_API_KEY_US; const euKey = process.env.NEW_RELIC_API_KEY_EU; const describeUS = usKey ? describe : describe.skip; const describeEU = euKey ? describe : describe.skip; describeUS('REST v2 integration (US region)', () => { it('GET /applications returns 200', async () => { const client = new NewRelicRestClient({ apiKey: usKey as string, region: 'US' }); const res = await client.get<Record<string, unknown>>('/applications'); expect(res.status).toBe(200); expect(typeof res.data).toBe('object'); }); }); describeEU('REST v2 integration (EU region)', () => { it('GET /applications returns 200', async () => { const client = new NewRelicRestClient({ apiKey: euKey as string, region: 'EU' }); const res = await client.get<Record<string, unknown>>('/applications'); expect(res.status).toBe(200); expect(typeof res.data).toBe('object'); }); });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cloudbring/newrelic-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server