@probelabs/probe 0.6.0-rc266 → 0.6.0-rc267

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.
@@ -1836,9 +1836,13 @@ export class ProbeAgent {
1836
1836
  }
1837
1837
 
1838
1838
  // Add all enabled tools from toolImplementations
1839
+ // Note: MCP tools are also in toolImplementations but have no schema in _getToolSchemaAndDescription.
1840
+ // They are handled separately via mcpBridge.getVercelTools() below, so we skip them here.
1839
1841
  for (const [toolName, toolImpl] of Object.entries(this.toolImplementations)) {
1840
1842
  // Get schema and description for this tool
1841
- const { schema, description } = this._getToolSchemaAndDescription(toolName);
1843
+ const toolInfo = this._getToolSchemaAndDescription(toolName);
1844
+ if (!toolInfo) continue;
1845
+ const { schema, description } = toolInfo;
1842
1846
  if (schema && description) {
1843
1847
  nativeTools[toolName] = wrapTool(toolName, schema, description, toolImpl.execute);
1844
1848
  }
@@ -83111,7 +83111,9 @@ var init_ProbeAgent = __esm({
83111
83111
  return nativeTools;
83112
83112
  }
83113
83113
  for (const [toolName, toolImpl] of Object.entries(this.toolImplementations)) {
83114
- const { schema, description } = this._getToolSchemaAndDescription(toolName);
83114
+ const toolInfo = this._getToolSchemaAndDescription(toolName);
83115
+ if (!toolInfo) continue;
83116
+ const { schema, description } = toolInfo;
83115
83117
  if (schema && description) {
83116
83118
  nativeTools[toolName] = wrapTool(toolName, schema, description, toolImpl.execute);
83117
83119
  }