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
//! Setup utilities for KindlyGuard MCP server
//!
//! This module provides utilities for detecting IDE environments and generating
//! appropriate MCP configuration files. It supports multiple IDEs including
//! Claude Desktop, Claude Code, VS Code, Cursor, and Neovim.
//!
//! # Example
//!
//! ```no_run
//! use kindly_guard_server::setup::{McpDetector, IdeType};
//!
//! // Create detector
//! let detector = McpDetector::new();
//!
//! // Detect active IDE
//! match detector.detect_active_ide() {
//! Ok(ide) => println!("Active IDE: {}", ide.as_str()),
//! Err(e) => eprintln!("Error detecting IDE: {}", e),
//! }
//!
//! // Find all MCP configurations
//! if let Ok(configs) = detector.detect_all() {
//! for config in configs.iter().filter(|c| c.exists) {
//! println!("Found config: {} at {}",
//! config.ide.as_str(),
//! config.path.display());
//! }
//! }
//! ```
// Re-export public types and traits
pub use ;
pub use ;
// Re-export interactive utilities
pub use ;