Skip to content

Commit e37f29b

Browse files
committed
add claude code
1 parent 3cd6dde commit e37f29b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cmd/mcptools/commands/scan.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func ScanCmd() *cobra.Command {
2020
Use: "scan",
2121
Short: "Scan for available MCP servers in various configurations",
2222
Long: `Scan for available MCP servers in various configuration files of these Applications on macOS:
23-
VS Code, VS Code Insiders, Windsurf, Cursor, Claude Desktop`,
23+
VS Code, VS Code Insiders, Windsurf, Cursor, Claude Desktop, Claude Code`,
2424
Run: func(cmd *cobra.Command, _ []string) {
2525
servers, err := scanForServers()
2626
if err != nil {
@@ -310,6 +310,13 @@ func scanForServers() ([]ServerConfig, error) {
310310
servers = append(servers, claudeServers...)
311311
}
312312

313+
// Scan Claude Code
314+
claudeCodePath := filepath.Join(homeDir, ".claude.json")
315+
claudeCodeServers, err := scanMCPServersConfig(claudeCodePath, "Claude Code")
316+
if err == nil {
317+
servers = append(servers, claudeCodeServers...)
318+
}
319+
313320
return servers, nil
314321
}
315322

0 commit comments

Comments
 (0)