From a3a879325956a8919aaf1468d05a65d939a676d4 Mon Sep 17 00:00:00 2001 From: Joe Danziger Date: Mon, 26 May 2025 22:35:13 -0400 Subject: [PATCH] add newline at end of mcp config --- src/utils/mcp-config-setup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/mcp-config-setup.js b/src/utils/mcp-config-setup.js index 162b92d5..18842875 100644 --- a/src/utils/mcp-config-setup.js +++ b/src/utils/mcp-config-setup.js @@ -72,7 +72,7 @@ export function setupMCPConfiguration(projectDir, mcpConfigPath) { log('info', 'task-master-ai server already configured in mcp.json'); } // Write the updated configuration - fs.writeFileSync(mcpPath, JSON.stringify(mcpConfig, null, 4)); + fs.writeFileSync(mcpPath, JSON.stringify(mcpConfig, null, 4) + '\n'); log('success', 'Updated MCP configuration file'); } catch (error) { log('error', `Failed to update MCP configuration: ${error.message}`); @@ -86,7 +86,7 @@ export function setupMCPConfiguration(projectDir, mcpConfigPath) { const newMCPConfig = { mcpServers: newMCPServer }; - fs.writeFileSync(mcpPath, JSON.stringify(newMCPConfig, null, 4)); + fs.writeFileSync(mcpPath, JSON.stringify(newMCPConfig, null, 4) + '\n'); log( 'warn', 'Created new MCP configuration file (backup of original file was created if it existed)' @@ -97,7 +97,7 @@ export function setupMCPConfiguration(projectDir, mcpConfigPath) { const newMCPConfig = { mcpServers: newMCPServer }; - fs.writeFileSync(mcpPath, JSON.stringify(newMCPConfig, null, 4)); + fs.writeFileSync(mcpPath, JSON.stringify(newMCPConfig, null, 4) + '\n'); log('success', `Created MCP configuration file at ${mcpPath}`); }