- 去掉版本号后缀,路径更稳定(后续更新工具不必再改 .mcp.json) - .mcp.json 指向新路径 server/build/index.js - server 依赖已 npm install 就绪;node_modules 由 .gitignore 忽略,未入库 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
12 lines
585 B
TypeScript
12 lines
585 B
TypeScript
import { z } from "zod";
|
|
/**
|
|
* Coerce a value that might be a JSON string into a string array.
|
|
* LLMs sometimes pass arrays as stringified JSON (e.g. '["a","b"]' instead of ["a","b"]).
|
|
*/
|
|
export declare function coerceStringArray(): z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodArray<z.ZodString>>;
|
|
/**
|
|
* Coerce a value that might be a numeric string into a number.
|
|
* LLMs sometimes pass numbers as strings (e.g. "30" instead of 30).
|
|
*/
|
|
export declare function coerceNumber(): z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNumber>;
|
|
//# sourceMappingURL=zod-coerce.d.ts.map
|