New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

folderinfo-mcp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

folderinfo-mcp

Ultra-simple MCP server for folder exploration (tree, ls, recursive-ls, folder-info)

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

folderinfo-mcp

Ultra-simple MCP server for folder exploration.

Tools

  • tree: formatted directory tree
  • ls: list items in directory
  • recursive-ls: recursive listing
  • folder-info: markdown report (tree, cwd, file contents)

Parameters (all tools)

NameTypeDescription
dirstringTarget directory (default cwd)
filetypestring[]Extensions (without dot) to include
excludedFoldersstring[]Regex or glob patterns to exclude folders
excludedFilesstring[]Regex or glob patterns to exclude files

Usage (Claude Desktop)

Add to config:

{
  "mcpServers": {
    "folderinfo": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/folderinfo-mcp/dist/index.js"]
    }
  }
}

Dev:

pnpm install
pnpm run dev

Build & Run:

pnpm run build
pnpm start

Test Tools:

pnpm test

## Global CLI Install / Wrapper

The published binary uses a small ESM wrapper (`bin/folderinfo-mcp.mjs`) with a shebang. This avoids losing the shebang when rebuilding `dist/`.

Install globally (development link):

```bash
pnpm build
pnpm link --global
folderinfo-mcp  # should print: folderinfo-mcp server running

Or via npm after publish:

npm install -g folderinfo-mcp
folderinfo-mcp

If you prefer to reference directly in a Claude config without global install:

{
  "mcpServers": {
    "folderinfo": {
      "command": "node",
      "args": ["/absolute/path/folderinfo-mcp/dist/index.js"]
    }
  }
}

Why a Wrapper?

Because TypeScript outputs ESM files without a shebang, executing dist/index.js directly as a binary (from the package bin field) would fail or silently do nothing on some shells. The wrapper adds:

  • Shebang line (#!/usr/bin/env node)
  • Stable path resolution to dist/index.js
  • Clear error message if startup fails

Troubleshooting

IssueCauseFix
Running folderinfo-mcp does nothingOld global link cachedRe-run pnpm link --global after build
Permission deniedMissing execute bitchmod +x bin/folderinfo-mcp.mjs
Not updated after editsForgot to rebuildpnpm build then re-link

Keywords

mcp

FAQs

Package last updated on 27 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts