@neurynae/toolcairn-mcp 0.10.8 → 0.10.9
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/index.js +14 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6105,19 +6105,6 @@ async function main() {
|
|
|
6105
6105
|
let server;
|
|
6106
6106
|
if (authenticated) {
|
|
6107
6107
|
logger26.info({ user: creds.user_email }, "Authenticated \u2014 starting full server");
|
|
6108
|
-
try {
|
|
6109
|
-
const summary = await runPostAuthInit({ agent: "claude" });
|
|
6110
|
-
logger26.info(
|
|
6111
|
-
{
|
|
6112
|
-
roots: summary.roots_discovered.length,
|
|
6113
|
-
provisioned: summary.projects.length,
|
|
6114
|
-
unknown_tools_total: summary.unknown_tools_total
|
|
6115
|
-
},
|
|
6116
|
-
"Startup auto-refresh complete"
|
|
6117
|
-
);
|
|
6118
|
-
} catch (err) {
|
|
6119
|
-
logger26.warn({ err }, "Startup auto-refresh failed \u2014 continuing with tool registration");
|
|
6120
|
-
}
|
|
6121
6108
|
server = await buildProdServer();
|
|
6122
6109
|
} else {
|
|
6123
6110
|
let verificationUri = "https://toolcairn.neurynae.com/signup";
|
|
@@ -6197,6 +6184,20 @@ After sign-in the server will automatically provision .toolcairn/config.json for
|
|
|
6197
6184
|
const transport = createTransport();
|
|
6198
6185
|
await server.connect(transport);
|
|
6199
6186
|
logger26.info(authenticated ? "ToolCairn MCP ready" : "ToolCairn MCP ready (awaiting sign-in)");
|
|
6187
|
+
if (authenticated) {
|
|
6188
|
+
void runPostAuthInit({ agent: "claude" }).then((summary) => {
|
|
6189
|
+
logger26.info(
|
|
6190
|
+
{
|
|
6191
|
+
roots: summary.roots_discovered.length,
|
|
6192
|
+
provisioned: summary.projects.length,
|
|
6193
|
+
unknown_tools_total: summary.unknown_tools_total
|
|
6194
|
+
},
|
|
6195
|
+
"Background auto-refresh complete"
|
|
6196
|
+
);
|
|
6197
|
+
}).catch((err) => {
|
|
6198
|
+
logger26.warn({ err }, "Background auto-refresh failed \u2014 config left as-is");
|
|
6199
|
+
});
|
|
6200
|
+
}
|
|
6200
6201
|
}
|
|
6201
6202
|
main().catch((error) => {
|
|
6202
6203
|
(0, import_errors28.createMcpLogger)({ name: "@toolcairn/mcp-server" }).error(
|