intermcp 0.3.0

Ultra-fast, safe Model Context Protocol (MCP) engine and multiplexing hub in pure Rust, built for Interlayer Blockchain and open for all
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
use serde_json::{json, Value};
use std::fs;
use std::io::Write;
use std::path::{Path, PathBuf};

#[derive(Debug, Clone)]
pub struct SetupResult {
    pub name: String,
    pub path: PathBuf,
    pub success: bool,
    pub message: String,
}

pub use configure_all_ides as auto_configure_all_ides;

pub fn configure_all_ides(binary_path: &str) -> Vec<SetupResult> {
    let mut results = Vec::new();

    // 1. Claude Desktop
    let claude_path = get_claude_desktop_path();
    results.push(configure_mcp_json(
        "Claude Desktop",
        &claude_path,
        binary_path,
    ));

    // 2. Cursor IDE
    let cursor_path = get_cursor_path();
    results.push(configure_mcp_json("Cursor IDE", &cursor_path, binary_path));

    // 3. Windsurf
    let windsurf_path = get_windsurf_path();
    results.push(configure_mcp_json("Windsurf", &windsurf_path, binary_path));

    // 4. Cline (VS Code)
    let cline_path = get_cline_path();
    results.push(configure_mcp_json(
        "Cline (VS Code)",
        &cline_path,
        binary_path,
    ));

    // 5. Roo Code (VS Code)
    let roo_path = get_roo_code_path();
    results.push(configure_mcp_json(
        "Roo Code (VS Code)",
        &roo_path,
        binary_path,
    ));

    // 6. Zed Editor
    let zed_path = get_zed_path();
    results.push(configure_zed_json(&zed_path, binary_path));

    // 7. Continue.dev
    let continue_path = get_continue_path();
    results.push(configure_mcp_json(
        "Continue.dev",
        &continue_path,
        binary_path,
    ));

    // 8. Antigravity IDE
    let antigravity_ide_path = get_antigravity_ide_path();
    results.push(configure_mcp_json(
        "Antigravity IDE",
        &antigravity_ide_path,
        binary_path,
    ));

    // 8b. Antigravity (Global)
    let antigravity_path = get_antigravity_path();
    results.push(configure_mcp_json(
        "Antigravity (Global)",
        &antigravity_path,
        binary_path,
    ));

    // 9. Kilo Code (VS Code)
    let kilo_path = get_kilo_path();
    results.push(configure_mcp_json(
        "Kilo Code (VS Code)",
        &kilo_path,
        binary_path,
    ));

    // 10. VS Code / Codex
    let vscode_path = get_vscode_path();
    results.push(configure_mcp_json(
        "VS Code / Codex",
        &vscode_path,
        binary_path,
    ));

    results
}

fn atomic_write_json(parent: &Path, target: &Path, content: &str) -> Result<(), String> {
    static CONFIG_TEMP_COUNTER: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64::new(0);
    let count = CONFIG_TEMP_COUNTER.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
    let random_suffix: u128 = rand::random();

    let parent = if parent.as_os_str().is_empty() {
        Path::new(".")
    } else {
        parent
    };
    if !parent.exists() {
        let _ = fs::create_dir_all(parent);
    }

    let temp_name = format!(
        ".intermcp_tmp_{}_{}_{}_{:032x}.tmp",
        std::process::id(),
        std::time::SystemTime::now()
            .duration_since(std::time::UNIX_EPOCH)
            .unwrap_or_default()
            .as_nanos(),
        count,
        random_suffix
    );
    let temp_path = parent.join(temp_name);
    let mut file = fs::File::create(&temp_path)
        .map_err(|e| format!("Failed to create temporary file for atomic write: {}", e))?;
    file.write_all(content.as_bytes())
        .map_err(|e| format!("Failed to write to temporary file: {}", e))?;
    file.flush()
        .map_err(|e| format!("Failed to flush temporary file: {}", e))?;
    drop(file);

    fs::rename(&temp_path, target).map_err(|e| {
        let _ = fs::remove_file(&temp_path);
        format!("Atomic rename failed: {}", e)
    })
}

fn safe_backup(config_path: &Path) -> Result<PathBuf, String> {
    let parent = config_path.parent().unwrap_or_else(|| Path::new("."));
    if let Ok(meta) = fs::symlink_metadata(parent) {
        if meta.file_type().is_symlink() {
            return Err("Parent directory cannot be a symlink".into());
        }
    }
    let backup_path = config_path.with_extension("json.bak");
    if let Ok(meta) = fs::symlink_metadata(&backup_path) {
        if meta.file_type().is_symlink() {
            let _ = fs::remove_file(&backup_path);
        }
    }
    if let Ok(meta) = fs::symlink_metadata(&backup_path) {
        if meta.file_type().is_symlink() {
            return Err("Backup destination cannot be a symlink".into());
        }
    }
    fs::copy(config_path, &backup_path).map_err(|e| format!("Failed to create backup: {}", e))?;

    if let Ok(meta) = fs::symlink_metadata(&backup_path) {
        if meta.file_type().is_symlink() {
            let _ = fs::remove_file(&backup_path);
            return Err(
                "Backup destination was manipulated into a symlink during copy. Aborting.".into(),
            );
        }
    }

    let original_bytes = fs::read(config_path)
        .map_err(|e| format!("Failed to read original for verification: {}", e))?;
    let backup_bytes = fs::read(&backup_path)
        .map_err(|e| format!("Failed to read backup for verification: {}", e))?;

    if original_bytes != backup_bytes {
        return Err("Backup byte-equality verification failed. Aborting write.".into());
    }

    Ok(backup_path)
}

pub fn configure_mcp_json(ide_name: &str, config_path: &Path, binary_path: &str) -> SetupResult {
    let parent = match config_path.parent() {
        Some(p) => p,
        None => {
            return SetupResult {
                name: ide_name.to_string(),
                path: config_path.to_path_buf(),
                success: false,
                message: "Invalid configuration directory".to_string(),
            }
        }
    };

    if !config_path.exists() && !parent.exists() {
        return SetupResult {
            name: ide_name.to_string(),
            path: config_path.to_path_buf(),
            success: true,
            message: "Not detected on this system (skipped)".to_string(),
        };
    }

    if let Err(e) = fs::create_dir_all(parent) {
        return SetupResult {
            name: ide_name.to_string(),
            path: config_path.to_path_buf(),
            success: false,
            message: format!("Failed to create parent directory: {}", e),
        };
    }

    let mut config: Value = if config_path.exists() {
        match fs::read_to_string(config_path) {
            Ok(content) => match serde_json::from_str::<Value>(&content) {
                Ok(parsed) if parsed.is_object() => parsed,
                Ok(_) => {
                    return SetupResult {
                        name: ide_name.to_string(),
                        path: config_path.to_path_buf(),
                        success: false,
                        message: "Existing configuration is not a valid JSON object. Aborting to prevent corruption.".to_string(),
                    };
                }
                Err(e) => {
                    return SetupResult {
                        name: ide_name.to_string(),
                        path: config_path.to_path_buf(),
                        success: false,
                        message: format!(
                            "Refusing to overwrite unparseable configuration file: {}",
                            e
                        ),
                    };
                }
            },
            Err(e) => {
                return SetupResult {
                    name: ide_name.to_string(),
                    path: config_path.to_path_buf(),
                    success: false,
                    message: format!("Failed to read existing configuration: {}", e),
                };
            }
        }
    } else {
        json!({})
    };

    if config_path.exists() {
        if let Err(err_msg) = safe_backup(config_path) {
            return SetupResult {
                name: ide_name.to_string(),
                path: config_path.to_path_buf(),
                success: false,
                message: err_msg,
            };
        }
    }

    let root_obj = match config.as_object_mut() {
        Some(obj) => obj,
        None => {
            return SetupResult {
                name: ide_name.to_string(),
                path: config_path.to_path_buf(),
                success: false,
                message: "Internal error: configuration is not a valid JSON object".to_string(),
            };
        }
    };

    let mcp_servers = root_obj.entry("mcpServers").or_insert_with(|| json!({}));

    if let Some(servers_obj) = mcp_servers.as_object_mut() {
        let new_entry = json!({
            "command": binary_path,
            "args": ["serve"]
        });
        if let Some(existing) = servers_obj.get("intermcp") {
            if existing != &new_entry {
                tracing::warn!(
                    "Overwriting existing 'intermcp' server configuration in {}",
                    ide_name
                );
            }
        }
        servers_obj.insert("intermcp".to_string(), new_entry);
    }

    match serde_json::to_string_pretty(&config) {
        Ok(serialized) => match atomic_write_json(parent, config_path, &serialized) {
            Ok(_) => SetupResult {
                name: ide_name.to_string(),
                path: config_path.to_path_buf(),
                success: true,
                message: "Successfully configured and merged InterMCP server".to_string(),
            },
            Err(e) => SetupResult {
                name: ide_name.to_string(),
                path: config_path.to_path_buf(),
                success: false,
                message: format!("Failed atomic write: {}", e),
            },
        },
        Err(e) => SetupResult {
            name: ide_name.to_string(),
            path: config_path.to_path_buf(),
            success: false,
            message: format!("Serialization error: {}", e),
        },
    }
}

pub fn configure_zed_json(config_path: &Path, binary_path: &str) -> SetupResult {
    let parent = match config_path.parent() {
        Some(p) => p,
        None => {
            return SetupResult {
                name: "Zed Editor".to_string(),
                path: config_path.to_path_buf(),
                success: false,
                message: "Invalid configuration directory".to_string(),
            }
        }
    };

    if !config_path.exists() && !parent.exists() {
        return SetupResult {
            name: "Zed Editor".to_string(),
            path: config_path.to_path_buf(),
            success: true,
            message: "Not detected on this system (skipped)".to_string(),
        };
    }

    if let Err(e) = fs::create_dir_all(parent) {
        return SetupResult {
            name: "Zed Editor".to_string(),
            path: config_path.to_path_buf(),
            success: false,
            message: format!("Failed to create parent directory: {}", e),
        };
    }

    let mut config: Value = if config_path.exists() {
        match fs::read_to_string(config_path) {
            Ok(content) => match serde_json::from_str::<Value>(&content) {
                Ok(parsed) if parsed.is_object() => parsed,
                Ok(_) => {
                    return SetupResult {
                        name: "Zed Editor".to_string(),
                        path: config_path.to_path_buf(),
                        success: false,
                        message: "Existing configuration is not a valid JSON object. Aborting to prevent corruption.".to_string(),
                    };
                }
                Err(e) => {
                    return SetupResult {
                        name: "Zed Editor".to_string(),
                        path: config_path.to_path_buf(),
                        success: false,
                        message: format!(
                            "Refusing to overwrite unparseable configuration file: {}",
                            e
                        ),
                    };
                }
            },
            Err(e) => {
                return SetupResult {
                    name: "Zed Editor".to_string(),
                    path: config_path.to_path_buf(),
                    success: false,
                    message: format!("Failed to read existing configuration: {}", e),
                };
            }
        }
    } else {
        json!({})
    };

    if config_path.exists() {
        if let Err(err_msg) = safe_backup(config_path) {
            return SetupResult {
                name: "Zed Editor".to_string(),
                path: config_path.to_path_buf(),
                success: false,
                message: err_msg,
            };
        }
    }

    let root_obj = match config.as_object_mut() {
        Some(obj) => obj,
        None => {
            return SetupResult {
                name: "Zed Editor".to_string(),
                path: config_path.to_path_buf(),
                success: false,
                message: "Internal error: configuration is not a valid JSON object".to_string(),
            };
        }
    };

    let context_servers = root_obj
        .entry("context_servers")
        .or_insert_with(|| json!({}));

    if let Some(servers_obj) = context_servers.as_object_mut() {
        let new_entry = json!({
            "command": {
                "path": binary_path,
                "args": ["serve"]
            }
        });
        if let Some(existing) = servers_obj.get("intermcp") {
            if existing != &new_entry {
                tracing::warn!("Overwriting existing 'intermcp' context server in Zed Editor");
            }
        }
        servers_obj.insert("intermcp".to_string(), new_entry);
    }

    match serde_json::to_string_pretty(&config) {
        Ok(serialized) => match atomic_write_json(parent, config_path, &serialized) {
            Ok(_) => SetupResult {
                name: "Zed Editor".to_string(),
                path: config_path.to_path_buf(),
                success: true,
                message: "Successfully configured and merged InterMCP context server".to_string(),
            },
            Err(e) => SetupResult {
                name: "Zed Editor".to_string(),
                path: config_path.to_path_buf(),
                success: false,
                message: format!("Failed atomic write: {}", e),
            },
        },
        Err(e) => SetupResult {
            name: "Zed Editor".to_string(),
            path: config_path.to_path_buf(),
            success: false,
            message: format!("Serialization error: {}", e),
        },
    }
}

fn get_claude_desktop_path() -> PathBuf {
    #[cfg(target_os = "windows")]
    {
        let appdata = std::env::var("APPDATA").unwrap_or_else(|_| "C:\\".into());
        PathBuf::from(appdata)
            .join("Claude")
            .join("claude_desktop_config.json")
    }
    #[cfg(target_os = "macos")]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join("Library")
            .join("Application Support")
            .join("Claude")
            .join("claude_desktop_config.json")
    }
    #[cfg(not(any(target_os = "windows", target_os = "macos")))]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join(".config")
            .join("Claude")
            .join("claude_desktop_config.json")
    }
}

fn get_cursor_path() -> PathBuf {
    #[cfg(target_os = "windows")]
    {
        let userprofile = std::env::var("USERPROFILE").unwrap_or_else(|_| "C:\\".into());
        PathBuf::from(userprofile).join(".cursor").join("mcp.json")
    }
    #[cfg(not(target_os = "windows"))]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home).join(".cursor").join("mcp.json")
    }
}

fn get_windsurf_path() -> PathBuf {
    #[cfg(target_os = "windows")]
    {
        let userprofile = std::env::var("USERPROFILE").unwrap_or_else(|_| "C:\\".into());
        PathBuf::from(userprofile)
            .join(".codeium")
            .join("windsurf")
            .join("mcp_config.json")
    }
    #[cfg(not(target_os = "windows"))]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join(".codeium")
            .join("windsurf")
            .join("mcp_config.json")
    }
}

fn get_cline_path() -> PathBuf {
    #[cfg(target_os = "windows")]
    {
        let appdata = std::env::var("APPDATA").unwrap_or_else(|_| "C:\\".into());
        PathBuf::from(appdata)
            .join("Code")
            .join("User")
            .join("globalStorage")
            .join("saoudrizwan.claude-dev")
            .join("settings")
            .join("cline_mcp_settings.json")
    }
    #[cfg(target_os = "macos")]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join("Library")
            .join("Application Support")
            .join("Code")
            .join("User")
            .join("globalStorage")
            .join("saoudrizwan.claude-dev")
            .join("settings")
            .join("cline_mcp_settings.json")
    }
    #[cfg(not(any(target_os = "windows", target_os = "macos")))]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join(".config")
            .join("Code")
            .join("User")
            .join("globalStorage")
            .join("saoudrizwan.claude-dev")
            .join("settings")
            .join("cline_mcp_settings.json")
    }
}

fn get_roo_code_path() -> PathBuf {
    #[cfg(target_os = "windows")]
    {
        let appdata = std::env::var("APPDATA").unwrap_or_else(|_| "C:\\".into());
        PathBuf::from(appdata)
            .join("Code")
            .join("User")
            .join("globalStorage")
            .join("rooveterinaryinc.roo-cline")
            .join("settings")
            .join("cline_mcp_settings.json")
    }
    #[cfg(target_os = "macos")]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join("Library")
            .join("Application Support")
            .join("Code")
            .join("User")
            .join("globalStorage")
            .join("rooveterinaryinc.roo-cline")
            .join("settings")
            .join("cline_mcp_settings.json")
    }
    #[cfg(not(any(target_os = "windows", target_os = "macos")))]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join(".config")
            .join("Code")
            .join("User")
            .join("globalStorage")
            .join("rooveterinaryinc.roo-cline")
            .join("settings")
            .join("cline_mcp_settings.json")
    }
}

fn get_zed_path() -> PathBuf {
    #[cfg(target_os = "windows")]
    {
        let appdata = std::env::var("APPDATA").unwrap_or_else(|_| "C:\\".into());
        PathBuf::from(appdata).join("Zed").join("settings.json")
    }
    #[cfg(target_os = "macos")]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join("Library")
            .join("Application Support")
            .join("Zed")
            .join("settings.json")
    }
    #[cfg(not(any(target_os = "windows", target_os = "macos")))]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join(".config")
            .join("zed")
            .join("settings.json")
    }
}

fn get_continue_path() -> PathBuf {
    #[cfg(target_os = "windows")]
    {
        let userprofile = std::env::var("USERPROFILE").unwrap_or_else(|_| "C:\\".into());
        PathBuf::from(userprofile)
            .join(".continue")
            .join("config.json")
    }
    #[cfg(not(target_os = "windows"))]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home).join(".continue").join("config.json")
    }
}

fn get_antigravity_ide_path() -> PathBuf {
    #[cfg(target_os = "windows")]
    {
        let userprofile = std::env::var("USERPROFILE").unwrap_or_else(|_| "C:\\".into());
        PathBuf::from(userprofile)
            .join(".gemini")
            .join("antigravity-ide")
            .join("mcp_config.json")
    }
    #[cfg(not(target_os = "windows"))]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join(".gemini")
            .join("antigravity-ide")
            .join("mcp_config.json")
    }
}

fn get_antigravity_path() -> PathBuf {
    #[cfg(target_os = "windows")]
    {
        let userprofile = std::env::var("USERPROFILE").unwrap_or_else(|_| "C:\\".into());
        PathBuf::from(userprofile)
            .join(".gemini")
            .join("config")
            .join("mcp_config.json")
    }
    #[cfg(not(target_os = "windows"))]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join(".gemini")
            .join("config")
            .join("mcp_config.json")
    }
}

fn get_kilo_path() -> PathBuf {
    #[cfg(target_os = "windows")]
    {
        let appdata = std::env::var("APPDATA").unwrap_or_else(|_| "C:\\".into());
        PathBuf::from(appdata)
            .join("Code")
            .join("User")
            .join("globalStorage")
            .join("kilo.kilo-code")
            .join("settings")
            .join("mcp_settings.json")
    }
    #[cfg(target_os = "macos")]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join("Library")
            .join("Application Support")
            .join("Code")
            .join("User")
            .join("globalStorage")
            .join("kilo.kilo-code")
            .join("settings")
            .join("mcp_settings.json")
    }
    #[cfg(not(any(target_os = "windows", target_os = "macos")))]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join(".config")
            .join("Code")
            .join("User")
            .join("globalStorage")
            .join("kilo.kilo-code")
            .join("settings")
            .join("mcp_settings.json")
    }
}

fn get_vscode_path() -> PathBuf {
    #[cfg(target_os = "windows")]
    {
        let appdata = std::env::var("APPDATA").unwrap_or_else(|_| "C:\\".into());
        PathBuf::from(appdata)
            .join("Code")
            .join("User")
            .join("mcp.json")
    }
    #[cfg(target_os = "macos")]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join("Library")
            .join("Application Support")
            .join("Code")
            .join("User")
            .join("mcp.json")
    }
    #[cfg(not(any(target_os = "windows", target_os = "macos")))]
    {
        let home = std::env::var("HOME").unwrap_or_else(|_| "/".into());
        PathBuf::from(home)
            .join(".config")
            .join("Code")
            .join("User")
            .join("mcp.json")
    }
}