fix: resolve tool count discrepancy in Docker environments (#6)
- Implement dynamic n8n API configuration checking - Remove static config export in favor of lazy getter function - Fix management tools not being registered when env vars set after startup - Optimize logger performance with cached environment variables - Clean up debug logging and remove console.error usage - Bump version to 2.7.1 This ensures all 38 tools (22 documentation + 16 management) are properly registered regardless of when environment variables become available. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { config } from 'dotenv';
|
||||
import { logger } from '../utils/logger';
|
||||
import { isN8nApiConfigured, n8nApiConfig } from '../config/n8n-api';
|
||||
import { isN8nApiConfigured, getN8nApiConfig } from '../config/n8n-api';
|
||||
import { getN8nApiClient } from '../mcp/handlers-n8n-manager';
|
||||
import { N8nApiClient } from '../services/n8n-api-client';
|
||||
import { Workflow, ExecutionStatus } from '../types/n8n-api';
|
||||
@@ -21,10 +21,11 @@ async function testN8nManagerIntegration() {
|
||||
return;
|
||||
}
|
||||
|
||||
const apiConfig = getN8nApiConfig();
|
||||
logger.info('n8n API Configuration:', {
|
||||
url: n8nApiConfig!.baseUrl,
|
||||
timeout: n8nApiConfig!.timeout,
|
||||
maxRetries: n8nApiConfig!.maxRetries
|
||||
url: apiConfig!.baseUrl,
|
||||
timeout: apiConfig!.timeout,
|
||||
maxRetries: apiConfig!.maxRetries
|
||||
});
|
||||
|
||||
const client = getN8nApiClient();
|
||||
|
||||
Reference in New Issue
Block a user