analyze_dependencies
Map Python module dependencies and detect circular imports with scope filtering.
Instructions
Python: Map module dependencies and detect circular imports. Semantic analysis grep can't do.
Deprecated: Replaced by future trace(handle, follow=["imports"]) in
the redesigned API. See
docs/superpowers/specs/2026-05-02-progressive-disclosure-api-design.md
for the migration plan. This method will be removed once the legacy
MCP tools are deprecated (Phase B of the migration).
For general use, prefer lookup() which accepts any identifier form. This tool provides circular dependency detection and scope filtering for targeted queries.
Args: module_path: Import path of the module (e.g., "pyeye.mcp") project_path: Root path of the project scope: Search scope - "main", "all", "namespace:name", or list
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module_path | Yes | ||
| project_path | No | . | |
| scope | No | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||