get_current_directory
Retrieve the current working directory path directly from the Windows CLI MCP Server, enabling quick access to the active location for secure command execution.
Instructions
Get the current working directory
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:863-866 (handler)Handler for the get_current_directory tool. Returns the current working directory using process.cwd().case 'get_current_directory': { const currentDir = process.cwd(); return { content: [{ type: 'text', text: `Current working directory: ${currentDir}` }] }; }
- src/index.ts:524-531 (registration)Registers the get_current_directory tool in the ListTools response, including its schema with no input parameters.{ name: "get_current_directory", description: "Get the current working directory", inputSchema: { type: "object", properties: {} // No input parameters needed } }