listAllowedDirectories
Lists directories accessible for file operations within the Pinata MCP server, enabling users to identify available storage locations for IPFS content management.
Instructions
List all directories that this MCP server is allowed to access for file operations
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1856-1874 (handler)Tool registration and handler implementation for listAllowedDirectories - lists directories the MCP server is allowed to access for file operations. Returns either command-line specified directories or the current working directory as default.
server.tool( "listAllowedDirectories", "List all directories that this MCP server is allowed to access for file operations", {}, async () => { const dirs = allowedDirectories.length > 0 ? allowedDirectories : [normalizePath(process.cwd())]; return { content: [ { type: "text", text: `Allowed directories:\n${dirs.join("\n")}`, }, ], }; } );