Skip to content

Conversation

@blackgirlbytes
Copy link
Contributor

@blackgirlbytes blackgirlbytes commented Dec 20, 2025

Problem

I went through the quickstart. Amazing job. I ran into one quick problem. The quickstart docs instruct users to run:

npx tsc --noEmit server.ts

When a file is specified directly, TypeScript ignores tsconfig.json entirely, causing skipLibCheck and other options to not apply. This results in a flood of errors from node_modules (especially zod v4 locale files).

Solution

Remove the server.ts argument:

npx tsc --noEmit

This lets tsc use the project's tsconfig.json settings, which includes skipLibCheck: true.

Remove 'server.ts' argument from 'npx tsc --noEmit' command.

When a file is specified directly, TypeScript ignores tsconfig.json,
causing skipLibCheck and other options to not apply. This results in
errors from node_modules (especially zod v4 locale files).

The correct command lets tsc use the project's tsconfig.json settings.
Copy link
Collaborator

@liady liady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @blackgirlbytes ! Great catch.
In case there'll be additional files the errors might be in them, though, so maybe we'd want to also tweak the line after that which refers to server.ts ?

@idosal
Copy link
Collaborator

idosal commented Dec 20, 2025

Thanks @blackgirlbytes !

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 20, 2025

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/ext-apps@188

commit: d4a56bf

@idosal idosal merged commit e514e6c into modelcontextprotocol:main Dec 20, 2025
14 checks passed
@blackgirlbytes
Copy link
Contributor Author

Thanks @blackgirlbytes ! Great catch.
In case there'll be additional files the errors might be in them, though, so maybe we'd want to also tweak the line after that which refers to server.ts ?

Oh good point @liady . I can do that

@blackgirlbytes blackgirlbytes deleted the docs/fix-tsc-command branch December 20, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants