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:
@@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
import express from 'express';
|
import express from 'express';
|
||||||
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
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 { N8NDocumentationMCPServer } from './mcp/server-update';
|
||||||
import { logger } from './utils/logger';
|
import { logger } from './utils/logger';
|
||||||
import dotenv from 'dotenv';
|
import dotenv from 'dotenv';
|
||||||
@@ -185,7 +185,7 @@ export async function startFixedHTTPServer() {
|
|||||||
response = {
|
response = {
|
||||||
jsonrpc: '2.0',
|
jsonrpc: '2.0',
|
||||||
result: {
|
result: {
|
||||||
tools: n8nDocumentationTools
|
tools: n8nDocumentationToolsFinal
|
||||||
},
|
},
|
||||||
id: jsonRpcRequest.id
|
id: jsonRpcRequest.id
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
} from '@modelcontextprotocol/sdk/types.js';
|
} from '@modelcontextprotocol/sdk/types.js';
|
||||||
import { existsSync } from 'fs';
|
import { existsSync } from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { n8nDocumentationTools } from './tools-update';
|
import { n8nDocumentationToolsFinal } from './tools-update';
|
||||||
import { logger } from '../utils/logger';
|
import { logger } from '../utils/logger';
|
||||||
import { NodeRepository } from '../database/node-repository';
|
import { NodeRepository } from '../database/node-repository';
|
||||||
import { DatabaseAdapter, createDatabaseAdapter } from '../database/database-adapter';
|
import { DatabaseAdapter, createDatabaseAdapter } from '../database/database-adapter';
|
||||||
@@ -97,7 +97,7 @@ export class N8NDocumentationMCPServer {
|
|||||||
private setupHandlers(): void {
|
private setupHandlers(): void {
|
||||||
// Handle tool listing
|
// Handle tool listing
|
||||||
this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
||||||
tools: n8nDocumentationTools,
|
tools: n8nDocumentationToolsFinal,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// Handle tool execution
|
// Handle tool execution
|
||||||
|
|||||||
Reference in New Issue
Block a user