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