mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-12-02 21:14:15 +01:00
Better MCP server lifecycle
This commit is contained in:
1 parent
04eec0ee05
commit
2ccee0dc70
3 files changed
+24
-15
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user