From 4cfc3cc5c8c6b39f535603b60f18a2163d532ec5 Mon Sep 17 00:00:00 2001 From: czlonkowski <56956555+czlonkowski@users.noreply.github.com> Date: Mon, 16 Jun 2025 08:22:06 +0200 Subject: [PATCH] fix: update imports to match renamed tool export MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/http-server-fixed.ts | 4 ++-- src/mcp/server-update.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/http-server-fixed.ts b/src/http-server-fixed.ts index 5faa5c2..b19cdc4 100644 --- a/src/http-server-fixed.ts +++ b/src/http-server-fixed.ts @@ -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 }; diff --git a/src/mcp/server-update.ts b/src/mcp/server-update.ts index d370f77..1460059 100644 --- a/src/mcp/server-update.ts +++ b/src/mcp/server-update.ts @@ -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