Skip to main content
Glama
eva-wanxin-git

Windows Automation MCP Server

create_directory

Create new directories on Windows systems to organize files and manage storage structure. Specify the path where the directory should be created.

Instructions

创建目录

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes目录路径

Implementation Reference

  • The handler function that creates the directory using fs.mkdir with recursive option and returns success/error response.
    async createDirectory(dirPath) { try { await fs.mkdir(dirPath, { recursive: true }); return { success: true, path: dirPath, message: '目录创建成功' }; } catch (error) { return { success: false, error: error.message }; } }
  • Tool definition including name, description, and input schema for the create_directory tool.
    { name: 'create_directory', description: '创建目录', inputSchema: { type: 'object', properties: { path: { type: 'string', description: '目录路径' }, }, required: ['path'], }, },
  • Registration in the executeTool switch statement dispatching to the createDirectory handler.
    case 'create_directory': return await this.createDirectory(args.path);
  • Inclusion in the canHandle tools array for checking if the tool can be handled.
    const tools = ['read_file', 'write_file', 'list_directory', 'create_directory', 'delete_file', 'copy_file', 'move_file', 'search_files'];

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/eva-wanxin-git/windows-automation-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server