Skip to main content
Glama
s2005

Windows CLI MCP Server

by s2005

validate_directories

Validate directory paths against allowed working directories in Windows CLI environments, supporting global or shell-specific validation modes for security compliance.

Instructions

Check if directories are within allowed paths (only available when restrictWorkingDirectory is enabled)

Validation Modes:

  • Global: Validates against server-wide allowed paths (default)

  • Shell-specific: Validates against a specific shell's allowed paths

Shell-Specific Validation: Add the "shell" parameter to validate for a specific shell:

{ "directories": ["/home/user", "/tmp"], "shell": "wsl" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
directoriesYesList of directory paths to validate
shellNoOptional: Validate against a specific shell's allowed paths instead of global paths

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/s2005/wcli0'

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