metheus-governance-mcp-cli 0.2.46 → 0.2.47

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.
Files changed (2) hide show
  1. package/cli.mjs +10 -1
  2. package/package.json +1 -1
package/cli.mjs CHANGED
@@ -3719,6 +3719,7 @@ function appendProjectHintToInitialize(responseObj, args, options = {}) {
3719
3719
  const projectSummaryTool = displayToolNameForClient("project.summary", useSafeToolAliases);
3720
3720
  const projectDescribeTool = displayToolNameForClient("project.describe", useSafeToolAliases);
3721
3721
  const projectGetTool = displayToolNameForClient("project.get", useSafeToolAliases);
3722
+ const ctxpackEnsureTool = displayToolNameForClient("ctxpack.ensure", useSafeToolAliases);
3722
3723
  const ctxpackMergeBriefTool = displayToolNameForClient("ctxpack.merge.brief", useSafeToolAliases);
3723
3724
  const ctxpackMergeExecuteTool = displayToolNameForClient("ctxpack.merge.execute", useSafeToolAliases);
3724
3725
  const hintLines = [
@@ -3730,6 +3731,8 @@ function appendProjectHintToInitialize(responseObj, args, options = {}) {
3730
3731
  : []),
3731
3732
  `- MUST call \`${projectSummaryTool}\` first when the user provides only a Project ID or asks project overview/agenda.`,
3732
3733
  `- \`${projectDescribeTool}\` and \`${projectGetTool}\` are aliases of \`${projectSummaryTool}\`.`,
3734
+ `- Never handle a bare Project ID by local file/transcript search before \`${projectSummaryTool}\` succeeds.`,
3735
+ `- Run \`${ctxpackEnsureTool}\` only after \`${projectSummaryTool}\`, and only when additional ctxpack refresh/export context is needed.`,
3733
3736
  "- After project summary, use workitem/evidence/decision tools as follow-up.",
3734
3737
  `- Before any ctxpack merge, call \`${ctxpackMergeBriefTool}\` first, share recommendation to owner, get explicit owner confirmation, then call \`${ctxpackMergeExecuteTool}\`.`,
3735
3738
  "- IMPORTANT: When calling ANY tool, always include your current working directory / project folder path as the `workspace_dir` argument. This enables ctxpack files to be synced to the correct workspace location.",
@@ -3738,7 +3741,13 @@ function appendProjectHintToInitialize(responseObj, args, options = {}) {
3738
3741
  hintLines.splice(1, 0, `- Default project_id is ${args.projectID}.`);
3739
3742
  }
3740
3743
  const hint = `${hintLines.join("\n")}\n`;
3741
- const current = String(result.instructions || "").trimEnd();
3744
+ let current = String(result.instructions || "").trimEnd();
3745
+ if (current) {
3746
+ current = current.replace(
3747
+ /If a user provides only Project ID,\s*call ctxpack\.ensure first[^.\n]*[.\n]?/gi,
3748
+ `If a user provides only Project ID, call ${projectSummaryTool} first. Then call ${ctxpackEnsureTool} only if additional ctxpack refresh is needed.\n`,
3749
+ );
3750
+ }
3742
3751
  result.instructions = current ? `${hint}\n${current}` : hint;
3743
3752
  responseObj.result = result;
3744
3753
  return responseObj;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metheus-governance-mcp-cli",
3
- "version": "0.2.46",
3
+ "version": "0.2.47",
4
4
  "description": "Metheus Governance MCP CLI (setup + stdio proxy)",
5
5
  "type": "module",
6
6
  "files": [