Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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")}`,
            },
          ],
        };
      }
    );

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/PinataCloud/pinata-mcp'

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