mcp-config-manager 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-config-manager",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Simple CLI and web UI to manage MCP configs across multiple AI clients",
5
5
  "main": "src/cli.js",
6
6
  "bin": {
@@ -129,10 +129,11 @@ export class MCPConfigManager {
129
129
  configHash: this.getServerConfigHash(serverConfig || {})
130
130
  };
131
131
  }
132
+ const configPath = await this.getConfigPath(clientId);
132
133
  allServers[serverName].clients.push({
133
134
  id: clientId,
134
135
  name: clientInfo.name,
135
- configPath: this.getConfigPath(clientId)
136
+ configPath
136
137
  });
137
138
  // If a server exists globally and in a client, mark it as global
138
139
  if (globalServers[serverName]) {
@@ -180,19 +181,21 @@ export class MCPConfigManager {
180
181
  try {
181
182
  const config = await this.readConfig(key);
182
183
  const serverCount = Object.keys(config.servers).length;
184
+ const configPath = await this.getConfigPath(key);
183
185
  clientsWithConfigs.push({
184
186
  id: key,
185
187
  name: client.name,
186
- configPath: this.getConfigPath(key),
188
+ configPath,
187
189
  serverCount,
188
190
  exists: true
189
191
  });
190
192
  } catch (error) {
191
193
  console.error(`Error processing client ${key}:`, error.message);
194
+ const configPath = await this.getConfigPath(key);
192
195
  clientsWithConfigs.push({
193
196
  id: key,
194
197
  name: client.name,
195
- configPath: this.getConfigPath(key),
198
+ configPath,
196
199
  serverCount: 0,
197
200
  exists: false
198
201
  });