Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mcpc/core",
"version": "0.3.2",
"version": "0.3.3",
"repository": {
"type": "git",
"url": "git+https://github.com/mcpc-tech/mcpc.git"
Expand Down
8 changes: 8 additions & 0 deletions packages/core/src/compose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,14 @@ export class ComposableMCPServer extends Server {
await this.pluginManager.dispose();
}

/**
* Close the server and ensure all plugins are disposed
*/
override async close(): Promise<void> {
await this.disposePlugins();
await super.close();
}

async compose(
name: string | null,
description: string,
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-code-execution/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mcpc/plugin-code-execution",
"version": "0.0.2",
"version": "0.0.3",
"repository": {
"type": "git",
"url": "git+https://github.com/mcpc-tech/mcpc.git"
Expand All @@ -13,8 +13,8 @@
"imports": {
"@std/assert": "jsr:@std/assert@^1.0.0",
"@modelcontextprotocol/sdk": "npm:@modelcontextprotocol/sdk@^1.8.0",
"@mcpc/core": "jsr:@mcpc/core@^0.3.2",
"deno": "npm:deno@^2.5.6"
"@mcpc/core": "jsr:@mcpc/core@^0.3.3",
"@mcpc-tech/handle-sandbox": "npm:@mcpc-tech/handle-sandbox@^0.0.7"
},
"publish": {
"exclude": ["examples/**", "tests/**", "logs/**"]
Expand Down
2 changes: 0 additions & 2 deletions packages/plugin-code-execution/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ export {
SandboxExecutor,
type ToolCallHandler,
} from "./src/sandbox-executor.ts";
export { JsonRpcHandler } from "./src/json-rpc.ts";
export * from "./src/types.ts";
167 changes: 0 additions & 167 deletions packages/plugin-code-execution/sandbox/runtime.ts

This file was deleted.

90 changes: 0 additions & 90 deletions packages/plugin-code-execution/src/json-rpc.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/plugin-code-execution/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function createCodeExecutionPlugin(
const contentParts: CallToolResult["content"] = [];

// Execute code
if (code && hasDefinitions.length > 0) {
if (code) {
if (!executor) throw new Error("Sandbox not initialized");

const result = await executor.executeCode(code, hasDefinitions);
Expand Down
Loading