Skip to main content
Glama

Physics MCP Server

by BlinkZer0
validation-middleware.d.ts942 B
/** * Validation middleware for Phys-MCP server * * Provides input validation using Zod schemas with friendly error messages */ /** * Validate tool input and return validated data or error */ export declare function validateToolInput(toolName: string, input: unknown): { success: true; data: any; } | { success: false; error: any; }; /** * Middleware function to wrap tool handlers with validation */ export declare function withValidation<T extends (...args: any[]) => Promise<any>>(toolName: string, handler: T): T; /** * Create standardized error response */ export declare function createErrorResponse(error: any, toolName: string): { content: { type: string; text: string; }[]; isError: boolean; }; /** * Log structured error with context */ export declare function logStructuredError(error: any, context: { toolName: string; requestId?: string; input?: any; }): void;

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/BlinkZer0/Phys-MCP'

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