Skip to content

Commit c10fbbc

Browse files
Fix typo in mdm.json (#4767)
* Fix typo in mdm.json * Update src/services/mdm/MdmService.ts Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --------- Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent 8dd99a0 commit c10fbbc

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/services/mdm/MdmService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,22 +146,22 @@ export class MdmService {
146146
private getMdmConfigPath(): string {
147147
const platform = os.platform()
148148
const isProduction = process.env.NODE_ENV === "production"
149-
const configFileName = isProduction ? "mcp.json" : "mcp.dev.json"
149+
const configFileName = isProduction ? "mdm.json" : "mdm.dev.json"
150150

151151
switch (platform) {
152152
case "win32": {
153-
// Windows: %ProgramData%\RooCode\mcp.json or mcp.dev.json
153+
// Windows: %ProgramData%\RooCode\mdm.json or mdm.dev.json
154154
const programData = process.env.PROGRAMDATA || "C:\\ProgramData"
155155
return path.join(programData, "RooCode", configFileName)
156156
}
157157

158158
case "darwin":
159-
// macOS: /Library/Application Support/RooCode/mcp.json or mcp.dev.json
159+
// macOS: /Library/Application Support/RooCode/mdm.json or mdm.dev.json
160160
return `/Library/Application Support/RooCode/${configFileName}`
161161

162162
case "linux":
163163
default:
164-
// Linux: /etc/roo-code/mcp.json or mcp.dev.json
164+
// Linux: /etc/roo-code/mdm.json or mdm.dev.json
165165
return `/etc/roo-code/${configFileName}`
166166
}
167167
}

src/services/mdm/__tests__/MdmService.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ describe("MdmService", () => {
148148

149149
await MdmService.createInstance()
150150

151-
expect(mockFs.existsSync).toHaveBeenCalledWith(path.join("C:\\ProgramData", "RooCode", "mcp.json"))
151+
expect(mockFs.existsSync).toHaveBeenCalledWith(path.join("C:\\ProgramData", "RooCode", "mdm.json"))
152152
})
153153

154154
it("should use correct path for Windows in development", async () => {
@@ -160,7 +160,7 @@ describe("MdmService", () => {
160160

161161
await MdmService.createInstance()
162162

163-
expect(mockFs.existsSync).toHaveBeenCalledWith(path.join("C:\\ProgramData", "RooCode", "mcp.dev.json"))
163+
expect(mockFs.existsSync).toHaveBeenCalledWith(path.join("C:\\ProgramData", "RooCode", "mdm.dev.json"))
164164
})
165165

166166
it("should use correct path for macOS in production", async () => {
@@ -171,7 +171,7 @@ describe("MdmService", () => {
171171

172172
await MdmService.createInstance()
173173

174-
expect(mockFs.existsSync).toHaveBeenCalledWith("/Library/Application Support/RooCode/mcp.json")
174+
expect(mockFs.existsSync).toHaveBeenCalledWith("/Library/Application Support/RooCode/mdm.json")
175175
})
176176

177177
it("should use correct path for macOS in development", async () => {
@@ -182,7 +182,7 @@ describe("MdmService", () => {
182182

183183
await MdmService.createInstance()
184184

185-
expect(mockFs.existsSync).toHaveBeenCalledWith("/Library/Application Support/RooCode/mcp.dev.json")
185+
expect(mockFs.existsSync).toHaveBeenCalledWith("/Library/Application Support/RooCode/mdm.dev.json")
186186
})
187187

188188
it("should use correct path for Linux in production", async () => {
@@ -193,7 +193,7 @@ describe("MdmService", () => {
193193

194194
await MdmService.createInstance()
195195

196-
expect(mockFs.existsSync).toHaveBeenCalledWith("/etc/roo-code/mcp.json")
196+
expect(mockFs.existsSync).toHaveBeenCalledWith("/etc/roo-code/mdm.json")
197197
})
198198

199199
it("should use correct path for Linux in development", async () => {
@@ -204,7 +204,7 @@ describe("MdmService", () => {
204204

205205
await MdmService.createInstance()
206206

207-
expect(mockFs.existsSync).toHaveBeenCalledWith("/etc/roo-code/mcp.dev.json")
207+
expect(mockFs.existsSync).toHaveBeenCalledWith("/etc/roo-code/mdm.dev.json")
208208
})
209209

210210
it("should default to dev config when NODE_ENV is not set", async () => {
@@ -215,7 +215,7 @@ describe("MdmService", () => {
215215

216216
await MdmService.createInstance()
217217

218-
expect(mockFs.existsSync).toHaveBeenCalledWith("/Library/Application Support/RooCode/mcp.dev.json")
218+
expect(mockFs.existsSync).toHaveBeenCalledWith("/Library/Application Support/RooCode/mdm.dev.json")
219219
})
220220
})
221221

0 commit comments

Comments
 (0)