Skip to main content
Glama

Filesystem MCP Server

schema-utils.ts526 B
import { Value } from '@sinclair/typebox/value'; import type { Static, TSchema } from '@sinclair/typebox'; export function parseArgs<T extends TSchema>(schema: T, args: unknown, context: string): Static<T> { try { // Use only the Assert step to ensure strict validation return Value.Parse(['Assert'], schema, args); } catch { const errors = [...Value.Errors(schema, args)] .map(e => `${e.path}: ${e.message}`) .join('; '); throw new Error(`Invalid arguments for ${context}: ${errors}`); } }

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