@probelabs/visor 0.1.71 → 0.1.72

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.
package/dist/sdk/sdk.js CHANGED
@@ -1069,6 +1069,10 @@ ${schemaString}`);
1069
1069
  // We don't want the agent to modify files
1070
1070
  debug: this.config.debug || false
1071
1071
  };
1072
+ if (this.config.mcpServers && Object.keys(this.config.mcpServers).length > 0) {
1073
+ options.enableMcp = true;
1074
+ options.mcpConfig = { mcpServers: this.config.mcpServers };
1075
+ }
1072
1076
  if (this.config.provider) {
1073
1077
  const providerOverride = this.config.provider === "claude-code" || this.config.provider === "bedrock" ? "anthropic" : this.config.provider === "anthropic" || this.config.provider === "openai" || this.config.provider === "google" ? this.config.provider : void 0;
1074
1078
  if (providerOverride) {
@@ -2686,15 +2690,13 @@ var init_ai_check_provider = __esm({
2686
2690
  Object.assign(mcpServers, config.ai.mcpServers);
2687
2691
  }
2688
2692
  if (Object.keys(mcpServers).length > 0) {
2693
+ aiConfig.mcpServers = mcpServers;
2689
2694
  const mcpConfig = { mcpServers };
2690
2695
  const mcpTools = await this.setupMcpTools(mcpConfig);
2691
- if (mcpTools.length > 0) {
2692
- aiConfig.tools = mcpTools;
2693
- if (aiConfig.debug) {
2694
- console.error(
2695
- `\u{1F527} Debug: AI check configured with ${mcpTools.length} MCP tools from ${Object.keys(mcpServers).length} servers`
2696
- );
2697
- }
2696
+ if (aiConfig.debug) {
2697
+ console.error(
2698
+ `\u{1F527} Debug: AI check MCP configured with ${Object.keys(mcpServers).length} servers; discovered ${mcpTools.length} tools`
2699
+ );
2698
2700
  }
2699
2701
  }
2700
2702
  const processedPrompt = await this.processPrompt(