analytics
New Relic MCP Integration for Vercel AI SDK
Connect New Relic to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect New Relic to Vercel AI SDK
Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.
Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with
--write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.
New Relic MCP Config for Vercel AI SDK
Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
{
"mcpServers": {
"kosmokrator-newrelic": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=newrelic",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=newrelic --write=deny Why Use KosmoKrator Here
Expose only New Relic instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
New Relic Tools Visible to Vercel AI SDK
Vercel AI SDK sees stable MCP tool names generated from the New Relic integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__newrelic__newrelic_list_applications | newrelic.newrelic_list_applications | Read | List APM applications in the configured New Relic account. Returns application names, GUIDs, IDs, language, reporting status, and health status. |
integration__newrelic__newrelic_get_application | newrelic.newrelic_get_application | Read | Get details of a specific New Relic APM application by its application ID, including language, health status, and Apdex thresholds. |
integration__newrelic__newrelic_list_deployments | newrelic.newrelic_list_deployments | Read | List deployment markers for a New Relic APM application. Requires the application entity GUID. |
integration__newrelic__newrelic_create_deployment | newrelic.newrelic_create_deployment | Write | Record a new deployment marker in New Relic for a given application. This helps correlate deploys with performance changes. |
integration__newrelic__newrelic_list_alert_policies | newrelic.newrelic_list_alert_policies | Read | List alert policies in the configured New Relic account. Returns policy names, IDs, and incident preferences. |
integration__newrelic__newrelic_list_dashboards | newrelic.newrelic_list_dashboards | Read | List dashboards in the configured New Relic account. Returns dashboard titles, GUIDs, timestamps, and owner information. |
integration__newrelic__newrelic_get_current_user | newrelic.newrelic_get_current_user | Read | Get the profile of the currently authenticated New Relic user. Useful for verifying API credentials and retrieving account information. |