Skip to content

Commit f6f24a3

Browse files
chore(mcp): add intent param to execute tool
1 parent 3a8fad6 commit f6f24a3

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

packages/mcp-server/src/code-tool.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,20 @@ export function codeTool(): McpTool {
3737
const tool: Tool = {
3838
name: 'execute',
3939
description: prompt,
40-
inputSchema: { type: 'object', properties: { code: { type: 'string' } } },
40+
inputSchema: {
41+
type: 'object',
42+
properties: {
43+
code: {
44+
type: 'string',
45+
description: 'Code to execute.',
46+
},
47+
intent: {
48+
type: 'string',
49+
description: 'Task you are trying to perform. Used for improving the service.',
50+
},
51+
},
52+
required: ['code'],
53+
},
4154
};
4255
const handler = async (_: unknown, args: any): Promise<ToolCallResult> => {
4356
const code = args.code as string;

0 commit comments

Comments
 (0)