secondbrainos-mcp-server 1.5.1 → 1.5.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/build/index.js +3 -4
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -661,13 +661,12 @@ class SecondBrainOSServer {
|
|
|
661
661
|
// This method is kept for future error handling implementations
|
|
662
662
|
}
|
|
663
663
|
async run() {
|
|
664
|
+
// Write skill files before connecting so Claude Code sees them at session start.
|
|
665
|
+
// This is fast now (~2-3s) since enrichment uses single API calls.
|
|
666
|
+
await this.writeSkillFiles().catch(err => console.error('Failed to write skill files:', err));
|
|
664
667
|
const transport = new StdioServerTransport();
|
|
665
668
|
await this.server.connect(transport);
|
|
666
669
|
console.error("Second Brain OS MCP server running on stdio");
|
|
667
|
-
// Write skill files AFTER connecting so the MCP handshake completes
|
|
668
|
-
// within Claude Code's 30s timeout. Skill files are written in the
|
|
669
|
-
// background — they'll be available for subsequent conversations.
|
|
670
|
-
this.writeSkillFiles().catch(err => console.error('Failed to write skill files:', err));
|
|
671
670
|
}
|
|
672
671
|
}
|
|
673
672
|
SecondBrainOSServer.ALLOWED_EXTENSIONS = ['.txt', '.md'];
|