Skip to content

Commit 7113618

Browse files
authored
fix: correctly counting file paths and not vendor groups (#16)
1 parent 0e0a5d5 commit 7113618

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/bin/cli.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ async function init () {
2828
return
2929
}
3030

31-
let groupIndex = 0
31+
let pathIndex = 0
3232
for (const groupName of Object.keys(mcpFilesList)) {
33-
groupIndex++
3433
const group = mcpFilesList[groupName]
3534

3635
if (group.paths.length >= 0) {
3736
// handle file path list of MCP Servers
3837
for (const filePathData of group.paths) {
38+
pathIndex++
39+
3940
const filePath = filePathData.filePath.replace('~', process.env.HOME || '')
4041
const filePathValid = filePathData.parsable ? 'VALID' : 'INVALID'
4142
const filePathDataType = filePathData.type.toUpperCase()
@@ -56,7 +57,7 @@ async function init () {
5657
mcpServersRunning: totalMCPServersRunning,
5758
}
5859

59-
RenderService.printMcpGroup(groupIndex, mcpGroupData, groupMetadata)
60+
RenderService.printMcpGroup(pathIndex, mcpGroupData, groupMetadata)
6061
RenderService.printMcpServers(mcpServers)
6162
}
6263
} else {

0 commit comments

Comments
 (0)