Skip to content

Commit 2deabae

Browse files
committed
fixed wrong args for apply in mcp server
1 parent 68def1a commit 2deabae

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

renamify-mcp/src/renamify-service.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,7 @@ describe('RenamifyService', () => {
205205
const result = await service.apply({ planId: 'abc123' });
206206

207207
expect(result).toBe(mockOutput);
208-
expect(mockedExeca).toHaveBeenCalledWith('renamify', [
209-
'apply',
210-
'--id',
211-
'abc123',
212-
]);
208+
expect(mockedExeca).toHaveBeenCalledWith('renamify', ['apply', 'abc123']);
213209
});
214210

215211
it('should apply with plan path', async () => {

renamify-mcp/src/renamify-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ export class RenamifyService {
315315
if (options.planPath) {
316316
args.push('--plan', options.planPath);
317317
} else if (options.planId) {
318-
args.push('--id', options.planId);
318+
args.push(options.planId);
319319
}
320320

321321
if (options.commit) {

0 commit comments

Comments
 (0)