Skip to content

Commit 705a24a

Browse files
authored
Update MCP command to use scoped package name (#39)
## Summary Updates MCP install and config to use the scoped package name `@nicnocquee/dataqueue` instead of `dataqueue-cli`, so the MCP server command matches the published package and works correctly when users run the install flow. ## Important changes - Default MCP server config now uses `npx @nicnocquee/dataqueue mcp` instead of `npx dataqueue-cli mcp` - Success log message after MCP install shows the new command - Existing MCP configs written by this flow will use the scoped package name ## Other changes - Test expectations and fixtures updated to assert the new command in `install-mcp-command.test.ts` ## How to test 1. From the repo root, run the MCP install (e.g. `npx @nicnocquee/dataqueue mcp install` or the equivalent entry point). 2. Confirm the generated MCP config (e.g. in `~/.cursor/mcp.json` or the path you use) has `args: ['@nicnocquee/dataqueue', 'mcp']` for the dataqueue server. 3. Run `pnpm test` in `packages/dataqueue` and confirm all tests pass. Co-authored-by: Nico Prananta <311343+nicnocquee@users.noreply.github.com>
1 parent 2f54c54 commit 705a24a

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

packages/dataqueue/src/install-mcp-command.test.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ describe('upsertMcpConfig', () => {
2222
upsertMcpConfig(
2323
'/path/mcp.json',
2424
'dataqueue',
25-
{ command: 'npx', args: ['dataqueue-cli', 'mcp'] },
25+
{ command: 'npx', args: ['@nicnocquee/dataqueue', 'mcp'] },
2626
deps,
2727
);
2828

2929
// Assert
3030
const written = JSON.parse(deps.writeFileSync.mock.calls[0][1] as string);
3131
expect(written.mcpServers.dataqueue).toEqual({
3232
command: 'npx',
33-
args: ['dataqueue-cli', 'mcp'],
33+
args: ['@nicnocquee/dataqueue', 'mcp'],
3434
});
3535
});
3636

@@ -49,7 +49,7 @@ describe('upsertMcpConfig', () => {
4949
upsertMcpConfig(
5050
'/path/mcp.json',
5151
'dataqueue',
52-
{ command: 'npx', args: ['dataqueue-cli', 'mcp'] },
52+
{ command: 'npx', args: ['@nicnocquee/dataqueue', 'mcp'] },
5353
deps,
5454
);
5555

@@ -58,7 +58,7 @@ describe('upsertMcpConfig', () => {
5858
expect(written.mcpServers.other).toEqual({ command: 'other' });
5959
expect(written.mcpServers.dataqueue).toEqual({
6060
command: 'npx',
61-
args: ['dataqueue-cli', 'mcp'],
61+
args: ['@nicnocquee/dataqueue', 'mcp'],
6262
});
6363
});
6464

@@ -133,7 +133,10 @@ describe('runInstallMcp', () => {
133133
.calls[0][1] as string,
134134
);
135135
expect(written.mcpServers.dataqueue.command).toBe('npx');
136-
expect(written.mcpServers.dataqueue.args).toEqual(['dataqueue-cli', 'mcp']);
136+
expect(written.mcpServers.dataqueue.args).toEqual([
137+
'@nicnocquee/dataqueue',
138+
'mcp',
139+
]);
137140
});
138141

139142
it('installs MCP config for Claude Code (option 2)', async () => {

packages/dataqueue/src/install-mcp-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function upsertMcpConfig(
7070

7171
const MCP_SERVER_CONFIG = {
7272
command: 'npx',
73-
args: ['dataqueue-cli', 'mcp'],
73+
args: ['@nicnocquee/dataqueue', 'mcp'],
7474
};
7575

7676
const MCP_CLIENTS: Record<string, McpClientConfig> = {

0 commit comments

Comments
 (0)