Skip to content

Commit 021ec78

Browse files
authored
Merge pull request #28 from mcpc-tech/feat/allow-custom-mode-name
feat: update plugin-code-execution to version 0.0.4 and change mode t…
2 parents 57979bd + f58cc05 commit 021ec78

File tree

8 files changed

+36
-11
lines changed

8 files changed

+36
-11
lines changed

deno.lock

Lines changed: 26 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.4",
3+
"version": "0.3.5",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/mcpc-tech/mcpc.git"

packages/core/src/prompts/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export type ExecutionMode =
3434
| "agentic_workflow"
3535
| "agentic_sampling"
3636
| "agentic_workflow_sampling"
37-
| "custom";
37+
| (string & Record<never, never>);
3838

3939
/**
4040
* Prompt template configuration

packages/plugin-code-execution/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const server = await mcpc(
6767
}),
6868
],
6969
options: {
70-
mode: "custom",
70+
mode: "code_execution",
7171
},
7272
}],
7373
);

packages/plugin-code-execution/deno.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mcpc/plugin-code-execution",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/mcpc-tech/mcpc.git"
@@ -13,7 +13,7 @@
1313
"imports": {
1414
"@std/assert": "jsr:@std/assert@^1.0.0",
1515
"@modelcontextprotocol/sdk": "npm:@modelcontextprotocol/sdk@^1.8.0",
16-
"@mcpc/core": "jsr:@mcpc/core@^0.3.4",
16+
"@mcpc/core": "jsr:@mcpc/core@^0.3.5",
1717
"@mcpc-tech/handle-sandbox": "npm:@mcpc-tech/handle-sandbox@^0.0.7"
1818
},
1919
"publish": {

packages/plugin-code-execution/examples/basic-usage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The code can call MCP tools via \`callMCPTool(toolName, params)\` function.`,
4242
}),
4343
],
4444
options: {
45-
mode: "custom" as const,
45+
mode: "code_execution" as const,
4646
},
4747
},
4848
];

packages/plugin-code-execution/src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function createCodeExecutionPlugin(
2323
return {
2424
name: "code_execution",
2525
version: "1.0.0",
26-
apply: "custom",
26+
apply: "code_execution",
2727

2828
registerAgentTool: (context: AgentToolRegistrationContext) => {
2929
const { server, name, description, allToolNames } = context;

packages/plugin-code-execution/tests/code_execution.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Deno.test(
2323
deps: { mcpServers: {} },
2424
plugins: [createCodeExecutionPlugin()],
2525
options: {
26-
mode: "custom",
26+
mode: "code_execution",
2727
},
2828
},
2929
],
@@ -61,7 +61,7 @@ Deno.test(
6161
deps: { mcpServers: {} },
6262
plugins: [createCodeExecutionPlugin()],
6363
options: {
64-
mode: "custom",
64+
mode: "code_execution",
6565
},
6666
},
6767
],
@@ -99,7 +99,7 @@ Deno.test(
9999
deps: { mcpServers: {} },
100100
plugins: [createCodeExecutionPlugin()],
101101
options: {
102-
mode: "custom",
102+
mode: "code_execution",
103103
},
104104
},
105105
],

0 commit comments

Comments
 (0)