Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 } }

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/simon-ami/win-cli-mcp-server'

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