Skip to content

Commit e881da2

Browse files
authored
Added KIRO support to MCP setup (#1326)
* Added KIRO support to MCP setup I also found a bug on the allowed clients. * False alert on client bug
1 parent 87f7311 commit e881da2

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

src/pkg/mcp/setup.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const (
6161
MCPClientCascade MCPClient = "cascade"
6262
MCPClientCodeium MCPClient = "codeium"
6363
MCPClientCursor MCPClient = "cursor"
64+
MCPClientKiro MCPClient = "kiro"
6465
)
6566

6667
// ValidVSCodeClients is a list of supported VSCode MCP clients with shorthand names
@@ -79,6 +80,7 @@ var ValidClients = append(
7980
MCPClientCascade,
8081
MCPClientCodeium,
8182
MCPClientCursor,
83+
MCPClientKiro,
8284
},
8385
ValidVSCodeClients...,
8486
)
@@ -123,6 +125,11 @@ var cursorConfig = ClientInfo{
123125
useHomeDir: true,
124126
}
125127

128+
var kiroConfig = ClientInfo{
129+
configFile: ".kiro/settings/mcp.json",
130+
useHomeDir: true,
131+
}
132+
126133
// clientRegistry maps client names to their configuration details
127134
var clientRegistry = map[MCPClient]ClientInfo{
128135
MCPClientWindsurf: windsurfConfig,
@@ -134,6 +141,7 @@ var clientRegistry = map[MCPClient]ClientInfo{
134141
MCPClientInsiders: codeInsidersConfig,
135142
MCPClientClaude: claudeConfig,
136143
MCPClientCursor: cursorConfig,
144+
MCPClientKiro: kiroConfig,
137145
}
138146

139147
// getSystemConfigDir returns the system configuration directory for the given OS

src/pkg/mcp/setup_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,22 @@ func TestGetClientConfigPath(t *testing.T) {
8989
expectedPath: filepath.Join(homeDir, ".cursor", "settings.json"),
9090
},
9191

92+
// Kiro tests - Darwin
93+
{
94+
name: "kiro_darwin",
95+
client: MCPClientKiro,
96+
goos: "darwin",
97+
expectedPath: filepath.Join(homeDir, ".kiro", "settings", "mcp.json"),
98+
},
99+
100+
// Kiro tests - Linux
101+
{
102+
name: "kiro_linux",
103+
client: MCPClientKiro,
104+
goos: "linux",
105+
expectedPath: filepath.Join(homeDir, ".kiro", "settings", "mcp.json"),
106+
},
107+
92108
// VSCode tests - Darwin
93109
{
94110
name: "vscode_darwin",

0 commit comments

Comments
 (0)