Skip to content

Commit 5025422

Browse files
committed
fix: include is_remote property in MCP event payload
1 parent 5b233d8 commit 5025422

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/instrumentation.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { createRequire } from "module";
44
const require = createRequire(import.meta.url);
55
const packageJson = require("../../package.json");
66
import axios from "axios";
7+
import globalConfig from "../config.js";
78

89
interface MCPEventPayload {
910
event_type: string;
@@ -14,6 +15,7 @@ interface MCPEventPayload {
1415
success?: boolean;
1516
error_message?: string;
1617
error_type?: string;
18+
is_remote?: boolean;
1719
};
1820
}
1921

@@ -43,6 +45,7 @@ export function trackMCP(
4345
tool_name: toolName,
4446
mcp_client: mcpClient,
4547
success: isSuccess,
48+
is_remote: globalConfig.REMOTE_MCP,
4649
},
4750
};
4851

0 commit comments

Comments
 (0)