Workflow and deploy MCP tools accept only YAML files inside the current working directory for security.Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
Quick Start
How It Works
Three MCP tools now enforce strict path validation:| Tool | Purpose | Path Requirement |
|---|---|---|
workflow_validate | Validate workflow YAML | Bare filename in CWD |
workflow_show | Display workflow content | Bare filename in CWD |
deploy_validate | Validate deployment config | Bare filename in CWD |
What Gets Refused
| Path Pattern | Example | Error Message |
|---|---|---|
Contains / or \ | subdir/file.yaml | invalid file_path: 'subdir/file.yaml' |
| Contains NUL byte | file\x00.yaml | invalid file_path: 'file\x00.yaml' |
Starts with . | .hidden.yaml | invalid file_path: '.hidden.yaml' |
| Not YAML extension | config.json | file_path must be a .yaml or .yml file |
| Absolute path | /etc/passwd | invalid file_path: '/etc/passwd' |
| Parent directory | ../config.yaml | invalid file_path: '../config.yaml' |
| Resolves outside CWD | symlink.yaml → ../outside.yaml | invalid file_path: 'symlink.yaml' |
Migration
If you previously used these MCP tools with absolute paths or subdirectory paths:Common Patterns
Workflow Management
Deployment Validation
Error Handling
Best Practices
Keep YAML Files in Project Root
Keep YAML Files in Project Root
Place workflow and deployment YAML files in the project root directory, not in subdirectories. This matches the MCP security model.
Use Descriptive Filenames
Use Descriptive Filenames
Since you can’t use paths, use descriptive filenames like
production-deploy.yaml instead of deploy/production.yaml.Validate Before Use
Validate Before Use
Always call the validation tools before processing YAML files to catch configuration errors early.
Handle Errors Gracefully
Handle Errors Gracefully
Check for ValueError exceptions and provide helpful error messages to users when paths are rejected.
Related
MCP Integration
Learn about MCP protocol support
CLI Tools
PraisonAI CLI command reference

