-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I encountered an error when running npm i
Env
Node: v22.16.0
To Reproduce
Steps to reproduce the behavior:
npm i
Expected behavior
A clear and concise description of what you expected to happen.
Logs
npm error code 1
npm error path D:\Work\ext-apps
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c npm run build && husky
npm error > @modelcontextprotocol/[email protected] build
npm error > bun build.bun.ts
npm error
npm error src/app-bridge.ts(176,30): error TS18046: 'request.params' is of type 'unknown'.
npm error src/app-bridge.ts(178,29): error TS18046: 'request.params' is of type 'unknown'.
npm error src/app-bridge.ts(179,21): error TS18046: 'request.params' is of type 'unknown'.
npm error src/app-bridge.ts(204,30): error TS2345: Argument of type '{ [x: string]: any; }' is not assignable to parameter of type '{ method: string; params?: { [x: string]: unknown; _meta?: { [x: string]: unknown; } | undefined; } | undefined; }'.
npm error Property 'method' is missing in type '{ [x: string]: any; }' but required in type '{ method: string; params?: { [x: string]: unknown; _meta?: { [x: string]: unknown; } | undefined; } | undefined; }'.
npm error src/app-bridge.ts(224,7): error TS2345: Argument of type 'Record<string, unknown>' is not assignable to parameter of type '{ method: string; params?: { [x: string]: unknown; _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; } | undefined; }'.
npm error Property 'method' is missing in type 'Record<string, unknown>' but required in type '{ method: string; params?: { [x: string]: unknown; _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; } | undefined; }'.
npm error src/app-bridge.ts(264,27): error TS2345: Argument of type 'ZodObject<{ method: ZodLiteral<"tools/call">; params: ZodObject<{ _meta: ZodOptional<ZodObject<{ progressToken: ZodOptional<ZodUnion<readonly [ZodString, ZodNumber]>>; }, $loose>>; name: ZodString; arguments: ZodOptional<...>; }, $loose>; }, $strip>' is not assignable to parameter of type 'ZodObject<{ method: ZodLiteral<string>; }, UnknownKeysParam, ZodTypeAny, { method: string; }, { method: string; }>'.
npm error Type 'ZodObject<{ method: ZodLiteral<"tools/call">; params: ZodObject<{ _meta: ZodOptional<ZodObject<{ progressToken: ZodOptional<ZodUnion<readonly [ZodString, ZodNumber]>>; }, $loose>>; name: ZodString; arguments: ZodOptional<...>; }, $loose>; }, $strip>' is missing the following properties from type 'ZodObject<{ method: ZodLiteral<string>; }, UnknownKeysParam, ZodTypeAny, { method: string; }, { method: string; }>': _cached, _getCached, _parse, nonstrict, and 13 more
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working