Skip to content

Commit f8d499f

Browse files
committed
fix: export MCPAgentExecutionEventData as type export
Interfaces are compile-time only and cannot be exported as runtime values. Using 'export type' prevents module resolution errors when running examples with tsx.
1 parent fff4cbb commit f8d499f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/mcp-use/src/telemetry/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Telemetry } from './telemetry.js'
22

3-
export { BaseTelemetryEvent, MCPAgentExecutionEvent, MCPAgentExecutionEventData } from './events.js'
3+
export { BaseTelemetryEvent, MCPAgentExecutionEvent } from './events.js'
4+
export type { MCPAgentExecutionEventData } from './events.js'
45
export { Telemetry } from './telemetry.js'
56
export { extractModelInfo, getModelName, getModelProvider, getPackageVersion } from './utils.js'
67

0 commit comments

Comments
 (0)