Files
ClaudeMCP/src/types/index.ts
T

19 lines
427 B
TypeScript

import { ZodRawShape } from "zod";
export type TextResult = {
content: {
type: "text";
text: string;
}[];
isError?: boolean;
};
export type ToolDef<T = (string | TextResult)> = {
title: string;
config: {
description: string;
inputSchema?: ZodRawShape,
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
handler: (...args: any[]) => Promise<T>;
};