We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02f5cea commit eaa61afCopy full SHA for eaa61af
packages/plugin-code-execution/deno.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@mcpc/plugin-code-execution",
3
- "version": "0.0.4",
+ "version": "0.0.5",
4
"repository": {
5
"type": "git",
6
"url": "git+https://github.com/mcpc-tech/mcpc.git"
packages/plugin-code-execution/src/plugin.ts
@@ -77,7 +77,7 @@ export function createCodeExecutionPlugin(
77
const contentParts: CallToolResult["content"] = [];
78
79
// Execute code
80
- if (code) {
+ if (code && hasDefinitions.length > 0) {
81
if (!executor) throw new Error("Sandbox not initialized");
82
83
const result = await executor.executeCode(code, hasDefinitions);
0 commit comments