mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 13:33:11 +00:00
fix: remove DEBUG console.log statements from MCP server
- Commented out console.log statements that were interfering with JSON-RPC communication - Fixed Claude Desktop errors for list_nodes and list_ai_tools - All stdout in MCP servers must be valid JSON messages 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -276,7 +276,7 @@ export class N8NDocumentationMCPServer {
|
|||||||
let query = 'SELECT * FROM nodes WHERE 1=1';
|
let query = 'SELECT * FROM nodes WHERE 1=1';
|
||||||
const params: any[] = [];
|
const params: any[] = [];
|
||||||
|
|
||||||
console.log('DEBUG list_nodes:', { filters, query, params }); // ADD THIS
|
// console.log('DEBUG list_nodes:', { filters, query, params }); // Removed to prevent stdout interference
|
||||||
|
|
||||||
if (filters.package) {
|
if (filters.package) {
|
||||||
// Handle both formats
|
// Handle both formats
|
||||||
@@ -451,11 +451,11 @@ export class N8NDocumentationMCPServer {
|
|||||||
|
|
||||||
// Debug: Check if is_ai_tool column is populated
|
// Debug: Check if is_ai_tool column is populated
|
||||||
const aiCount = this.db!.prepare('SELECT COUNT(*) as ai_count FROM nodes WHERE is_ai_tool = 1').get() as any;
|
const aiCount = this.db!.prepare('SELECT COUNT(*) as ai_count FROM nodes WHERE is_ai_tool = 1').get() as any;
|
||||||
console.log('DEBUG list_ai_tools:', {
|
// console.log('DEBUG list_ai_tools:', {
|
||||||
toolsLength: tools.length,
|
// toolsLength: tools.length,
|
||||||
aiCountInDB: aiCount.ai_count,
|
// aiCountInDB: aiCount.ai_count,
|
||||||
sampleTools: tools.slice(0, 3)
|
// sampleTools: tools.slice(0, 3)
|
||||||
});
|
// }); // Removed to prevent stdout interference
|
||||||
|
|
||||||
return {
|
return {
|
||||||
tools,
|
tools,
|
||||||
|
|||||||
Reference in New Issue
Block a user