@codazen/harmonica-mcp 3.8.2 → 3.8.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -22670,7 +22670,7 @@ ${beat.description}`);
22670
22670
  // ../../libs/harmonica-services/src/mcp/formatters/system-formatter.ts
22671
22671
  function formatProjectSummaryTable(projects) {
22672
22672
  if (projects.length === 0) return "_No projects found._";
22673
- const header = "| Project ID | Title | Status |\n|------------|-------|--------|";
22673
+ const header = "| System ID | Title | Status |\n|-----------|-------|--------|";
22674
22674
  const rows = projects.map((p) => {
22675
22675
  const status = p.status.replace("_", " ");
22676
22676
  return `| ${p.systemId} | ${p.title} | ${status} |`;
@@ -27444,7 +27444,7 @@ function registerNoteTools(server, ctx, client) {
27444
27444
  return { content: [{ type: "text", text: `Failed to list beat notes: ${message}` }], isError: true };
27445
27445
  }
27446
27446
  if (allBeatNotes === void 0) {
27447
- return { content: [{ type: "text", text: "Failed to list beat notes: beat or project not found" }], isError: true };
27447
+ return { content: [{ type: "text", text: "Failed to list beat notes: beat or system not found" }], isError: true };
27448
27448
  }
27449
27449
  const sorted = orderBy ? sortNotesByCreatedAt(allBeatNotes, orderBy) : allBeatNotes;
27450
27450
  const filtered = sourceDocumentNoteId ? sorted.filter((n) => n.sourceSubmissionId === sourceDocumentNoteId) : sorted;
@@ -28218,7 +28218,7 @@ ${formatTree(tree.root)}` }] };
28218
28218
  }
28219
28219
  }
28220
28220
  if (!scopeProjectId) {
28221
- return { content: [{ type: "text", text: "No project scope: pass systemId or bind the notebook to a project first." }], isError: true };
28221
+ return { content: [{ type: "text", text: "No system scope: pass systemId or bind the notebook to a system first." }], isError: true };
28222
28222
  }
28223
28223
  let tree;
28224
28224
  try {
@@ -28635,7 +28635,7 @@ function registerOnboardingTools(server, ctx, client) {
28635
28635
  const result = await client.draftOnboardingBeats(systemId, { systemTitle, projectDescription, analysisJson });
28636
28636
  if (!result.suggestions || result.suggestions.length === 0) {
28637
28637
  return {
28638
- content: [{ type: "text", text: "Failed to generate Beat suggestions. Try providing more project context." }]
28638
+ content: [{ type: "text", text: "Failed to generate Beat suggestions. Try providing more system context." }]
28639
28639
  };
28640
28640
  }
28641
28641
  const lines = [
@@ -29287,11 +29287,11 @@ function registerPortfolioCoherenceTools(server, ctx, client) {
29287
29287
  const beatMap = new Map(allProjectBeats.map((b) => [b.beatId, b]));
29288
29288
  const primaryBeat = beatMap.get(resolvedPrimaryId);
29289
29289
  if (!primaryBeat) {
29290
- return { content: [{ type: "text", text: `Primary Beat "${resolvedPrimaryId}" not found in project "${systemId}".` }], isError: true };
29290
+ return { content: [{ type: "text", text: `Primary Beat "${resolvedPrimaryId}" not found in system "${systemId}".` }], isError: true };
29291
29291
  }
29292
29292
  const missingIds = duplicateBeatIds.filter((id) => !beatMap.has(id));
29293
29293
  if (missingIds.length > 0) {
29294
- return { content: [{ type: "text", text: `Beat(s) not found in project "${systemId}": ${missingIds.join(", ")}` }], isError: true };
29294
+ return { content: [{ type: "text", text: `Beat(s) not found in system "${systemId}": ${missingIds.join(", ")}` }], isError: true };
29295
29295
  }
29296
29296
  const dupBvResults = await Promise.allSettled(
29297
29297
  duplicateBeatIds.map(
@@ -34317,7 +34317,7 @@ function loadConfig() {
34317
34317
  };
34318
34318
  }
34319
34319
  async function main() {
34320
- console.error(`[harmonica-mcp] v${"3.8.2"} starting\u2026`);
34320
+ console.error(`[harmonica-mcp] v${"3.8.4"} starting\u2026`);
34321
34321
  const config2 = loadConfig();
34322
34322
  const client = createHttpClient({
34323
34323
  apiBaseUrl: config2.apiBaseUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codazen/harmonica-mcp",
3
- "version": "3.8.2",
3
+ "version": "3.8.4",
4
4
  "description": "MCP server for Harmonica — connect any MCP-compatible AI assistant to Harmonica",
5
5
  "license": "MIT",
6
6
  "bin": {