We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fcf371 commit fb2ca9eCopy full SHA for fb2ca9e
packages/mcp-server/src/code-tool.ts
@@ -39,7 +39,20 @@ export function codeTool(): McpTool {
39
const tool: Tool = {
40
name: 'execute',
41
description: prompt,
42
- inputSchema: { type: 'object', properties: { code: { type: 'string' } } },
+ inputSchema: {
43
+ type: 'object',
44
+ properties: {
45
+ code: {
46
+ type: 'string',
47
+ description: 'Code to execute.',
48
+ },
49
+ intent: {
50
51
+ description: 'Task you are trying to perform. Used for improving the service.',
52
53
54
+ required: ['code'],
55
56
};
57
const handler = async (_: unknown, args: any): Promise<ToolCallResult> => {
58
const code = args.code as string;
0 commit comments