Skip to content

Commit a996487

Browse files
committed
feat(core): bump @mcpc/core to v0.3.3 and add close override to dispose plugins
Version bump in deno.json. Add ComposableMCPServer.close override to ensure all plugins are disposed before closing the server.
1 parent 3724d1f commit a996487

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/core/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mcpc/core",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/mcpc-tech/mcpc.git"

packages/core/src/compose.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,14 @@ export class ComposableMCPServer extends Server {
357357
await this.pluginManager.dispose();
358358
}
359359

360+
/**
361+
* Close the server and ensure all plugins are disposed
362+
*/
363+
override async close(): Promise<void> {
364+
await this.disposePlugins();
365+
await super.close();
366+
}
367+
360368
async compose(
361369
name: string | null,
362370
description: string,

0 commit comments

Comments
 (0)