Add Permission Path
add_permission_pathGrants read or write permission for a specified project filesystem path, storing the access rule in project configuration so the MCP server can enforce it.
Instructions
Add path to project permissions.
Grants read or write permission for the specified path in the current project. Paths are stored in project configuration and enforced by the MCP server.
Arguments
session_id: string | null
Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id.
permission_type (required): enum: 'read', 'write'
Permission type: 'read' or 'write'
path (required): string
Client filesystem path to grant. Write paths may be project-relative or absolute and must not be a system directory. Read paths must be absolute and must not be a system directory.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"args": "<args>"
},
"name": "add_permission_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | Arguments for add_permission_path tool. |