@splicr/mcp-server 0.10.2 → 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.
package/dist/cli.js
CHANGED
|
@@ -276,6 +276,7 @@ async function setup() {
|
|
|
276
276
|
console.error(`\n Done! Splicr is connected to ${configured} agent(s).\n`);
|
|
277
277
|
console.error(' Start saving knowledge — it\'ll show up when you code:\n');
|
|
278
278
|
console.error(' Telegram t.me/SplicrBot — save links and text from your phone');
|
|
279
|
+
console.error(' Extension chromewebstore.google.com/detail/dllhofjfmkmbdadilbdgojapfbmlhnla — save from browser');
|
|
279
280
|
console.error(' Agent your coding agent can save with save_from_agent tool');
|
|
280
281
|
console.error(' Dashboard splicr.dev/dashboard — view everything you\'ve saved\n');
|
|
281
282
|
console.error(' Start a new session in any agent to begin.\n');
|
|
@@ -1110,6 +1111,7 @@ function printHelp() {
|
|
|
1110
1111
|
1. Run: npx @splicr/mcp-server setup
|
|
1111
1112
|
2. Save knowledge from anywhere:
|
|
1112
1113
|
- Telegram: t.me/SplicrBot (send links from your phone)
|
|
1114
|
+
- Extension: chromewebstore.google.com/detail/dllhofjfmkmbdadilbdgojapfbmlhnla
|
|
1113
1115
|
- Agent: save_from_agent tool (agents save learnings)
|
|
1114
1116
|
3. Open any coding agent — your saves show up when relevant
|
|
1115
1117
|
4. Dashboard: splicr.dev/dashboard
|
|
@@ -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 +
|