@flowrelay/mcp-server 1.0.1 → 1.0.2
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/api.d.ts +4 -0
- package/dist/index.js +5 -13
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -58,6 +58,8 @@ export interface HandoffResult {
|
|
|
58
58
|
next_steps: string[];
|
|
59
59
|
created_at: string;
|
|
60
60
|
updated_at?: string;
|
|
61
|
+
/** Canonical Markdown rendered server-side – identical to the dashboard copy button. */
|
|
62
|
+
markdown?: string;
|
|
61
63
|
}
|
|
62
64
|
export interface InsightResult {
|
|
63
65
|
id: string;
|
|
@@ -77,6 +79,8 @@ export interface InsightResult {
|
|
|
77
79
|
related_event_ids: string[];
|
|
78
80
|
created_at: string;
|
|
79
81
|
updated_at?: string;
|
|
82
|
+
/** Canonical Markdown rendered server-side – identical to the dashboard copy button. */
|
|
83
|
+
markdown?: string;
|
|
80
84
|
}
|
|
81
85
|
export interface UntrackedResource {
|
|
82
86
|
source: string;
|
package/dist/index.js
CHANGED
|
@@ -222,16 +222,8 @@ server.tool('generate_handoff', 'Generate a new context handoff for personal sco
|
|
|
222
222
|
return { content: [{ type: 'text', text: `Could not generate handoff: ${reason}` }] };
|
|
223
223
|
}
|
|
224
224
|
const handoff = result;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
text += `\n**Project:** ${handoff.project_name}\n`;
|
|
228
|
-
text += `\n**Sources:** ${handoff.sources.join(', ')}\n`;
|
|
229
|
-
if (handoff.key_changes?.length)
|
|
230
|
-
text += `\n**Key changes:**\n${handoff.key_changes.map((c) => `- ${c}`).join('\n')}\n`;
|
|
231
|
-
if (handoff.decisions.length)
|
|
232
|
-
text += `\n**Decisions:**\n${handoff.decisions.map((d) => `- ${d}`).join('\n')}\n`;
|
|
233
|
-
if (handoff.next_steps.length)
|
|
234
|
-
text += `\n**Next steps:**\n${handoff.next_steps.map((s) => `- ${s}`).join('\n')}\n`;
|
|
225
|
+
// Server renders the canonical Markdown; fall back for pre-markdown servers.
|
|
226
|
+
const text = handoff.markdown ?? `# ${handoff.title}\n\n${handoff.summary}\n`;
|
|
235
227
|
return { content: [{ type: 'text', text }] };
|
|
236
228
|
}
|
|
237
229
|
catch (err) {
|
|
@@ -369,7 +361,7 @@ server.tool('generate_correlation_insight', 'Generate a cross-source correlation
|
|
|
369
361
|
return { content: [{ type: 'text', text: `Could not generate correlation insight: ${reason}` }] };
|
|
370
362
|
}
|
|
371
363
|
const insight = result;
|
|
372
|
-
return { content: [{ type: 'text', text: `# ${insight.title}\n\n${insight.summary}` }] };
|
|
364
|
+
return { content: [{ type: 'text', text: insight.markdown ?? `# ${insight.title}\n\n${insight.summary}` }] };
|
|
373
365
|
}
|
|
374
366
|
catch (err) {
|
|
375
367
|
return { content: [{ type: 'text', text: `Failed: ${err.message}` }] };
|
|
@@ -400,7 +392,7 @@ server.tool('generate_onboarding_brief', 'Generate an onboarding brief AI insigh
|
|
|
400
392
|
return { content: [{ type: 'text', text: `Could not generate onboarding brief: ${reason}` }] };
|
|
401
393
|
}
|
|
402
394
|
const insight = result;
|
|
403
|
-
return { content: [{ type: 'text', text: `# ${insight.title}\n\n${insight.summary}` }] };
|
|
395
|
+
return { content: [{ type: 'text', text: insight.markdown ?? `# ${insight.title}\n\n${insight.summary}` }] };
|
|
404
396
|
}
|
|
405
397
|
catch (err) {
|
|
406
398
|
return { content: [{ type: 'text', text: `Failed: ${err.message}` }] };
|
|
@@ -429,7 +421,7 @@ server.tool('generate_architecture_insight', 'Generate an architecture insight A
|
|
|
429
421
|
return { content: [{ type: 'text', text: `Could not generate architecture insight: ${reason}` }] };
|
|
430
422
|
}
|
|
431
423
|
const insight = result;
|
|
432
|
-
return { content: [{ type: 'text', text: `# ${insight.title}\n\n${insight.summary}` }] };
|
|
424
|
+
return { content: [{ type: 'text', text: insight.markdown ?? `# ${insight.title}\n\n${insight.summary}` }] };
|
|
433
425
|
}
|
|
434
426
|
catch (err) {
|
|
435
427
|
return { content: [{ type: 'text', text: `Failed: ${err.message}` }] };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowrelay/mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Flow Relay MCP Server for Claude Desktop and Claude Code – handoffs, integrations, and context events via natural conversation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|