importlens-mcp

v0.4.0
importlens-mcp Checked 1 day ago Published 5 days ago

Import-aware context for coding agents on Python repos.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

project_map Project map

Summarize the Python project: file count, modules, symbols, lines. Call this first to understand the shape of the repo before drilling in.

relevant_files Relevant files for a symbol

Find the files that matter for a given function, class, or method. Returns the file(s) that define it, the call sites in dependent files, and signatures of the local modules they depend on. This is the slice of the repo an agent needs to reason about `symbol` — usually a handful of files instead of the whole tree. Args: symbol: a function or class name, or a method name like "CodeIndex.build" or "build". include_source: if true, also inline the defining files' source. include_full_dependents: if true, list dependent file paths instead…

ParameterTypeDescription
symbol *string
include_callersboolean
include_full_dependentsboolean
include_full_importsboolean
include_sourceboolean

file_context File with local dependencies

Return a file's source plus the paths of its local dependencies. Use this to read one file with awareness of what it pulls in, without loading the whole project. Args: path: repo-relative path, e.g. "src/importlens_mcp/server.py".

ParameterTypeDescription
path *string

reindex Rebuild index

Rebuild the index. Call after you've changed files on disk. Only the in-memory index is rebuilt; no files are written.