Skip to content

Commit b3d72a9

Browse files
committed
Fix build errors
1 parent 3d1728c commit b3d72a9

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

mcp-test-client/src/generic-orchestrator.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { BaseLLM, LLMRequest, LLMResponse, MCPCapabilities } from './llm-interface.js';
1+
import { BaseLLM, LLMRequest, LLMResponse } from './llm-interface.js';
22
import { MCPClient } from './mcp-client.js';
3-
import { MCPServerConfig, Scenario, ExecutionStep } from './types.js';
3+
import { MCPServerConfig, Scenario, ExecutionStep, MCPCapabilities } from './types.js';
44
import chalk from 'chalk';
55

66
export interface LLMConfig {
@@ -62,9 +62,9 @@ export class GenericOrchestrator {
6262
// 🐛 DEBUG: Show what capabilities we're sending to the LLM
6363
if (this.config.enableLogging) {
6464
console.log(chalk.cyan(`\n📋 [Orchestrator] Sending capabilities to LLM:`));
65-
console.log(chalk.gray(` 🔧 Tools: ${capabilities.tools.length} (${capabilities.tools.map(t => t.name).join(', ')})`));
66-
console.log(chalk.gray(` 📚 Resources: ${capabilities.resources.length} (${capabilities.resources.map(r => r.name).join(', ')})`));
67-
console.log(chalk.gray(` 💬 Prompts: ${capabilities.prompts.length} (${capabilities.prompts.map(p => p.name).join(', ')})`));
65+
console.log(chalk.gray(` 🔧 Tools: ${capabilities.tools.length} (${capabilities.tools.map((t: any) => t.name).join(', ')})`));
66+
console.log(chalk.gray(` 📚 Resources: ${capabilities.resources.length} (${capabilities.resources.map((r: any) => r.name).join(', ')})`));
67+
console.log(chalk.gray(` 💬 Prompts: ${capabilities.prompts.length} (${capabilities.prompts.map((p: any) => p.name).join(', ')})`));
6868
console.log(chalk.gray(`\n 🧠 Full capabilities object:`));
6969
console.log(chalk.gray(` ${JSON.stringify(capabilities, null, 2).substring(0, 500)}...`));
7070
}

mcp-test-client/src/real-llm-lmstudio.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import chalk from 'chalk';
2-
import { BaseLLM, LLMResponse, LLMRequest, MCPCapabilities } from './llm-interface.js';
2+
import { BaseLLM, LLMResponse, LLMRequest } from './llm-interface.js';
3+
import { MCPCapabilities } from './types.js';
34
import fetch from 'node-fetch';
45

56
/**
@@ -438,7 +439,7 @@ EXAMPLES:
438439
if (functionName.startsWith('resource_')) {
439440
// Find the matching resource to get the URI
440441
const resourceName = functionName.replace('resource_', '').replace(/_/g, ' ');
441-
const resource = this.availableCapabilities?.resources.find(r =>
442+
const resource = this.availableCapabilities?.resources.find((r: any) =>
442443
r.name.toLowerCase().includes(resourceName.toLowerCase()) ||
443444
resourceName.includes(r.name.toLowerCase())
444445
);

0 commit comments

Comments
 (0)