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