Skip to main content
Glama

AI Code Toolkit

by AgiFlow
FileSystemService.ts589 B
import { vi } from 'vitest'; import type { IFileSystemService } from '../../src/types/interfaces'; export const createMockFileSystemService = (): IFileSystemService => ({ ensureDir: vi.fn().mockResolvedValue(undefined), copy: vi.fn().mockResolvedValue(undefined), writeFile: vi.fn().mockResolvedValue(undefined), readFile: vi.fn().mockResolvedValue(''), pathExists: vi.fn().mockResolvedValue(true), remove: vi.fn().mockResolvedValue(undefined), readdir: vi.fn().mockResolvedValue([]), stat: vi.fn().mockResolvedValue({ isDirectory: () => true, isFile: () => false }), });

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/AgiFlow/aicode-toolkit'

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