From 50254221ca14ef4fb28d32ec8f6ae0fcc380f59d Mon Sep 17 00:00:00 2001 From: tech-sushant Date: Wed, 20 Aug 2025 12:32:13 +0530 Subject: [PATCH] fix: include is_remote property in MCP event payload --- src/lib/instrumentation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/instrumentation.ts b/src/lib/instrumentation.ts index 59e59244..080d0dc3 100644 --- a/src/lib/instrumentation.ts +++ b/src/lib/instrumentation.ts @@ -4,6 +4,7 @@ import { createRequire } from "module"; const require = createRequire(import.meta.url); const packageJson = require("../../package.json"); import axios from "axios"; +import globalConfig from "../config.js"; interface MCPEventPayload { event_type: string; @@ -14,6 +15,7 @@ interface MCPEventPayload { success?: boolean; error_message?: string; error_type?: string; + is_remote?: boolean; }; } @@ -43,6 +45,7 @@ export function trackMCP( tool_name: toolName, mcp_client: mcpClient, success: isSuccess, + is_remote: globalConfig.REMOTE_MCP, }, };