Skip to main content
Glama

Filesystem MCP Server

directory-operations.ts1.15 kB
import { Type, Static } from "@sinclair/typebox"; export const CreateDirectoryArgsSchema = Type.Object({ path: Type.String(), }); export type CreateDirectoryArgs = Static<typeof CreateDirectoryArgsSchema>; export const ListDirectoryArgsSchema = Type.Object({ path: Type.String(), }); export type ListDirectoryArgs = Static<typeof ListDirectoryArgsSchema>; export const DirectoryTreeArgsSchema = Type.Object({ path: Type.String(), maxDepth: Type.Integer({ minimum: 1, description: 'Maximum depth to traverse. Must be a positive integer. Handler default: 2.' }), excludePatterns: Type.Optional( Type.Array(Type.String(), { default: [], description: 'Glob patterns for files/directories to exclude (e.g., "*.log", "node_modules").' }) ) }); export type DirectoryTreeArgs = Static<typeof DirectoryTreeArgsSchema>; export const DeleteDirectoryArgsSchema = Type.Object({ path: Type.String(), recursive: Type.Boolean({ default: false, description: 'Whether to recursively delete the directory and all contents' }) }); export type DeleteDirectoryArgs = Static<typeof DeleteDirectoryArgsSchema>;

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/rawr-ai/mcp-filesystem'

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