From 0e0712a045faf534e40c23fdb1330c7fa6035ff2 Mon Sep 17 00:00:00 2001 From: Nico Prananta <311343+nicnocquee@users.noreply.github.com> Date: Sun, 15 Mar 2026 23:20:02 +0700 Subject: [PATCH] Update MCP command references to use scoped package name - Changed instances of 'dataqueue-cli' to '@nicnocquee/dataqueue' in both the test and implementation files for the `upsertMcpConfig` function. - Updated related assertions and log messages to reflect the new package name, ensuring consistency across the codebase. These changes improve clarity and maintainability by aligning the command references with the scoped package structure. --- .../dataqueue/src/install-mcp-command.test.ts | 15 +++++++++------ packages/dataqueue/src/install-mcp-command.ts | 4 ++-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/dataqueue/src/install-mcp-command.test.ts b/packages/dataqueue/src/install-mcp-command.test.ts index 6dcf5c9..4fa49e9 100644 --- a/packages/dataqueue/src/install-mcp-command.test.ts +++ b/packages/dataqueue/src/install-mcp-command.test.ts @@ -22,7 +22,7 @@ describe('upsertMcpConfig', () => { upsertMcpConfig( '/path/mcp.json', 'dataqueue', - { command: 'npx', args: ['dataqueue-cli', 'mcp'] }, + { command: 'npx', args: ['@nicnocquee/dataqueue', 'mcp'] }, deps, ); @@ -30,7 +30,7 @@ describe('upsertMcpConfig', () => { const written = JSON.parse(deps.writeFileSync.mock.calls[0][1] as string); expect(written.mcpServers.dataqueue).toEqual({ command: 'npx', - args: ['dataqueue-cli', 'mcp'], + args: ['@nicnocquee/dataqueue', 'mcp'], }); }); @@ -49,7 +49,7 @@ describe('upsertMcpConfig', () => { upsertMcpConfig( '/path/mcp.json', 'dataqueue', - { command: 'npx', args: ['dataqueue-cli', 'mcp'] }, + { command: 'npx', args: ['@nicnocquee/dataqueue', 'mcp'] }, deps, ); @@ -58,7 +58,7 @@ describe('upsertMcpConfig', () => { expect(written.mcpServers.other).toEqual({ command: 'other' }); expect(written.mcpServers.dataqueue).toEqual({ command: 'npx', - args: ['dataqueue-cli', 'mcp'], + args: ['@nicnocquee/dataqueue', 'mcp'], }); }); @@ -133,7 +133,10 @@ describe('runInstallMcp', () => { .calls[0][1] as string, ); expect(written.mcpServers.dataqueue.command).toBe('npx'); - expect(written.mcpServers.dataqueue.args).toEqual(['dataqueue-cli', 'mcp']); + expect(written.mcpServers.dataqueue.args).toEqual([ + '@nicnocquee/dataqueue', + 'mcp', + ]); }); it('installs MCP config for Claude Code (option 2)', async () => { @@ -210,7 +213,7 @@ describe('runInstallMcp', () => { // Assert expect(deps.log).toHaveBeenCalledWith( - expect.stringContaining('npx dataqueue-cli mcp'), + expect.stringContaining('npx @nicnocquee/dataqueue mcp'), ); }); }); diff --git a/packages/dataqueue/src/install-mcp-command.ts b/packages/dataqueue/src/install-mcp-command.ts index f6a6073..dc63838 100644 --- a/packages/dataqueue/src/install-mcp-command.ts +++ b/packages/dataqueue/src/install-mcp-command.ts @@ -70,7 +70,7 @@ export function upsertMcpConfig( const MCP_SERVER_CONFIG = { command: 'npx', - args: ['dataqueue-cli', 'mcp'], + args: ['@nicnocquee/dataqueue', 'mcp'], }; const MCP_CLIENTS: Record = { @@ -177,7 +177,7 @@ export async function runInstallMcp({ existsSync, log, }); - log('\nDone! The MCP server will run via: npx dataqueue-cli mcp'); + log('\nDone! The MCP server will run via: npx @nicnocquee/dataqueue mcp'); } catch (err) { error('Failed to install MCP config:', err); exit(1);