Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function createEChartsServer(): McpServer {
for (const tool of tools) {
const { name, description, inputSchema, run } = tool;
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
server.tool(name, description, inputSchema.shape, run as any);
server.tool(name, description, inputSchema.shape as any, run as any);
}

return server;
Expand Down
6 changes: 3 additions & 3 deletions src/utils/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export const WidthSchema = z
.describe("Set the width of the chart, default is 800px.");

// TODO: use zod v4 JSON to schema to replace zod-to-json-schema when v4 is stable
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
export const zodToJsonSchema = (schema: z.ZodType<any>) => {
return zodToJsonSchemaOriginal(schema, {
export const zodToJsonSchema = (schema: unknown): Record<string, unknown> => {
// biome-ignore lint/suspicious/noExplicitAny: Type assertion needed to avoid TypeScript deep type instantiation
return zodToJsonSchemaOriginal(schema as any, {
rejectedAdditionalProperties: undefined,
});
};