add newline at end of mcp config
This commit is contained in:
@@ -72,7 +72,7 @@ export function setupMCPConfiguration(projectDir, mcpConfigPath) {
|
|||||||
log('info', 'task-master-ai server already configured in mcp.json');
|
log('info', 'task-master-ai server already configured in mcp.json');
|
||||||
}
|
}
|
||||||
// Write the updated configuration
|
// 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');
|
log('success', 'Updated MCP configuration file');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log('error', `Failed to update MCP configuration: ${error.message}`);
|
log('error', `Failed to update MCP configuration: ${error.message}`);
|
||||||
@@ -86,7 +86,7 @@ export function setupMCPConfiguration(projectDir, mcpConfigPath) {
|
|||||||
const newMCPConfig = {
|
const newMCPConfig = {
|
||||||
mcpServers: newMCPServer
|
mcpServers: newMCPServer
|
||||||
};
|
};
|
||||||
fs.writeFileSync(mcpPath, JSON.stringify(newMCPConfig, null, 4));
|
fs.writeFileSync(mcpPath, JSON.stringify(newMCPConfig, null, 4) + '\n');
|
||||||
log(
|
log(
|
||||||
'warn',
|
'warn',
|
||||||
'Created new MCP configuration file (backup of original file was created if it existed)'
|
'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 = {
|
const newMCPConfig = {
|
||||||
mcpServers: newMCPServer
|
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}`);
|
log('success', `Created MCP configuration file at ${mcpPath}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user