@codazen/harmonica-mcp 3.9.2 → 3.9.3
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/index.js +9 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24926,7 +24926,7 @@ function formatSimilarityResults(results, sourceId, label) {
|
|
|
24926
24926
|
return `No ${label} found for ${sourceId}.`;
|
|
24927
24927
|
}
|
|
24928
24928
|
const rows = results.map((r) => {
|
|
24929
|
-
const badge = r.
|
|
24929
|
+
const badge = r.systemName ? ` [${r.systemName}]` : "";
|
|
24930
24930
|
return `- **${r.entityId}**${badge} (score: ${r.score.toFixed(3)})
|
|
24931
24931
|
${r.snippet}`;
|
|
24932
24932
|
});
|
|
@@ -28763,12 +28763,12 @@ function registerOnboardingTools(server, ctx, client) {
|
|
|
28763
28763
|
{
|
|
28764
28764
|
systemId: external_exports.string().describe("The newly created system ID"),
|
|
28765
28765
|
systemTitle: external_exports.string().describe("The system title"),
|
|
28766
|
-
|
|
28766
|
+
systemDescription: external_exports.string().optional().describe("Discovery context: pain points, goals, and constraints summary to inform the Beat structure"),
|
|
28767
28767
|
analysisJson: external_exports.string().optional().describe("JSON-serialized DiscoveryAnalysis from initiate_teamspace_onboarding. Pass this to produce Beats grounded in the actual discovery data.")
|
|
28768
28768
|
},
|
|
28769
|
-
async ({ systemId, systemTitle,
|
|
28769
|
+
async ({ systemId, systemTitle, systemDescription, analysisJson }) => {
|
|
28770
28770
|
await assertSystemInOrg(client, systemId, ctx.orgId);
|
|
28771
|
-
const result = await client.draftOnboardingBeats(systemId, { systemTitle,
|
|
28771
|
+
const result = await client.draftOnboardingBeats(systemId, { systemTitle, systemDescription, analysisJson });
|
|
28772
28772
|
if (!result.suggestions || result.suggestions.length === 0) {
|
|
28773
28773
|
return {
|
|
28774
28774
|
content: [{ type: "text", text: "Failed to generate Beat suggestions. Try providing more system context." }]
|
|
@@ -30940,7 +30940,9 @@ function registerSystemTools(server, ctx, client) {
|
|
|
30940
30940
|
return { content: [{ type: "text", text: `System not found: "${systemId}"` }], isError: true };
|
|
30941
30941
|
}
|
|
30942
30942
|
if (PROJECT_EMBEDDING_FIELDS.some((f) => f in nonEmpty)) {
|
|
30943
|
-
|
|
30943
|
+
client.triggerSystemEmbedding(systemId).catch((err) => {
|
|
30944
|
+
console.error("[system-tools] triggerSystemEmbedding failed:", err instanceof Error ? err.message : String(err));
|
|
30945
|
+
});
|
|
30944
30946
|
}
|
|
30945
30947
|
const lines = [
|
|
30946
30948
|
`System updated successfully.`,
|
|
@@ -34659,7 +34661,7 @@ function createHttpClient(config2) {
|
|
|
34659
34661
|
if (!result) throw new Error(`Beat draft failed: project ${projectId} not found`);
|
|
34660
34662
|
return result;
|
|
34661
34663
|
},
|
|
34662
|
-
|
|
34664
|
+
triggerSystemEmbedding: async (projectId) => {
|
|
34663
34665
|
await request("POST", `/api/systems/${encodeURIComponent(projectId)}/embedding`);
|
|
34664
34666
|
},
|
|
34665
34667
|
// Notebooks (B-271)
|
|
@@ -34922,7 +34924,7 @@ function loadConfig() {
|
|
|
34922
34924
|
};
|
|
34923
34925
|
}
|
|
34924
34926
|
async function main() {
|
|
34925
|
-
console.error(`[harmonica-mcp] v${"3.9.
|
|
34927
|
+
console.error(`[harmonica-mcp] v${"3.9.3"} starting\u2026`);
|
|
34926
34928
|
const config2 = loadConfig();
|
|
34927
34929
|
const client = createHttpClient({
|
|
34928
34930
|
apiBaseUrl: config2.apiBaseUrl,
|