@splicr/mcp-server 0.10.3 → 0.10.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.
|
@@ -68,7 +68,8 @@ export async function handleBrowseProject(args) {
|
|
|
68
68
|
const cat = c.category || '';
|
|
69
69
|
const preview = c.insight_preview || '';
|
|
70
70
|
const projects = c.projects?.length > 0 ? c.projects.join(', ') : '';
|
|
71
|
-
|
|
71
|
+
const teammate = c.from_teammate ? ' (from teammate)' : '';
|
|
72
|
+
let line = `${idx}. **${c.title || 'Untitled'}**${teammate}${relevance}\n`;
|
|
72
73
|
line += ` ${cat}${source ? ' · ' + source : ''} · ${date}`;
|
|
73
74
|
if (projects)
|
|
74
75
|
line += ` · → ${projects}`;
|
|
@@ -57,6 +57,7 @@ export async function handleGrepKnowledge(args) {
|
|
|
57
57
|
session.addContextServed(data.results.map((r) => r.id).filter(Boolean));
|
|
58
58
|
const formatted = data.results.map((r, i) => {
|
|
59
59
|
const age = formatAge(r.created_at);
|
|
60
|
+
const teammate = r.from_teammate ? ' (from teammate)' : '';
|
|
60
61
|
const projects = r.projects?.length > 0 ? ` -> ${r.projects.join(', ')}` : '';
|
|
61
62
|
const clusterTag = r.cluster?.name
|
|
62
63
|
? `\n cluster: "${r.cluster.name}" (${r.cluster.member_count - 1} more)`
|
|
@@ -64,7 +65,7 @@ export async function handleGrepKnowledge(args) {
|
|
|
64
65
|
const compiledTag = r.compiled_page
|
|
65
66
|
? `\n compiled: "${r.compiled_page.title}" - call get_compiled_page("${r.compiled_page.id}")`
|
|
66
67
|
: '';
|
|
67
|
-
return `${i + 1}. **${r.title || 'Untitled'}
|
|
68
|
+
return `${i + 1}. **${r.title || 'Untitled'}**${teammate}\n` +
|
|
68
69
|
` ${r.insight ? r.insight.substring(0, 150) : 'No insight'}\n` +
|
|
69
70
|
` ${r.source_type || 'unknown'} | ${age} | tags: ${r.tags?.join(', ') || 'none'}${projects}` +
|
|
70
71
|
clusterTag + compiledTag +
|
|
@@ -105,6 +105,7 @@ function formatResults(results) {
|
|
|
105
105
|
: 'n/a';
|
|
106
106
|
const why = r.why_relevant ? `\n why: ${r.why_relevant}` : '';
|
|
107
107
|
const crossTag = r.cross_project ? ' (cross-project)' : '';
|
|
108
|
+
const teammateTag = r.from_teammate ? ' (from teammate)' : '';
|
|
108
109
|
const clusterTag = r.cluster?.name
|
|
109
110
|
? `\n cluster: "${r.cluster.name}" (${r.cluster.member_count - 1} more related saves)`
|
|
110
111
|
: r.cluster?.member_count > 1
|
|
@@ -113,7 +114,7 @@ function formatResults(results) {
|
|
|
113
114
|
const compiledTag = r.compiled_page
|
|
114
115
|
? `\n compiled: "${r.compiled_page.title}" — call get_compiled_page("${r.compiled_page.id}") for the synthesized wiki page`
|
|
115
116
|
: '';
|
|
116
|
-
return `${i + 1}. **${r.title || 'Untitled'}**${crossTag}\n` +
|
|
117
|
+
return `${i + 1}. **${r.title || 'Untitled'}**${teammateTag}${crossTag}\n` +
|
|
117
118
|
` ${r.insight}\n` +
|
|
118
119
|
` source: ${r.source_type || 'unknown'} | saved: ${age} | match: ${score} | tags: ${r.tags?.join(', ') || 'none'}${r.source_url ? `\n url: ${r.source_url}` : ''}` +
|
|
119
120
|
why + clusterTag + compiledTag +
|