You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/index.ts
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ import { setTelemetryManager } from "./modules/eventQueue.js";
30
30
* @param options.enableReportMissing - Adds a "get_more_tools" tool that allows LLMs to automatically report missing functionality.
31
31
* @param options.enableTracing - Enables tracking of tool calls and usage patterns.
32
32
* @param options.enableToolCallContext - Injects a "context" parameter to existing tools to capture user intent.
33
+
* @param options.customContextDescription - Custom description for the injected context parameter. Only applies when enableToolCallContext is true. Use this to provide domain-specific guidance to LLMs about what context they should provide.
33
34
* @param options.identify - Async function to identify users and attach custom data to their sessions.
34
35
* @param options.redactSensitiveInformation - Function to redact sensitive data before sending to MCPCat.
35
36
* @param options.exporters - Configure telemetry exporters to send events to external systems. Available exporters:
@@ -76,6 +77,15 @@ import { setTelemetryManager } from "./modules/eventQueue.js";
76
77
*
77
78
* @example
78
79
* ```typescript
80
+
* // With custom context description
81
+
* mcpcat.track(mcpServer, "proj_abc123xyz", {
82
+
* enableToolCallContext: true,
83
+
* customContextDescription: "Explain why you're calling this tool and what business objective it helps achieve"
0 commit comments