Skip to content

server: filesystem test are failing when trying to build inside docker #2928

@akirilyuk

Description

@akirilyuk
> [ 9/22] RUN git clone --depth 1 https://github.com/modelcontextprotocol/servers.git /opt/mcp-servers &&     cd /opt/mcp-servers/src/filesystem &&     source "/root/.nvm/nvm.sh" && nvm exec 20 npm install &&     nvm exec 20 npm run build &&     nvm exec 20 npm link:
0.118 Cloning into '/opt/mcp-servers'...
4.712 Running node v20.19.5 (npm v10.8.2)
12.09 npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
12.47 npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
27.80 npm error code 2
27.80 npm error path /opt/mcp-servers/src/filesystem
27.80 npm error command failed
27.80 npm error command sh -c npm run build
27.80 npm error > @modelcontextprotocol/[email protected] build
27.80 npm error > tsc && shx chmod +x dist/*.js
27.80 npm error
27.80 npm error __tests__/path-utils.test.ts(231,5): error TS2304: Cannot find name 'afterEach'.
27.80 npm error npm error Lifecycle script `build` failed with error:
27.80 npm error npm error code 2
27.80 npm error npm error path /opt/mcp-servers/src/filesystem
27.80 npm error npm error workspace @modelcontextprotocol/[email protected]
27.80 npm error npm error location /opt/mcp-servers/src/filesystem
27.80 npm error npm error command failed
27.80 npm error npm error command sh -c tsc && shx chmod +x dist/*.js
27.80 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-10-29T10_22_07_139Z-debug-0.log
------

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions