Better MCP server lifecycle

This commit is contained in:
Gregory Schier
2026-01-02 07:31:54 -08:00
parent 04eec0ee05
commit 2ccee0dc70
3 changed files with 24 additions and 15 deletions

View File

@@ -9,6 +9,7 @@ export const plugin: PluginDefinition = {
async init(ctx: Context) {
// Start the server after waiting, so there's an active window open to do things
// like show the startup toast.
console.log('Initializing MCP Server plugin');
setTimeout(() => {
mcpServer = createMcpServer({ yaak: ctx }, serverPort);
}, 5000);