UNPKG

@uh-joan/offx-mcp-server

Version:

OFF-X (Target Safety) MCP server for drug safety, adverse event, and target risk analytics.

22 lines (21 loc) 844 B
import { McpError } from "@modelcontextprotocol/sdk/types.js"; export type JsonPrimitive = string | number | boolean | null; export type JsonArray = JsonValue[]; export type JsonObject = { [key: string]: JsonValue; }; export type JsonValue = JsonPrimitive | JsonArray | JsonObject; /** * Removes null and undefined values from an object */ export declare function cleanObject<T extends JsonObject>(obj: T): Partial<T>; /** * Deep cleans an object or array of null and undefined values */ export declare function deepCleanObject<T extends JsonValue>(obj: T): T; /** * Creates a standardized error object */ export declare function createError(message: string, code?: number): McpError; export declare function pickBySchema(obj: any, schema: any): any; export declare function flattenArraysInObject(input: any, inArray?: boolean): any;