secondbrainos-mcp-server 1.2.0 → 1.2.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.
Files changed (2) hide show
  1. package/build/index.js +9 -4
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -201,13 +201,15 @@ class SecondBrainOSServer {
201
201
  }
202
202
  }
203
203
  for (const wf of workflows) {
204
+ const skillName = wf.name || wf.workflow_id;
204
205
  prompts.push({
205
- name: wf.name || wf.workflow_id,
206
+ name: skillName,
207
+ title: `[Skill] ${skillName}`,
206
208
  description: wf.description || wf.name,
207
209
  arguments: [
208
210
  {
209
211
  name: "user_input",
210
- description: "Optional context or input to guide the workflow execution",
212
+ description: "Optional context or input to guide the skill execution",
211
213
  required: false
212
214
  }
213
215
  ]
@@ -229,6 +231,7 @@ class SecondBrainOSServer {
229
231
  this.agentNameToId.set(agentPromptName, agent.id);
230
232
  prompts.push({
231
233
  name: agentPromptName,
234
+ title: `[Agent] ${agent.name}`,
232
235
  description: agent.description || agent.name,
233
236
  arguments: [
234
237
  {
@@ -278,7 +281,7 @@ class SecondBrainOSServer {
278
281
  }));
279
282
  const sortedPrompts = promptResults.sort((a, b) => (a.order || 0) - (b.order || 0));
280
283
  const workflowDocument = {
281
- workflow_id: workflowId,
284
+ skill_id: workflowId,
282
285
  name: workflowMeta?.name || promptName,
283
286
  description: workflowMeta?.description || '',
284
287
  prompts: sortedPrompts
@@ -302,7 +305,7 @@ class SecondBrainOSServer {
302
305
  });
303
306
  }
304
307
  return {
305
- description: `Workflow: ${workflowDocument.name} (${sortedPrompts.length} prompts)`,
308
+ description: `Skill: ${workflowDocument.name} (${sortedPrompts.length} prompts)`,
306
309
  messages
307
310
  };
308
311
  });
@@ -315,9 +318,11 @@ class SecondBrainOSServer {
315
318
  }
316
319
  // Build the agent document as a structured JSON object
317
320
  const agentDocument = {
321
+ agent_id: agent.id,
318
322
  name: agent.name,
319
323
  description: agent.description || '',
320
324
  behaviour_and_instructions: agent.behaviour_and_instructions || '',
325
+ searchMyKnowledge_collection_id: agent.searchMyKnowledge_collection_id || '',
321
326
  actions: agent.actions || [],
322
327
  workflows: (agent.workflows || []).map((wf) => ({
323
328
  id: wf.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secondbrainos-mcp-server",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Second Brain OS MCP Server for Claude Desktop",
5
5
  "type": "module",
6
6
  "main": "build/index.js",