
Dep Scope
io.github.FlorianBruniaux由 GitHub 账号 FlorianBruniaux 发布v0.4.2更新于 Oct 25, 2026
Symbol-level npm dependency analysis: scan verdicts, native alternatives, migration prompts.
发布方自己的服务:Scope (AEC) - Preview
概览
一个本地 MCP 服务器,对 TypeScript/JavaScript 项目的 npm 依赖做符号级分析,并为 AI 助手生成迁移提示词。
- 可以做什么
- 扫描项目,按依赖给出保留、移除、改用原生实现或 peer 依赖等结论,可选检查重复库、传递性 polyfill 和 Knip 结果。分析单个包,列出代码实际用到的符号。列出可替换为原生 API 或可合并的包。为指定包生成结合上下文的迁移提示词。检测功能重叠或重复的库。
- 适用场景
- 适合审计遗留的或依赖繁多的 TypeScript/JavaScript 项目、合并功能重复的多个库,或准备由 AI 助手依据生成的提示词执行的重构。不适用于简单的未使用依赖检测,README 建议这类需求交给 Knip。
- 运行要求
- 通过 npx 在本地运行,需要 Node.js 18 或更高版本,以及带 package.json 的 TypeScript/JavaScript 项目。未声明账号、API 密钥或请求头。README 建议首次扫描前先运行一次 init 命令生成配置文件。
安装
在 SourceWeft 中
- 打开 控制台中的 Dep Scope,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
dep-scope
[CI] [npm version] [MCP Registry] [License: MIT] [Node.js]
Symbol-level dependency analysis + LLM-ready migration prompts for TypeScript/JavaScript projects.
"Knip tells you what's unused. dep-scope tells you how you use what you keep, and generates the prompt to remove it."
When to use dep-scope
Good use cases:
- Legacy project audit: Finding lodash functions that now have native equivalents
- Library consolidation: Do we really need 3 icon libraries?
- Migration: Generate a context-aware prompt and let Claude Code do the refactoring
- Curiosity: "Which symbols from this 50KB library do we actually use?"
Not the right tool if:
- You just want unused deps → use Knip instead
- Your codebase is already well-maintained → dep-scope will mostly say "KEEP"
Quick Example
How it compares
Recommendation: Use Knip for unused detection, dep-scope for deeper analysis and migration. They work well together (dep-scope auto-detects Knip if installed).
Installation
CLI (global):
Without installation:
MCP Server (AI editors — no CLI needed):
Add to your editor's MCP config and the server runs on demand via npx. See the MCP Server section below for per-editor config snippets.
From source:
Quick Start
Setup: dep-scope init
Run dep-scope init before your first scan. The wizard detects your project and generates a config in 4 questions:
Use -y to skip prompts in CI: dep-scope init --yes.
Getting accurate results
Auto-detection covers: src, app, lib, pages, components, hooks, server, scripts, tools, bin, cli. If your project has code elsewhere, pass --root to scan everything, or set srcPaths explicitly in .depscoperc.json:
False positive "unused" verdict? The package may be used in a directory outside the scan scope (
scripts/,tools/, etc.). Rundep-scope scan --rootto verify before removing anything. When a removal recommendation appears with a narrow scan scope, dep-scope will warn you.
Config file detection
dep-scope automatically scans config files at the project root to avoid false "unused" verdicts for packages referenced as strings — a common pattern for CLI tools, test runners, and framework plugins.
Detected automatically:
These packages will appear as INVESTIGATE (or KEEP if well-used) rather than REMOVE.
Opt-out — disable specific detectors in .depscoperc.json:
Available detector IDs: package-json-scripts, vitest-config, vite-config, next-config, storybook-config. Use "disable": "all" to turn off config scanning entirely.
Extend with custom detectors — in depscope.config.ts:
MCP Server
dep-scope exposes a Model Context Protocol server so AI editors (Claude Code, Cursor, Windsurf) can query your dependencies inline — no CLI, no markdown files, no copy-paste.
Listed on the official MCP Registry:
io.github.FlorianBruniaux/dep-scope
Available tools
Setup
Add the following mcpServers entry to your editor's config. The server runs on demand via npx — no global install required.
Claude Code — ~/.claude.json:
Claude Desktop — ~/Library/Application Support/Claude/claude_desktop_config.json:
Cursor — ~/.cursor/mcp.json:
Windsurf — ~/.codeium/windsurf/mcp_config.json:
Once connected, you can ask your AI editor to call scan_project or generate_migration_prompt directly mid-session without running any CLI command.
Documentation
- Commands reference
- Configuration
- AI prompts + Claude Code slash command
- MCP Server setup
- Programmatic API
- Architecture & internals
Requirements
- Node.js >= 18.0.0
- TypeScript/JavaScript project with
package.json
Explore the ecosystem
These projects extend the workflow without duplicating this tool:
- Automate with claude-code-plugins: add symbol-level dependency analysis to code-quality workflows.
- Learn with Claude Code Ultimate Guide: choose between CLI and MCP and frame the quality check.
Browse the complete open-source galaxy
License
MIT
来源:README.md,提交 a7d5db5
工具
0版本历史
1- v0.4.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Scope 集成

Scope (AEC) - Preview
bid.scope官方发布者
Scope(AEC)预览版服务器:查询分包采购层的状态与路线图、列出计划中的服务类别、加入候补名单,并改期已授标项目。

Scope (Legal)
bid.scope官方发布者
Scope(法律版)让 AI 助手浏览法律服务专业人员、派发案件,并管理由此产生的委托事务。

Scope (Claims) - Preview
bid.scope官方发布者
Scope 理赔侧专业采购的预览版服务器:查询 V2 状态与服务类别、加入等候名单,并改期已授标的理赔项目。

MintScope — NFT collection analysis
由 GitHub 账号 ert1981 发布
NFT系列风险与质量分析,以及新系列发现(OpenSea + 链上)。AI 翻译

FedScope MCP
由 GitHub 账号 CYAN-ECLIPSE-TECHNOLOGIES-LLC 发布
FedScope MCP 让助手搜索联邦与州政府招标机会,并提供匹配度、新进入者评分和通俗语言摘要。