@ctxprotocol/sdk 0.11.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -363,6 +363,13 @@ interface SearchOptions {
363
363
  excludeLatencyClasses?: McpToolLatencyClass[];
364
364
  /** Convenience switch to exclude slow methods in query mode */
365
365
  excludeSlow?: boolean;
366
+ /**
367
+ * Restrict discovery to the caller's favorite tools.
368
+ * - `true`: force favorites-only discovery for this request
369
+ * - `false`: force unrestricted discovery for this request
370
+ * - omitted: use the account-level default from Context settings
371
+ */
372
+ favoritesOnly?: boolean;
366
373
  }
367
374
  /**
368
375
  * Options for updating a tool listing via `client.developer.updateTool()`.
@@ -623,6 +630,14 @@ interface QueryOptions {
623
630
  * (Manual Mode).
624
631
  */
625
632
  tools?: string[];
633
+ /**
634
+ * Restrict auto-discovery to the caller's favorite tools.
635
+ * Ignored when `tools` is provided because manual tool selection wins.
636
+ * - `true`: force favorites-only discovery for this request
637
+ * - `false`: force unrestricted discovery for this request
638
+ * - omitted: use the account-level default from Context settings
639
+ */
640
+ favoritesOnly?: boolean;
626
641
  /**
627
642
  * Resume a prior durable query attempt from its latest checkpoint.
628
643
  * Cannot be combined with `tools` or `forkFrom`.
@@ -849,6 +864,25 @@ interface QueryDeveloperTraceSummary {
849
864
  loopCount?: number;
850
865
  [key: string]: unknown;
851
866
  }
867
+ /**
868
+ * Full tool call record (untruncated) for debugging.
869
+ */
870
+ interface QueryDeveloperTraceToolCall {
871
+ toolId?: string;
872
+ toolName: string;
873
+ args?: unknown;
874
+ result: unknown;
875
+ }
876
+ /**
877
+ * MCP method schema exposed in the developer trace.
878
+ */
879
+ interface QueryDeveloperTraceToolSchema {
880
+ serverName: string;
881
+ toolName: string;
882
+ description: string;
883
+ inputSchema?: Record<string, unknown>;
884
+ outputSchema?: Record<string, unknown>;
885
+ }
852
886
  /**
853
887
  * Developer Mode trace payload returned per query response (opt-in).
854
888
  */
@@ -859,6 +893,15 @@ interface QueryDeveloperTrace {
859
893
  query?: string;
860
894
  source?: string;
861
895
  diagnostics?: QueryDeveloperTraceDiagnostics;
896
+ initialCode?: string;
897
+ finalCode?: string;
898
+ executionTrace?: unknown[];
899
+ executionProgram?: unknown;
900
+ attemptCount?: number;
901
+ executionSuccess?: boolean;
902
+ executionResult?: unknown;
903
+ toolCallHistory?: QueryDeveloperTraceToolCall[];
904
+ toolSchemas?: QueryDeveloperTraceToolSchema[];
862
905
  [key: string]: unknown;
863
906
  }
864
907
  /**
@@ -363,6 +363,13 @@ interface SearchOptions {
363
363
  excludeLatencyClasses?: McpToolLatencyClass[];
364
364
  /** Convenience switch to exclude slow methods in query mode */
365
365
  excludeSlow?: boolean;
366
+ /**
367
+ * Restrict discovery to the caller's favorite tools.
368
+ * - `true`: force favorites-only discovery for this request
369
+ * - `false`: force unrestricted discovery for this request
370
+ * - omitted: use the account-level default from Context settings
371
+ */
372
+ favoritesOnly?: boolean;
366
373
  }
367
374
  /**
368
375
  * Options for updating a tool listing via `client.developer.updateTool()`.
@@ -623,6 +630,14 @@ interface QueryOptions {
623
630
  * (Manual Mode).
624
631
  */
625
632
  tools?: string[];
633
+ /**
634
+ * Restrict auto-discovery to the caller's favorite tools.
635
+ * Ignored when `tools` is provided because manual tool selection wins.
636
+ * - `true`: force favorites-only discovery for this request
637
+ * - `false`: force unrestricted discovery for this request
638
+ * - omitted: use the account-level default from Context settings
639
+ */
640
+ favoritesOnly?: boolean;
626
641
  /**
627
642
  * Resume a prior durable query attempt from its latest checkpoint.
628
643
  * Cannot be combined with `tools` or `forkFrom`.
@@ -849,6 +864,25 @@ interface QueryDeveloperTraceSummary {
849
864
  loopCount?: number;
850
865
  [key: string]: unknown;
851
866
  }
867
+ /**
868
+ * Full tool call record (untruncated) for debugging.
869
+ */
870
+ interface QueryDeveloperTraceToolCall {
871
+ toolId?: string;
872
+ toolName: string;
873
+ args?: unknown;
874
+ result: unknown;
875
+ }
876
+ /**
877
+ * MCP method schema exposed in the developer trace.
878
+ */
879
+ interface QueryDeveloperTraceToolSchema {
880
+ serverName: string;
881
+ toolName: string;
882
+ description: string;
883
+ inputSchema?: Record<string, unknown>;
884
+ outputSchema?: Record<string, unknown>;
885
+ }
852
886
  /**
853
887
  * Developer Mode trace payload returned per query response (opt-in).
854
888
  */
@@ -859,6 +893,15 @@ interface QueryDeveloperTrace {
859
893
  query?: string;
860
894
  source?: string;
861
895
  diagnostics?: QueryDeveloperTraceDiagnostics;
896
+ initialCode?: string;
897
+ finalCode?: string;
898
+ executionTrace?: unknown[];
899
+ executionProgram?: unknown;
900
+ attemptCount?: number;
901
+ executionSuccess?: boolean;
902
+ executionResult?: unknown;
903
+ toolCallHistory?: QueryDeveloperTraceToolCall[];
904
+ toolSchemas?: QueryDeveloperTraceToolSchema[];
862
905
  [key: string]: unknown;
863
906
  }
864
907
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctxprotocol/sdk",
3
- "version": "0.11.1",
3
+ "version": "0.12.0",
4
4
  "description": "Official TypeScript SDK for the Context Protocol - Discover and execute AI tools programmatically",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",