fix: update imports to match renamed tool export

The recent commit c4d8c73 renamed the exported constant from
'n8nDocumentationTools' to 'n8nDocumentationToolsFinal' in
tools-update.ts, but the imports in other files were not updated.

This caused TypeScript compilation errors during Docker builds:
- Cannot find name 'n8nDocumentationTools'
- Build failures in GitHub Actions

Fixed by updating imports and usages in:
- src/mcp/server-update.ts (lines 9 and 100)
- src/http-server-fixed.ts (lines 8 and 188)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-06-16 08:22:06 +02:00
parent c4d8c7376d
commit 4cfc3cc5c8
2 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,7 @@
*/
import express from 'express';
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
import { n8nDocumentationTools } from './mcp/tools-update';
import { n8nDocumentationToolsFinal } from './mcp/tools-update';
import { N8NDocumentationMCPServer } from './mcp/server-update';
import { logger } from './utils/logger';
import dotenv from 'dotenv';
@@ -185,7 +185,7 @@ export async function startFixedHTTPServer() {
response = {
jsonrpc: '2.0',
result: {
tools: n8nDocumentationTools
tools: n8nDocumentationToolsFinal
},
id: jsonRpcRequest.id
};

View File

@@ -6,7 +6,7 @@ import {
} from '@modelcontextprotocol/sdk/types.js';
import { existsSync } from 'fs';
import path from 'path';
import { n8nDocumentationTools } from './tools-update';
import { n8nDocumentationToolsFinal } from './tools-update';
import { logger } from '../utils/logger';
import { NodeRepository } from '../database/node-repository';
import { DatabaseAdapter, createDatabaseAdapter } from '../database/database-adapter';
@@ -97,7 +97,7 @@ export class N8NDocumentationMCPServer {
private setupHandlers(): void {
// Handle tool listing
this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
tools: n8nDocumentationTools,
tools: n8nDocumentationToolsFinal,
}));
// Handle tool execution