Repository navigation
Closed
Labels
bugSomething 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 working
Activity
mafzaal commentedon Nov 27, 2025
@Moxmi I had as issue, it is due to zod/v4 used in MCP SDK. Also, I encountered other issues related to build and postMessage between host and sandbox. I have resolved them and made it work at https://github.com/mafzaal/ext-apps
matteo8p commentedon Nov 27, 2025
@Moxmi Put up a PR for this issue!
#42