Skip to content

Unable to run example #32

Closed
Closed

Description

@Moxmi

Describe the bug
I encountered an error when running npm i

Env
Node: v22.16.0

To Reproduce
Steps to reproduce the behavior:

  1. 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.

Activity

  1. added
    bug
    on Nov 26, 2025
  2. mafzaal commented on Nov 27, 2025

    @mafzaal

    @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

  3. matteo8p commented on Nov 27, 2025

    @matteo8p
    Contributor

    @Moxmi Put up a PR for this issue!

    #42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions