@gethmy/mcp 2.9.0 → 2.9.1
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/dist/cli.js +4 -0
- package/package.json +1 -1
- package/src/tui/setup.ts +9 -1
package/dist/cli.js
CHANGED
|
@@ -7815,6 +7815,10 @@ async function runSetup(options = {}) {
|
|
|
7815
7815
|
localConfig.projectId = selectedProjectId;
|
|
7816
7816
|
saveLocalConfig(localConfig, cwd);
|
|
7817
7817
|
console.log(` ${colors.success("✓")} ${colors.dim(formatPath(getLocalConfigPath(cwd), home))} ${colors.dim("(created)")}`);
|
|
7818
|
+
if (selectedWorkspaceId)
|
|
7819
|
+
setActiveWorkspace(selectedWorkspaceId);
|
|
7820
|
+
if (selectedProjectId)
|
|
7821
|
+
setActiveProject(selectedProjectId);
|
|
7818
7822
|
}
|
|
7819
7823
|
console.log("");
|
|
7820
7824
|
p3.outro(colors.success("Setup complete!"));
|
package/package.json
CHANGED
package/src/tui/setup.ts
CHANGED
|
@@ -1336,7 +1336,12 @@ export async function runSetup(options: SetupOptions = {}): Promise<void> {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
1338
|
|
|
1339
|
-
// Step 9: Save local
|
|
1339
|
+
// Step 9: Save context \u2014 both local (cwd-scoped) and global (user default).
|
|
1340
|
+
// Local config only resolves when the server runs with this repo as cwd;
|
|
1341
|
+
// remote/OAuth connections and other cwds fall back to the global active
|
|
1342
|
+
// context. Writing both ensures project-scoped tools (harmony_remember,
|
|
1343
|
+
// harmony_get_context) default to the selected project everywhere, not just
|
|
1344
|
+
// inside this directory.
|
|
1340
1345
|
if (selectedWorkspaceId || selectedProjectId) {
|
|
1341
1346
|
const localConfig: { workspaceId?: string; projectId?: string } = {};
|
|
1342
1347
|
if (selectedWorkspaceId) localConfig.workspaceId = selectedWorkspaceId;
|
|
@@ -1345,6 +1350,9 @@ export async function runSetup(options: SetupOptions = {}): Promise<void> {
|
|
|
1345
1350
|
console.log(
|
|
1346
1351
|
` ${colors.success("\u2713")} ${colors.dim(formatPath(getLocalConfigPath(cwd), home))} ${colors.dim("(created)")}`,
|
|
1347
1352
|
);
|
|
1353
|
+
|
|
1354
|
+
if (selectedWorkspaceId) setActiveWorkspace(selectedWorkspaceId);
|
|
1355
|
+
if (selectedProjectId) setActiveProject(selectedProjectId);
|
|
1348
1356
|
}
|
|
1349
1357
|
|
|
1350
1358
|
// Step 10: Show completion message
|