Skip to content

Commit 847763b

Browse files
committed
keep versions in sync
1 parent f36c9ad commit 847763b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

renamify-mcp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@renamify/mcp-server",
3-
"version": "0.1.1",
3+
"version": "0.1.0",
44
"description": "MCP (Model Context Protocol) server for Renamify - smart case-aware search and replace",
55
"type": "module",
66
"main": "dist/index.js",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ vi.mock('node:fs', async () => {
2020
...actual,
2121
readFileSync: vi.fn((path: string) => {
2222
if (path.includes('package.json')) {
23-
return JSON.stringify({ version: '0.1.1' });
23+
return JSON.stringify({ version: '0.1.0' });
2424
}
2525
return '';
2626
}),

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ vi.mock('node:fs', async () => {
1313
...actual,
1414
readFileSync: vi.fn((path: string) => {
1515
if (path.includes('package.json')) {
16-
return JSON.stringify({ version: '0.1.1' });
16+
return JSON.stringify({ version: '0.1.0' });
1717
}
1818
return '';
1919
}),
@@ -60,10 +60,10 @@ describe('RenamifyService', () => {
6060
});
6161

6262
it('should pass when versions are compatible', async () => {
63-
// MCP version is 0.1.1, CLI version is 0.1.1
63+
// MCP version is 0.1.0, CLI version is 0.1.0
6464
mockedExeca
6565
.mockResolvedValueOnce({
66-
stdout: '{"name":"renamify","version":"0.1.1"}',
66+
stdout: '{"name":"renamify","version":"0.1.0"}',
6767
} as never) // version check
6868
.mockResolvedValueOnce({ stdout: 'Plan created' } as never); // actual command
6969

@@ -76,7 +76,7 @@ describe('RenamifyService', () => {
7676
});
7777

7878
it('should pass when CLI has higher minor version', async () => {
79-
// MCP version is 0.1.1, CLI version is 0.2.0
79+
// MCP version is 0.1.0, CLI version is 0.2.0
8080
mockedExeca
8181
.mockResolvedValueOnce({
8282
stdout: '{"name":"renamify","version":"0.2.0"}',
@@ -92,28 +92,28 @@ describe('RenamifyService', () => {
9292
});
9393

9494
it('should fail when major versions differ', async () => {
95-
// MCP version is 0.1.1, CLI version is 1.0.0
95+
// MCP version is 0.1.0, CLI version is 1.0.0
9696
mockedExeca.mockResolvedValueOnce({
9797
stdout: '{"name":"renamify","version":"1.0.0"}',
9898
} as never);
9999

100100
await expect(
101101
service.plan({ search: 'foo', replace: 'bar' })
102102
).rejects.toThrow(
103-
'Version mismatch: MCP server v0.1.1 is not compatible with CLI v1.0.0'
103+
'Version mismatch: MCP server v0.1.0 is not compatible with CLI v1.0.0'
104104
);
105105
});
106106

107107
it('should fail when MCP minor version is higher than CLI', async () => {
108-
// MCP version is 0.1.1, CLI version is 0.0.5
108+
// MCP version is 0.1.0, CLI version is 0.0.5
109109
mockedExeca.mockResolvedValueOnce({
110110
stdout: '{"name":"renamify","version":"0.0.5"}',
111111
} as never);
112112

113113
await expect(
114114
service.plan({ search: 'foo', replace: 'bar' })
115115
).rejects.toThrow(
116-
'Version mismatch: MCP server v0.1.1 requires CLI v0.1.x or later'
116+
'Version mismatch: MCP server v0.1.0 requires CLI v0.1.x or later'
117117
);
118118
});
119119

0 commit comments

Comments
 (0)