Skip to content

chore(filesystem): remove unused glob dependency#4535

Open
shotty1 wants to merge 1 commit into
modelcontextprotocol:mainfrom
shotty1:chore/filesystem-remove-unused-glob
Open

chore(filesystem): remove unused glob dependency#4535
shotty1 wants to merge 1 commit into
modelcontextprotocol:mainfrom
shotty1:chore/filesystem-remove-unused-glob

Conversation

@shotty1

@shotty1 shotty1 commented Jul 17, 2026

Copy link
Copy Markdown

Description

The filesystem server declares glob as a dependency but never imports it — all glob-style pattern matching is done via minimatch. glob has been present since v0.6.2 (Dec 2024) but was never used in any version of the source; Dependabot has kept bumping it (most recently to 10.5.0 in #3076), which is why it went unnoticed.

Removing it drops a transitive dependency subtree and clears the glob@10.5.0 deprecation warning shown on npm install:

npm warn deprecated glob@10.5.0: Old versions of glob are not supported...

Server Details

  • Server: filesystem
  • Changes to: dependencies only (no changes to tools, resources, or prompts)

Motivation and Context

The unused glob dependency emits a deprecation warning on install and pulls in an unnecessary transitive tree. Since it is not referenced anywhere in the server (source, tests, build scripts), removing it is a cleaner fix than a version bump.

How Has This Been Tested?

  • npm install regenerates the lockfile with no remaining glob@10 entries; glob is no longer resolvable from the filesystem workspace.
  • npm run build (tsc) succeeds.
  • npm test — all 152 tests across 7 files pass.

Breaking Changes

None. The dependency was unused, so there is no runtime behavior change and no client configuration impact.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • My changes follow MCP security best practices
  • My code follows the repository's style guidelines
  • New and existing tests pass locally

Note: "tested with an LLM client" is not applicable — this is a dependency-only change with no behavioral effect.

The filesystem server declared glob as a dependency but never imported it. All glob-style pattern matching is done via minimatch. glob had been present since v0.6.2 but was never used in any version of the source; Dependabot kept bumping it (most recently to 10.5.0), which is why it persisted unnoticed.

Removing it drops a transitive dependency subtree and clears the glob@10.5.0 deprecation warning shown on install. Build (tsc) and all 152 tests pass with the dependency removed.
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.

1 participant