@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.
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CheckExecutionEngine
3
- } from "./chunk-745RDQD3.mjs";
3
+ } from "./chunk-J355UUEI.mjs";
4
4
  import "./chunk-FIL2OGF6.mjs";
5
5
  import "./chunk-WMJKH4XE.mjs";
6
6
  export {
7
7
  CheckExecutionEngine
8
8
  };
9
- //# sourceMappingURL=check-execution-engine-TBF6LPYH.mjs.map
9
+ //# sourceMappingURL=check-execution-engine-RXV4MUD2.mjs.map
@@ -1032,6 +1032,10 @@ ${schemaString}`);
1032
1032
  // We don't want the agent to modify files
1033
1033
  debug: this.config.debug || false
1034
1034
  };
1035
+ if (this.config.mcpServers && Object.keys(this.config.mcpServers).length > 0) {
1036
+ options.enableMcp = true;
1037
+ options.mcpConfig = { mcpServers: this.config.mcpServers };
1038
+ }
1035
1039
  if (this.config.provider) {
1036
1040
  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;
1037
1041
  if (providerOverride) {
@@ -1489,7 +1493,7 @@ var PRReviewer = class {
1489
1493
  async reviewPR(owner, repo, prNumber, prInfo, options = {}) {
1490
1494
  const { debug = false, config, checks } = options;
1491
1495
  if (config && checks && checks.length > 0) {
1492
- const { CheckExecutionEngine: CheckExecutionEngine2 } = await import("./check-execution-engine-TBF6LPYH.mjs");
1496
+ const { CheckExecutionEngine: CheckExecutionEngine2 } = await import("./check-execution-engine-RXV4MUD2.mjs");
1493
1497
  const engine = new CheckExecutionEngine2();
1494
1498
  const groupedResults = await engine.executeGroupedChecks(
1495
1499
  prInfo,
@@ -2528,15 +2532,13 @@ var AICheckProvider = class extends CheckProvider {
2528
2532
  Object.assign(mcpServers, config.ai.mcpServers);
2529
2533
  }
2530
2534
  if (Object.keys(mcpServers).length > 0) {
2535
+ aiConfig.mcpServers = mcpServers;
2531
2536
  const mcpConfig = { mcpServers };
2532
2537
  const mcpTools = await this.setupMcpTools(mcpConfig);
2533
- if (mcpTools.length > 0) {
2534
- aiConfig.tools = mcpTools;
2535
- if (aiConfig.debug) {
2536
- console.error(
2537
- `\u{1F527} Debug: AI check configured with ${mcpTools.length} MCP tools from ${Object.keys(mcpServers).length} servers`
2538
- );
2539
- }
2538
+ if (aiConfig.debug) {
2539
+ console.error(
2540
+ `\u{1F527} Debug: AI check MCP configured with ${Object.keys(mcpServers).length} servers; discovered ${mcpTools.length} tools`
2541
+ );
2540
2542
  }
2541
2543
  }
2542
2544
  const processedPrompt = await this.processPrompt(
@@ -8296,4 +8298,4 @@ ${result.value.result.debug.rawResponse}`;
8296
8298
  export {
8297
8299
  CheckExecutionEngine
8298
8300
  };
8299
- //# sourceMappingURL=chunk-745RDQD3.mjs.map
8301
+ //# sourceMappingURL=chunk-J355UUEI.mjs.map