create_directory
Create or verify directory existence with options for parent directories and error suppression. Simplifies file system management on the MCP Filesystem Server.
Instructions
Create a new directory or ensure a directory exists.
Args:
path: Path to the directory
parents: Create parent directories if they don't exist
exist_ok: Don't raise an error if directory already exists
ctx: MCP context
Returns:
Success or error message
Input Schema
Name | Required | Description | Default |
---|---|---|---|
exist_ok | No | ||
parents | No | ||
path | Yes |
Input Schema (JSON Schema)
{
"properties": {
"exist_ok": {
"default": true,
"title": "Exist Ok",
"type": "boolean"
},
"parents": {
"default": true,
"title": "Parents",
"type": "boolean"
},
"path": {
"title": "Path",
"type": "string"
}
},
"required": [
"path"
],
"title": "create_directoryArguments",
"type": "object"
}