PyEye Server
PyEye is an MCP server for static Python code analysis: it resolves names to canonical handles, inspects and outlines symbols, traverses structural relationships, and adds framework-specific scanners for Pydantic and Flask.
Configure analysis scope: register additional packages, namespaces, and standalone script directories, optionally persisting them to config.
Resolve identifiers: turn bare names, dotted FQNs, re-exported paths,
file:linecoordinates, or file paths into canonical handles (also viaresolve_atposition lookup).Inspect symbols: get kind, location, signature, docstring, and cheap edge counts for a handle.
Outline structure: produce a budgeted tree of a module's or class's members with signatures and line spans.
Expand one hop: walk edges such as
members,callees,imports,imported_by,subclasses,superclasses,enclosing_scope,submodules, andre_exports.Trace many hops: run bounded BFS traversals across multiple edges with depth/node caps and stop predicates.
Analyze Pydantic projects: find models, schemas, validators, field validators, model configs, computed fields, and model inheritance.
Analyze Flask projects: find routes, blueprints, views, templates, extensions, config usage, error handlers, and CLI commands.
Query across scopes: search the main project, configured packages, standalone dirs, namespaces, a specific package path, or all of them.
Stay honest about limits: unsupported questions like "who calls this" are explicitly refused rather than guessed.
Provides specialized code analysis for Django projects, including models, views, and URL routing.
Provides specialized code analysis for Flask applications, including routes, blueprints, and templates.
Enables AI-powered Python code analysis within GitHub Copilot, offering semantic navigation and project understanding.
Supports MCP for Python code analysis in JetBrains IDEs (IntelliJ, PyCharm, etc.) with full code navigation and analysis.
Provides specialized code analysis for Pydantic models, including type validation and schema understanding.
Supports MCP for Python code analysis in Xcode, enabling AI-driven code understanding.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PyEye Server find all usages of the function `parse_data`"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PyEye 👁️
PyEye Server
An extensible MCP (Model Context Protocol) server that provides intelligent Python code analysis, navigation, and understanding capabilities for AI assistants like Claude.
Related MCP server: FastAPI Architect MCP
Features
🔍 Semantic Code Navigation: Resolve any identifier to a stable canonical handle, then inspect or outline it
📊 Structural Traversal: Walk relationship edges (listed below) one hop with
expand, or many withtrace🤝 Honest by Construction: Unsupported questions (notably "who calls this") are refused, not guessed; absent counts mean "not measured", never "zero"
🏗️ Multi-Project Support: Analyze multiple projects and dependencies simultaneously
📦 Namespace Packages: Handle packages distributed across multiple repositories
📝 Standalone Scripts: Analyze standalone
.pyfiles (for example inscripts/orexamples/directories) alongside formal packages🔄 Auto-Update: Watches the project's files and drops cached results when they change
⚙️ Configuration System: Configure packages and namespaces in config files, or let pyeye auto-discover them; tune performance with environment variables
🔌 Plugin System: Built-in framework analyzers (Pydantic, Django, Flask)
🎯 Type-Aware: Uses Jedi's type inference, including type hints and annotations
📈 Performance Metrics: Optional per-tool latency metrics (
get_performance_metrics)
Installation
You use | Recommended | Alternatives |
Claude Code | ||
Another MCP client (Claude Desktop, VS Code, …) | ||
One project, pinned to a version | ||
You're working on pyeye itself |
pyeye needs Python >=3.11.
The plugin and uvx need uv.
pyeye analyses the directory its server starts in, and every analysis tool also
takes a project_path. The entry points list the
commands that start the server.
Your project's environment. pyeye reads the project's installed
third-party packages (requests, django, …) from the project's own Python
environment, whichever way pyeye itself runs. It uses the first of:
the
environmentsetting in the project's pyeye config: the path to a virtualenv, orfalsefor none;a virtualenv in the project:
.venv,venvorenv(for a project that is itself a package, in its parent directory too, unless that directory is shared: group- or world-writable, or owned by another user);the activated environment (
VIRTUAL_ENV, orCONDA_PREFIXfor conda), as Poetry, Pipenv and Hatch set it for an environment outside the project, unless it is pyeye's own environment, which is skipped. One activated environment serves every project that has none of its own.
It reads the environment's packages from disk and never runs its Python. It
skips an environment, or a path one adds, that is in or contains a system
directory or a credential store, with a warning. When it finds none, a
third-party import doesn't resolve, and resolve and inspect say that no
environment was found (#993).
Claude Code plugin (recommended)
In Claude Code:
/plugin marketplace add okeefeco/pyeye-mcp
/plugin install pyeye@pyeye-marketplaceFrom a shell, the same is claude plugin marketplace add okeefeco/pyeye-mcp
followed by claude plugin install pyeye@pyeye-marketplace. Claude Code's
plugin documentation covers
updating and removing plugins.
The plugin brings:
the pyeye MCP server;
the skills
python-explore,architecture-review,duplication-reviewanddecision-log;a session-start hook that installs pyeye's dependencies with
uvinto a per-user environment, the first time and again whenever its lockfile changes.
Install pyeye either as the plugin or with claude mcp add, not both:
with both, every tool appears twice (mcp__plugin_pyeye_pyeye__… and
mcp__pyeye__…). If you added it with claude mcp add before, run
claude mcp remove pyeye.
Claude Code without the plugin
claude mcp add pyeye -s user -- uvx pyeye-mcp
claude mcp list # check that pyeye is connecteduvx runs the latest release from PyPI in an environment of its own. To use an
installed command instead, see Installing the command
and register -- pyeye-mcp. Claude Code's
MCP documentation covers scopes and options.
Other MCP clients
pyeye is a standard stdio MCP server. Give your client the command uvx with
the argument pyeye-mcp, or an installed pyeye-mcp. Where that goes depends
on the client, so follow its own documentation:
Claude Desktop: Connect to local MCP servers. Claude Desktop doesn't start the server in your project, so ask for the project explicitly: every analysis tool takes a
project_pathargument.VS Code (GitHub Copilot): Add and manage MCP servers in VS Code. Run MCP: List Servers from the Command Palette to check that
pyeyestarted.JetBrains IDEs, Visual Studio, Eclipse and Xcode (GitHub Copilot): Extending Copilot Chat with MCP.
For example, in a client that takes an mcpServers map:
{
"mcpServers": {
"pyeye": {
"command": "uvx",
"args": ["pyeye-mcp"]
}
}
}Installing the command
To install pyeye-mcp once instead of running it through uvx, use
uv tool install pyeye-mcp or
pipx install pyeye-mcp. The server command is then
pyeye-mcp.
Install into a project's environment
Install pyeye into the project's virtual environment (pip install pyeye-mcp,
or uv pip install pyeye-mcp, with that environment active), then point your
client at that environment's Python. For Claude Code, a .mcp.json in the
project root:
{
"mcpServers": {
"pyeye": {
"type": "stdio",
"command": "/path/to/your/project/.venv/bin/python",
"args": ["-m", "pyeye.mcp"]
}
}
}On Windows the path is .venv\Scripts\python.exe. A bare "command": "python"
works only if your MCP client was started from a shell with that environment
active; otherwise it runs whichever Python is first on the client's PATH.
Configuration
The server can be configured to analyze packages in other locations. Create a .pyeye.json file in your project:
{
"packages": [
"../my-shared-library",
"~/repos/company-utils",
"/absolute/path/to/package"
],
"namespaces": {
"mycompany": [
"~/repos/mycompany-auth",
"~/repos/mycompany-api"
]
}
}Configuration Methods
Configuration is loaded in the following order (later sources override earlier ones):
Global Config: the first of
~/.config/pyeye/config.json,~/.pyeye.jsonthat exists - User defaultsProject Config: the first of
.pyeye.json,.pyeye.yaml,.pyeye.yml,pyproject.toml,.claude/pyeye.jsonin the project root (inpyproject.toml, the[tool.pyeye]section)Override File:
.pyeye.override.json- Local development overrides (keep it out of git)Auto-Discovery: a
src/layout, only if nopackagesare configured yet, and the path dependencies the project'spyproject.tomldeclares, always (below). (The project's virtualenv isn't a package: pyeye reads it as the project's environment, above.)configure_packageslists what was discovered underdiscovered, and a save never writes it to.pyeye.json.This session's unsaved additions: packages, namespaces and standalone directories added with
configure_packages(save=false). They're applied last and don't stop auto-discovery
Packages beside your project. pyeye doesn't guess at neighbouring directories (#1035). A package that lives beside your project is analysed when one of these says so:
A path dependency in
pyproject.toml, read statically:[tool.uv.sources]entries with apath;[tool.uv.workspace]members(a glob member stays inside the workspace; a literal path can point anywhere);Poetry
pathdependencies, in the main table and in groups;name @ file:...references in[project]dependencies, optional dependencies and[dependency-groups]. PDM's${PROJECT_ROOT}and Hatch's{root:uri}are expanded.
An editable install in the project's environment. Most installs write their path to a
.pthfile. A few use an import hook instead: setuptools with a flat layout, hatchling'sdev-mode-exact, and pdm-backend'seditablesmode. For those, pyeye reads the hook's module as text for its target directories. It never runs it.Your pyeye config:
packages,namespaces, orconfigure_packages.
A declared directory with a src/ layout is read from its src/. When a top-level import doesn't resolve, resolve and inspect suggest declaring the package or adding it with configure_packages.
The top-level keys pyeye reads are packages, namespaces, standalone, scope_defaults, scope_aliases, environment.
Using Override Files
Override files are perfect for local development configurations that shouldn't be committed.
.pyeye.override.json takes precedence over the other sources; add it to your
project's .gitignore:
{
"packages": [
"../my-local-dev-package",
"~/dev/experimental"
],
"namespaces": {
"company.feature": ["/home/user/feature-branch"]
}
}Performance Settings
Performance settings are configured through environment variables. The
generated reference lists every PYEYE_* variable
pyeye reads, with its default, range and status (live or deprecated). Deprecated
variables have no effect.
These are read when the server starts, from the server's own environment.
The MCP client starts the server, so set them on its server entry and restart
the client. In Claude Code, remove the server and add it again with -e flags,
using the command you registered it with (here uvx pyeye-mcp):
claude mcp remove pyeye && claude mcp add pyeye -s user -e PYEYE_MAX_PROJECTS=20 -- uvx pyeye-mcp.
Other clients take an env map in their config. An export in your shell only
reaches the server if the client was launched from that shell.
Packages and namespaces are not configured through environment variables. Use
.pyeye.json, pyproject.toml, the global config file, or the
configure_packages tool (see Configuration).
Sizing the parsed-file cache
pyeye walks every .py file in a project to build its name index and its
subclass and import graphs, and rebuilds them after every file change.
PYEYE_ARTIFACT_CACHE_MAX_ENTRIES decides how many of those parsed files stay
in memory between walks. Answers are the same at any value; only speed and
memory change.
Set it at or above your project's
.pyfile count (the default ischanged.
Don't set it just below that count. The cache then evicts files during each walk and parses them again in the same walk, so it is both slower and uses more memory than the default.
To save memory, go well below it and accept slower rebuilds.
This advice comes from measurements on one large project in #768.
Performance Tuning Examples
Set the variables on the server entry, so they reach the server however the client was started. For example, with Claude Code (remove the server first, and use the command you registered it with):
claude mcp remove pyeye
# Keep more projects in memory, cache longer and batch file changes more
claude mcp add pyeye -s user \
-e PYEYE_MAX_PROJECTS=50 -e PYEYE_CACHE_TTL=1800 -e PYEYE_WATCHER_DEBOUNCE=2.0 \
-- uvx pyeye-mcp
# Or use less memory: fewer projects and fewer parsed files kept
claude mcp add pyeye -s user \
-e PYEYE_MAX_PROJECTS=3 -e PYEYE_ARTIFACT_CACHE_MAX_ENTRIES=250 \
-- uvx pyeye-mcpOther clients take the same names in the server entry's env map.
Auto-Detection of Source Layouts
PyEye automatically detects source layouts from pyproject.toml build backend metadata, supporting projects that use the src/ directory pattern. This works with multiple build backends:
Setuptools:
[tool.setuptools.packages.find]
where = ["src"]Poetry:
[[tool.poetry.packages]]
include = "mypackage"
from = "src"Hatch:
[tool.hatch.build.targets.wheel]
sources = ["src"]PDM:
[tool.pdm.build]
package-dir = "src"Two conditions apply. pyproject.toml is read only when it is the project's config
file, the first of the project config files above that exists, so a
.pyeye.json or .pyeye.yaml in the root means it is never read. And detection
only runs when no packages are set yet, including by your global config.
If no configuration is found in pyproject.toml, PyEye also treats src/ as a source root when it holds a regular package (a directory with __init__.py), or when it holds the project's own package under its declared name ([project].name or [tool.poetry].name, lowercased, with - and . as _), even a namespace package with no __init__.py. That is where Poetry, Hatch, uv, PDM and setuptools look by default, so a project like Poetry, whose src/poetry is a namespace, is named poetry.…, not src.poetry.…. No other directory under src/ is taken as a root.
Note: Explicit [tool.pyeye] configuration always takes precedence over auto-detected layouts.
Core Tools
PyEye exposes a small set of progressive-disclosure primitives that work on canonical handles (a re-exported path collapses to its definition site). They are cheap by default: they return structural facts and pointers, never source content.
The core tools are configure_packages, expand, inspect, outline, resolve, resolve_at, trace. The usual
flow is to resolve a name to a handle, inspect or outline it, then follow
relationship edges with expand (one hop) or trace (many hops);
configure_packages registers extra package locations. The
tool reference gives every tool's parameters and
defaults, and the edge reference lists the supported
edges. For worked examples, see the python-explore skill
(skills/python-explore/SKILL.md).
Known limitation: no reverse references
The interface does not answer "who calls / references this". Reverse-reference
support is deferred to a planned Pyright backend
(#333). When you ask for a
callers or references edge, pyeye reports it as unsupported rather than
guessing, and inspect's edge_counts omits those keys entirely instead of
reporting 0. Delegate caller questions to a language server; pyeye's resolve
gives you the definition-site position an LSP reference query needs.
Forward and structural questions are answered, through the implemented edges:
Static-surface ceiling: each edge measures a stated scope, and its answer is complete only over that scope. The edge reference gives each edge's ceiling.
Removed in v2.0.
find_references,get_call_hierarchy, andanalyze_dependencieswere removed in #505 — not deprecated — because they returned confidently wrong answers rather than merely incomplete ones. See the CHANGELOG's migration map for replacements.
Framework-Specific Tools (Auto-Activated)
A plugin's tools are registered when its framework is detected in the project. See the tool reference for each tool's parameters.
Django:
find_django_migrations,find_django_models,find_django_templates,find_django_urls,find_django_viewsPydantic:
find_computed_fields,find_field_validators,find_model_config,find_pydantic_models,find_validators,get_model_schema,trace_model_inheritanceFlask:
find_cli_commands,find_error_handlers,find_flask_blueprints,find_flask_config,find_flask_extensions,find_flask_routes,find_flask_templates,find_flask_views
Advanced Features
Multi-Project Support
Analyze your main project along with local dependencies. Put them in
.pyeye.json (see Configuration), or ask your assistant to
call the configure_packages tool
with arguments like these:
{
"packages": ["../my-lib", "~/repos/shared-utils"],
"namespaces": {"company": ["~/repos/company-auth", "~/repos/company-api"]}
}Namespace Packages
Handle packages distributed across multiple repositories, for example
company.auth in one repo and company.api in another:
{
"namespaces": {"company": ["~/repos/company-auth", "~/repos/company-api"]}
}Auto-Update on File Changes
The server watches the project's files and drops cached results for the files that change, so answers follow your edits without a restart. See Caching for how invalidation works.
Architecture
The architecture pages describe how pyeye works inside:
Resolution: how a name becomes a canonical handle
Caching: what is cached and when it is invalidated
Plugin system: how framework plugins are detected and register their tools
Plugin Development
Plugins are built into pyeye; there is no dynamic loading. To add a framework plugin, follow Adding a plugin.
Performance Monitoring
Set PYEYE_ENABLE_PERFORMANCE_METRICS to true to register the admin tools:
connection state and recent errors. Their parameters are in the tool reference.
Development
# Install pyeye with its development dependencies, exactly as locked
uv sync --frozen
# Run tests
uv run pytest
# Format and lint
uv run black src/
uv run ruff check src/See CONTRIBUTING.md for the full setup and workflow.
Documentation
The full documentation is published at okeefeco.github.io/pyeye-mcp, built from the Markdown in this repository.
Troubleshooting Guide - Common issues and solutions
API Reference - every tool and its parameters
Security
Please report vulnerabilities privately through GitHub's private vulnerability reporting, not in public issues. SECURITY.md covers supported versions, what to expect after reporting, and pyeye's security model (static analysis only; it reads whatever paths the MCP client points it at).
Contributing
Contributions are welcome! See CONTRIBUTING.md before opening a pull request.
License
MIT License - see LICENSE for details
Acknowledgments
Built on top of:
Jedi - Python static analysis and type inference
MCP Python SDK - MCP server framework (
MCPServer)Watchdog - File system monitoring
Available Tools
22 toolsconfigure_packagesA
Python: Configure additional packages, namespaces, and standalone scripts for analysis.
Args:
packages: List of package paths to include
namespaces: Namespace packages with their repo paths
standalone_dirs: Directories containing standalone Python scripts.
Every .py file under them is analysed.
save: Save configuration to .pyeye.json, together with any entries this
session's earlier unsaved calls added. False keeps this call's
entries for the session only: unsaved calls accumulate until the
server restarts or a save writes them; unsaved lists them (#953).
A save writes the project's own config plus those entries only:
never a package pyeye discovered on its own (the result's
discovered lists those, each with why), the global config or
the override file (#1038).
project_path: Project root to configure (default: current directory)
The call errors (an MCP tool error, not a response) only when it can't run:
an invalid argument, a project_path that doesn't exist, an unusable config,
or an unreadable file.
Framework plugins (#659): on the project the server started in, this also
re-detects frameworks against the new layout. A framework used only in a
newly added package (e.g. Flask) activates, and its tools are registered
immediately; the result's activated_plugins names them ([] when none
newly activated; absent for any other project, which isn't re-detected).
The new tools are callable by name right away. A call that activates
a plugin also sends one tools-changed event (notifications/tools/list_changed,
or a subscriptions/listen event from protocol 2026-07-28 on), so a client that
honours it re-lists its tools (#770). Registration is add-only; nothing is
ever removed.
Inputs: save, packages, namespaces, project_path, +1 more. Returns: object
expandA
Python: Expand one outbound edge from a canonical handle (single hop).
The traversal primitive that walks ONE edge from a source handle and returns adjacent symbols as lightweight Stubs. Use resolve()/inspect() first to obtain a canonical handle, then call expand() to traverse.
Supported edges (the complete static/outbound set):
members— class/module → direct members (attributes, methods, nested classes).stubs: []means the class/module was found but has no members; that is NOT the same as unsupported. Measured scope: a class's members are its class-body definitions; instance attributes assigned in methods (self.x = ...) are NOT measured. A module's members are its module-level definitions. Static-surface ceiling:static_definitions: definitions written in source: a class body (methods, nested classes, class-level assignments) or a module's top level. Instance attributes assigned in methods (self.x = ...) and anything injected at runtime (metaclass, setattr, getattr, type(), init_subclass) are not included. For example, a DjangoModelshows none of its metaclass-injected_meta/objects/DoesNotExist. A name missing fromstubsis unknown outside that scope, not absent.callees— function/method → forward static call targets. Includes project symbols and stdlib/external symbols reachable via Jedi's goto. Dynamic calls (un-inferable parameters,getattr, lambdas, etc.) are counted inunresolved_call_sitesrather than invented. Ceiling:static_calls: calls whose target static analysis resolves; dynamic calls are counted in unresolved_call_sites, not listed.imported_by— module → the project modules that import it (module Stubs), computed by static AST import-graph reversal (no reverse symbol search). Covers importers anywhere in the project including tests and standalone scripts, and imports anywhere in a file: guarded, and inside a function or class body too (a lazy import is still a dependency). So it is NOT the exact inverse ofimports: ifimports(M)shows moduleB, thenMis inimported_by(B), but a function-body importer appears only here. A file that imports it but has no module name (my-script.py,tools-dir/x.py) can't be a stub; it is listed inunresolved_importers(#668), never dropped; a file the server's Python can't parse is listed inunparseable_files(#729). Non-module handles return the unsupported branch withreason: "not_applicable"(#626). Ceiling:static_imports: import statements written in source; importlib / import with a computed name is not included. A stub's (.pyi) own imports are declarations, not runtime imports: imported_by doesn't count them, while imports on a stub module lists them (#933).re_exports— symbol → the public MODULES that re-export it (#393). Each stub is the re-exporting module; itsbindingslists the public dotted paths it provides (["pkg.Foo"]). Public means a package__init__, a name in__all__, or a public module importing from a_privateone (#712); plain internal imports areimported_by's. Package files the server's Python can't parse are listed inunparseable_files, and the rest are still reported. Module handles returnnot_applicable. Not ininspect'sedge_counts;inspect'sre_exportsfield is deprecated in its favour. Ceiling:package_reexports: import bindings written in source in the public modules of the symbol's own package (#712); re-exports from other packages and names provided lazily by a module getattr are not included.subclasses— class → the project classes that directly subclass it (class Stubs), computed by an AST class-graph walk + forwardgoto(no reverse symbol search). Returns the DIRECT (depth-1) subclasses only (#422) — one hop, symmetric withsuperclasses; the full transitive closure is served bytrace(follow=["subclasses"], max_depth=k, max_nodes=N), which carries the cap +truncatedcontract. A class result includes a statictransitive_hintfield pointing to that trace route.subclassesis an expand-only edge:inspectdoes NOT measure it, by design: the edge reads the whole-project class graph, andinspectstays independent of whole-project indices, which every edit drops (#392, ruled 2026-11-20). A class defined in a function is a stub when it is one function level deep and its name is unique there (pkg.mod.func.Name, #1024). A subclass no handle can name can't be a stub: it is counted inhandleless_subclass_count(always complete) and listed inhandleless_subclassesas{name, file, line, reason},reasonone ofnested_local(two or more function levels deep),ambiguous_local(its name is bound more than once in its function: another class, adef, an assignment,del),no_module_pathornot_a_handle, sorted by file then line, never dropped (#1006).max_stubscaps that list separately: a cut list shows ascount > len(list). Add the count tolen(stubs)(andtotal) for every direct subclass.stubs: []with a count of0means the class has no project subclasses (measured-none). A non-class handle returns the unsupported branch withreason: "not_applicable"(#626). Static-surface ceiling:literal_subclassing: project classes whose class statement names this class as a base; classes built with type(), class factories or init_subclass registration are not included.superclasses— class → its base classes (class Stubs), resolved by Jedi from the class definition (no reverse search). A non-class handle returns the unsupported branch withreason: "not_applicable". Ceiling:declared_bases: the bases written in the class statement; bases added at runtime are not included, and bases that don't resolve are listed in unresolved_superclasses.imports— module → the symbols/modules it imports (Stubs), computed by static AST + forwardgoto. Counts the imports that bind a module-scope name (guarded ones included; imports inside a function or class body are not), and reports each imported symbol at its canonical definition site.stubs: []is measured-none. A non-module handle returns the unsupported branch withreason: "not_applicable"(mirrorsimported_by). Ceiling:static_imports: import statements written in source; importlib / import with a computed name is not included. A stub's (.pyi) own imports are declarations, not runtime imports: imported_by doesn't count them, while imports on a stub module lists them (#933).enclosing_scope— symbol → its immediate lexical enclosing scope (the inverse ofmembers), resolved by Jediparent(): a method → its class, a nested def/class → its enclosing def/class, a top-level def/class/variable → its module. At most ONE Stub. A module returns the unsupported branch withreason: "not_applicable": a module has no enclosing lexical scope (packages are not lexical scopes).submodules— package → its DIRECT child modules and subpackages (module Stubs), from a directory scan with no Jedi lookup; PEP 420 namespace subpackages included. A plain (non-package) module has none:stubs: []. A non-module handle returns the unsupported branch withreason: "not_applicable". Ceiling:on_disk_modules: modules and subpackages present on disk under the package; entries added to path at runtime are not included.
Determinism (#452): which engine picks an edge's adjacents decides what repeats. The same query gives the same stubs in one session; across sessions each edge's tier says what is guaranteed:
filesystem(submodules): read from a directory listing, without calling Jedi; the same result in every process for the same files on disk.ast(imported_by,re_exports): read from the syntax tree of the project's files, without calling Jedi; the same result in every process for the same source.jedi_local(members,enclosing_scope): read by Jedi from the source's own file, with no cross-file inference; the same result in every process for the same source.goto(callees,subclasses,superclasses,imports): each adjacent is a Jedi forward goto target. Project-scope adjacents are the same in every process; an external (stdlib or installed) target behind a try/except import shim may differ between processes (#419), so don't compare external adjacents across sessions. Known gap: a subclasses result whose base is named through a try/except import shim may differ between processes even in project scope (#1057).
Unsupported edges return the unsupported branch (never raise):
Inbound/reference edges (
callers,decorated_by,decorates,overridden_by,overrides,passed_by,read_by,references,written_by) require the Pyright reference backend (#333) and returnunsupported: true, reason: "deferred_reference_backend".Wrong-kind handles (an edge that doesn't apply to the handle's kind, e.g.
imported_byon a class ormemberson a function) return the unsupported branch withreason: "not_applicable"(#626). Which kinds each edge applies to is one table,edges.EDGE_APPLIES_TO:members→ class, module;callees→ function, method;imported_by→ module;subclasses→ class;superclasses→ class;imports→ module;enclosing_scope→ attribute, class, enum_member, function, method, property, variable;submodules→ module;re_exports→ attribute, class, enum_member, function, method, property, variable.A source whose own file can't be parsed by the server's Python (e.g. code using newer syntax) returns the unsupported branch with
reason: "unparseable"(#703), neverstubs: []: its edges were not measured.detailnames the file and line; Read the file.A definition declared only in a stub (
.pyi: a project stub-only module, typeshed, a stub-only package) has no body, so the edge that reads a body's calls returns the unsupported branch withreason: "stub_declaration"(#933): its calls weren't measured, neverstubs: []. Its other edges read declarations, so they still apply.Unrecognised edge names return
reason: "unknown_edge".
Response shape — discriminated union. found is always present.
Source not found (found: False — the handle does not resolve, checked
before the edge, so this wins over any unsupported edge):
::
{ "found": False, "handle": str, "edge": str,
"reason": "unresolved",
"detail": str } # next step: call resolve() on the nameSupported branch (found: True, "unsupported" key absent):
::
{ "found": True,
"source": str, # canonical source handle
"edge": str,
"stubs": [Stub, ...], # [] == measured-empty (NOT unsupported)
"unresolved_call_sites": int, # callees ONLY; absent otherwise
"unresolved_imports": [target, ...], # imports ONLY (#494); [] when all resolved
"unresolved_superclasses": [text, ...], # superclasses ONLY (#624); [] when all resolved
"unresolved_importers": [file, ...], # imported_by ONLY (#668); [] when all named
"unparseable_files": [file, ...], # ``imported_by``, ``subclasses``, ``re_exports`` ONLY (#729); [] when all parsed
"handleless_subclass_count": int, # subclasses ONLY (#1006); complete, 0 when all named
"handleless_subclasses": [ {"name", "file", "line", "reason"}, ... ], # subclasses ONLY; capped by max_stubs
"transitive_hint": str, # subclasses ONLY: the trace call for the full tree
"truncated": True, # these three only when max_stubs cut the list;
"truncation_reasons": ["max_stubs"], # absent otherwise
"total": int, # the edge's full size
"ceiling": str } # #417 — the scope the list is complete overceiling names the edge's static-surface ceiling (#417), as each edge's
entry above states it, and is absent only for enclosing_scope, which is
exact. A name missing from stubs is unknown beyond that scope, not
absent.
Unsupported branch (found: True, "stubs" key absent):
::
{ "found": True,
"source": str,
"edge": str,
"unsupported": True,
"reason": str, # deferred_reference_backend |
# not_yet_implemented | unknown_edge |
# not_applicable | unparseable
"detail": str, # human-readable explanation
"report_issues": str } # #458 — URL to report this limitationEach Stub carries: handle, kind, scope, line_start,
line_end, and signature when Jedi yields one (always for
class/function/method; also any name whose inferred type is callable),
plus stub: true when the definition is declared in a .pyi (absent
means source, a measured no; #933).
A re_exports stub also carries bindings, the public names it binds.
A call, import or base whose definition Jedi can't pin to exactly one
target is reported as unresolved (unresolved_call_sites /
unresolved_imports / unresolved_superclasses), never guessed (#624).
superclasses stubs are in declaration order.
callees is the only supported way to ask what a function calls; the
reverse question (what calls it) is not answerable here — see the
deferred_reference_backend reason above.
Args:
handle: Canonical Python dotted-name string (from resolve/inspect).
edge: The outbound edge to expand (e.g. "members", "callees").
project_path: Project root path (default: current directory).
max_stubs: Most stubs to return (#435), default 200; None for all.
When the edge has more, the first max_stubs come back and the
result also has truncated: true, truncation_reasons: ["max_stubs"] and total (the edge's full size); the three are
absent when nothing was cut.
Returns:
ExpandResult dict — not-found, supported, or unsupported (see above).
A lookup miss never raises. The call errors (an MCP tool error, not a response) only when it can't run:
an invalid argument, a project_path that doesn't exist, an unusable config,
or an unreadable file.
stubs: [] always means "measured, none found" — it is never returned
for an unresolvable handle.
Inputs: edge (required), handle (required), max_stubs, project_path. Returns: object
find_cli_commandsA
Find Flask CLI commands.
Args:
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: scope, envelope, project_path. Returns: result
find_computed_fieldsA
Find all computed fields (properties, computed_field decorator).
Args:
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: scope, envelope, project_path. Returns: result
find_error_handlersA
Find error handler functions.
Args:
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: scope, envelope, project_path. Returns: result
find_field_validatorsA
Find all field-specific validators.
Args:
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: scope, envelope, project_path. Returns: result
find_flask_blueprintsA
Find all Flask blueprints in the project.
Args:
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: scope, envelope, project_path. Returns: result
find_flask_configA
Find Flask configuration files and app.config usage.
Args:
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: scope, envelope, project_path. Returns: result
find_flask_extensionsA
Find Flask extensions in use.
Args:
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: scope, envelope, project_path. Returns: result
find_flask_routesA
Find all Flask routes in the project.
Args:
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: scope, envelope, project_path. Returns: result
find_flask_templatesA
Find all Flask templates and render_template calls.
Args:
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: scope, envelope, project_path. Returns: result
find_flask_viewsA
Find all Flask view functions and classes.
Args:
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: scope, envelope, project_path. Returns: result
find_model_configA
Find all model configurations.
Args:
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: scope, envelope, project_path. Returns: result
find_pydantic_modelsA
Find all Pydantic models in the project, direct and indirect (#664).
A model is a project class that subclasses a Pydantic root
(BaseModel, RootModel, BaseSettings, GenericModel, and
the pydantic.v1 compatibility classes, #935) directly or through
other project classes. Models are found by DEFINITION SITE through the
one class graph (JediAnalyzer.find_subclasses, cached per
generation, #397), so two models with the same name stay distinct and a
local class that merely shares a root's name is not a model.
Each model's fields follow its own pydantic API, from the root it
descends from (#913): a pydantic.v1 root uses v1 rules, and
pydantic.BaseModel uses the installed major version. Under v1 an
un-annotated public attribute (x = 1) is a field, and its record has
no type (absent when the field has no annotation). fields is
omitted when it can't be known: the API is unknown, or a v1 value can't
be classified.
Unplaced classes (with envelope=true): a class whose base is an
expression (make_base(), a conditional) has no static base, so it
can't be placed and isn't reported as a model. The envelope lists every
such class in the searched scope, pydantic-looking or not, in
unplaced_classes ({name, file, line, base}, [] when none; a
subscripted base like Box[int] names its class and is placed).
max_unplaced (default 50, None for all) caps that list only:
when it cuts, the envelope carries truncated: true,
truncation_reasons: ["max_unplaced"] and total (the number of
unplaced classes), and those refer to unplaced_classes alone.
results is never capped. Without the envelope, max_unplaced has
no effect.
Weaker fallback: a root that doesn't resolve is matched by direct base NAME instead. For example, when pydantic-settings isn't importable, BaseSettings subclasses are found by direct base name; the walk then continues from them by definition site. This applies ONLY to a root that doesn't resolve.
Args:
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
max_unplaced: Most unplaced_classes entries the envelope returns
(default 50; None for all). Envelope only.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: scope, envelope, max_unplaced, project_path. Returns: result
find_validatorsA
Find all Pydantic validators in the project.
Args:
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: scope, envelope, project_path. Returns: result
get_model_schemaA
Get the schema for a specific Pydantic model.
Args:
model_name: The model to get the schema for: the model's class name, or its canonical handle (a dotted name,
as find_pydantic_models returns it) to pick one when several
models share the name. No match gives the shared not-found shape
(found: false); several give resolve's ambiguous shape
(ambiguous: true with candidates).
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: model_name (required), scope, envelope, project_path. Returns: result
inspectA
Python: Inspect a canonical handle and return a structural Node.
The "what is this?" operation. Returns the symbol's kind, location, signature, docstring, edge counts, and kind-dependent fields. Cheap by default — no source content, no exhaustive enumerations.
Args: handle: A canonical handle (from resolve/resolve_at): pyeye's dotted name for the definition, not necessarily an importable path (#1024). project_path: Project root path (default: current directory)
Returns:
Node dict with found: True, universal fields (handle, kind, scope,
location, docstring, edge_counts) plus kind-dependent fields, and
stub: true when the definition is declared in a .pyi (absent
means source, a measured no; #933).
edge_counts counts only the edges cheap to measure from the
definition itself. An edge it didn't measure, including one that ran
past its time budget, is ABSENT, never 0. Follow an edge with
expand to measure it.
- class: signature (constructor), superclasses (list of Handle strings;
omitted when the class's file can't be parsed, never a measured [])
- function/method: signature, parameters, return_type?, is_async, is_classmethod, is_staticmethod
- module: is_package, package?
- attribute/property/variable/enum_member: type?, default? (simple literals only).
A class-body binding is attribute; a member of an enum.Enum
subclass is enum_member (its default is the member's value).
- non-module kinds: a re-export list, deprecated (removed in v3.0);
follow the re-export edge with expand instead. It is absent when
it couldn't be measured, never an empty list standing in for "unknown".
If the handle does not resolve:
``{"found": False, "handle": str, "reason": "unresolved", "detail": str}``
— no node fields. Call resolve() on the name to get a canonical handle.
A lookup miss never raises. The call errors (an MCP tool error, not a response) only when it can't run:
an invalid argument, a ``project_path`` that doesn't exist, an unusable config,
or an unreadable file.
Inputs: handle (required), project_path. Returns: object
outlineA
Python: Structural skeleton of a module or class — names, kinds, signatures, line spans.
Returns a nested OutlineTree — the members hierarchy of handle as a
tree of lightweight structural nodes (Stub). Each node carries
handle, kind, scope, line_start, line_end,
signature when Jedi yields one, and stub: true when it is declared
in a .pyi (absent means source; #933). No source content anywhere in
the tree.
Use resolve() or inspect() first to obtain a canonical handle, then
outline() to see the structural skeleton in one call — the single-call
answer to "show me the structure of this scope."
Default is direct members only (max_depth=1). Nested non-empty
containers (a class inside the module, a subpackage) come back as
truncated: "max_depth" — drill on demand by calling outline on that
node's handle, or pass a larger max_depth (None = unbounded).
Static-surface ceiling. The tree walks the members edge, so it is
complete only over that edge's measured scope: class-body definitions for a
class (instance attributes assigned in methods, self.x = ..., are NOT
measured) and module-level definitions for a module. Runtime-injected
members (metaclass / setattr / __getattr__ / type() /
__init_subclass__) are NOT captured either — e.g. outline of a
Django Model omits its metaclass-injected _meta / objects /
DoesNotExist. An absent member is unknown outside the measured scope,
not absent from the code.
Absence contracts — an agent MUST read these before consuming the tree.
Contract 1 — children absent ⇔ not expanded.
children present (including children: []) means measured: the
complete set of direct members of this node. children: [] is a genuine
leaf — a container with no members, or a non-container (function/method/
variable). children absent means a cap fired and this node was not
walked — treat it as "unknown," never as empty.
Contract 2 — truncated absent-not-false.
truncated: true is present only on a node that a cap cut off; it
always co-occurs with truncation_reason and an absent children.
Fully-walked nodes omit truncated entirely — truncated: false never
appears.
Truncation reasons (one string per node — not a list):
"max_depth"— at the depth frontier;resolve_memberswas peeked once and found members (a genuine empty container at the frontier getschildren: []instead). Likemax_nodesit is a budget cut, so it carriesmember_count(or, in survey mode,submodule_count): how many children it withheld (#435). Recover with a largermax_depthor by outlining that node."max_nodes"— node-budget reserve-before-expand: a container is expanded only if the budget admits ALL its direct members, else it is cut off whole. Such a node ALSO carriesmember_count— the count of direct members withheld (a fresh count; the children were never partially listed) — or, in package survey mode,submodule_count(the submodules withheld). Recover with a largermax_nodesor by targeting the subtree."external"— external-scope container at depth ≥ 1; no deeper walk into third-party code."survey_leaf"— package survey mode only (below): a module that HAS members, which a survey does not walk. Recover withoutlineon that module's handle. Nomember_count(one would cost a walk per leaf)."unparseable"— the node's own file can't be parsed by the server's Python (e.g. newer syntax), so its members were not measured (#703). Neverchildren: []. Recover by reading the file.
When both max_nodes AND a depth/external cap could apply to the same
node, truncation_reason is "max_nodes" (the harder global bound).
Ceiling (#417). The root carries ceiling, and the tree is complete
over that scope only. For a members walk it is
static_definitions: definitions written in source: a class body (methods, nested classes, class-level assignments) or a module's top level. Instance attributes assigned in methods (self.x = ...) and anything injected at runtime (metaclass, setattr, getattr, type(), init_subclass) are not included. For a package survey it is
on_disk_modules: modules and subpackages present on disk under the package; entries added to path at runtime are not included. Absent for a non-container root.
Result-level summary (#435). The root also carries
truncation_reasons: the sorted set of every node's
truncation_reason (absent when nothing was cut), named like
trace's. Check it first: it shows a real max_nodes cut that would
otherwise hide among many survey_leaf nodes. Budget reasons
(max_depth, max_nodes) mean "raise the limit" and always carry a
count; boundary reasons (external, survey_leaf) mean "outline that
node" and carry none; unparseable means "read that node's file".
Package survey mode. When handle is a package that has submodules, the
tree walks the submodules edge instead of members: children are its
child modules/subpackages. Module members are never walked in a survey — a
module with members is truncated: "survey_leaf"; only a module with no
members is children: []. A walked package whose __init__ defines
members carries member_count (present only when > 0) — those members are
not in the tree; expand(pkg, "members") lists them. A package root with
no submodules is outlined by its members instead.
Counts are named for their edge. member_count / submodule_count
always equal inspect(handle).edge_counts["members"] /
["submodules"]. On a truncated node the count was withheld by the
cap; on a walked node (children present) it is not part of this view.
Args:
handle: Canonical Python dotted-name string (from resolve/inspect).
project_path: Project root path (default: current directory).
max_depth: Maximum depth from the root (root is depth 0). Default
1 — direct members only. None means unbounded within scope;
the external cap and max_nodes still apply. At the frontier, resolve_members is peeked once
to distinguish a genuine empty container from a cut-off one.
max_nodes: Total-node budget for the tree (root counts as 1, default
200). A container the budget cannot fully admit is cut off whole
(truncated: "max_nodes" + member_count), never partially
expanded — so children is always the complete direct-member set.
Returns:
OutlineTree dict — {"found": True, "node": Stub, "children": [OutlineTree, ...]} (found on the root only). A lookup miss never raises. The call errors (an MCP tool error, not a response) only when it can't run:
an invalid argument, a project_path that doesn't exist, an unusable config,
or an unreadable file.
An unresolvable handle yields
{"found": False, "handle": str, "reason": "unresolved", "detail": str}
— no placeholder tree. Children within each parent are in source order
(sorted by (line_start, handle)); BFS inclusion order bounds the budget
gracefully (all of depth 1 before any of depth 2, etc.).
Inputs: handle (required), max_depth, max_nodes, project_path. Returns: object
resolveA
Python: Resolve any identifier form to a canonical Handle.
Accepts bare names, FQN dotted paths, re-exported public paths,
file:line coordinates, or file paths. Returns the definition-site
canonical handle along with kind and scope ("project" or "external").
A handle is pyeye's name for a definition, NOT necessarily an importable
path: a class defined in a function is pkg.mod.func.Name, which no
import reaches (#1024). Pass it back to pyeye's tools; don't import it.
Args:
identifier: The identifier to resolve. Forms supported:
- Bare name: "Config". Modules and top-level definitions first;
a method or class attribute ("load_settings") only if none
match, so a top-level name hides same-named methods. Dunders
("eq") are never matched by bare name.
- FQN: "a.b.c.Config"
- Re-exported: "package.Config" (collapses to definition site)
- File:line: "src/foo.py:42"
- File only: "src/foo.py"
project_path: Project root path (default: current directory)
max_candidates: Most candidates an ambiguous result returns (default 50;
None for all; see Returns).
Returns:
ResolveResult dict — one of:
- Success: {"found": True, "handle": str, "kind": str, "scope": "project"|"external",
"location": {...}} (the definition site, a pointer: no source content),
plus stub: true when that site is a .pyi (absent means source,
a measured no; #933). Each ambiguous candidate carries it the same way.
- Ambiguous: {"found": True, "ambiguous": True, "candidates": [...]}
At most max_candidates (default 50; None for all) candidates
come back, in sorted order (#435). When more match, the result also
has truncated: true, truncation_reasons: ["max_candidates"]
and total (how many matched); the three are absent otherwise.
- Not found: {"found": False, "identifier": str, "reason": str, "detail": str}
with reason "unresolved", "file_not_found" or "no_symbol_at_position".
The identifier is echoed verbatim; it is never put in "handle".
A lookup miss never raises. The call errors (an MCP tool error, not a response) only when it can't run:
an invalid argument, a ``project_path`` that doesn't exist, an unusable config,
or an unreadable file.
Inputs: identifier (required), project_path, max_candidates. Returns: object
resolve_atA
Python: Resolve a (file, line, column) position to a canonical Handle.
Used when you have coordinates (from a stack trace, error report, or pasted excerpt) rather than a name. Returns the same shape as resolve().
Args: file: Absolute or project-relative path to the source file. line: 1-indexed line number. column: 0-indexed column number. Pass 0 for the start of the line — this is valid; do not coerce to a default. project_path: Project root path (default: current directory)
Returns: ResolveResult dict, the same success/ambiguous shapes as resolve(). Not found: {"found": False, "file": str, "line": int, "column": int, "reason": str, "detail": str}, echoing the arguments as given, with reason "file_not_found", "no_symbol_at_position" or "unresolved".
A lookup miss never raises. The call errors (an MCP tool error, not a response) only when it can't run:
an invalid argument, a ``project_path`` that doesn't exist, an unusable config,
or an unreadable file.
Inputs: file (required), line (required), column (required), project_path. Returns: object
traceA
Python: Bounded multi-hop BFS traversal — returns a typed Subgraph.
The composition primitive: it walks the follow edges outward from
start across multiple hops, deduping by canonical handle, and returns a
Subgraph of the reachable structure. Use resolve()/inspect() to obtain
canonical handles first, then trace() to see structure across hops (call
chains, reverse-import closures, member trees).
Composes the same edge registry as expand; the implemented edges
(members, callees, imported_by, subclasses, superclasses, imports, enclosing_scope, submodules, re_exports) are traversed. Any other edge named in
follow (deferred reference edges, unknown names) is reported in
unsupported_edges rather than silently dropped — a silent drop would
falsely read as "no such neighbours". So is an implemented edge that does
not apply to a node's kind (e.g. imports on a class), or callees on
a declaration in a stub (stub_declaration, #933), with expand's own
reason and detail (#621).
Every hop is exactly what expand(node, edge) would return: a node
expand cannot resolve is not walked and is listed in
unresolved_nodes; a hop's adjacents are added all together or not at
all, so a walked hop is never partial — a hop cut by max_depth or
max_nodes records no edges and sets the matching truncation reason.
Static-surface ceiling: each hop carries its edge's ceiling, so a trace
over members or subclasses is complete only over that edge's
measured scope; runtime-injected members and dynamically-created
subclasses are not walked. Each edge's ceiling:
On
members:static_definitions: definitions written in source: a class body (methods, nested classes, class-level assignments) or a module's top level. Instance attributes assigned in methods (self.x = ...) and anything injected at runtime (metaclass, setattr, getattr, type(), init_subclass) are not included.On
callees:static_calls: calls whose target static analysis resolves; dynamic calls are counted in unresolved_call_sites, not listed.On
imported_by:static_imports: import statements written in source; importlib / import with a computed name is not included. A stub's (.pyi) own imports are declarations, not runtime imports: imported_by doesn't count them, while imports on a stub module lists them (#933).On
subclasses:literal_subclassing: project classes whose class statement names this class as a base; classes built with type(), class factories or init_subclass registration are not included.On
superclasses:declared_bases: the bases written in the class statement; bases added at runtime are not included, and bases that don't resolve are listed in unresolved_superclasses.On
imports:static_imports: import statements written in source; importlib / import with a computed name is not included. A stub's (.pyi) own imports are declarations, not runtime imports: imported_by doesn't count them, while imports on a stub module lists them (#933).On
enclosing_scope: exact (no ceiling).On
submodules:on_disk_modules: modules and subpackages present on disk under the package; entries added to path at runtime are not included.On
re_exports:package_reexports: import bindings written in source in the public modules of the symbol's own package (#712); re-exports from other packages and names provided lazily by a module getattr are not included.
Determinism (#452): a hop repeats as its edge's tier guarantees, so a trace
is reproducible across sessions only as far as its least stable edge. A
differing external target on a goto hop can also change which nodes
are reached before max_nodes cuts the walk. The tiers:
filesystem(submodules): read from a directory listing, without calling Jedi; the same result in every process for the same files on disk.ast(imported_by,re_exports): read from the syntax tree of the project's files, without calling Jedi; the same result in every process for the same source.jedi_local(members,enclosing_scope): read by Jedi from the source's own file, with no cross-file inference; the same result in every process for the same source.goto(callees,subclasses,superclasses,imports): each adjacent is a Jedi forward goto target. Project-scope adjacents are the same in every process; an external (stdlib or installed) target behind a try/except import shim may differ between processes (#419), so don't compare external adjacents across sessions. Known gap: a subclasses result whose base is named through a try/except import shim may differ between processes even in project scope (#1057).
Response shape — Subgraph::
{ "nodes": { handle: Stub, ... }, # deduped by canonical handle
"edges": [ {"from": h, "to": h, "kind": edge}, ... ],
"truncated": bool, # a cap cut off reachable nodes
"truncation_reasons": ["max_depth"?, "max_nodes"?], # which cap(s) fired
"unsupported_edges": [ {"edge", "reason", "detail"}, ... ],
"unresolved_roots": [ handle, ... ], # #488 — always present; [] when every root resolved
"unresolved_nodes": [ handle, ... ], # #621 — always present; interior nodes not walked
"unresolved_call_sites": { handle: count, ... }, # #488 — present iff callees walked
"unresolved_imports": { handle: [target, ...], ... }, # #494 — present iff imports walked
"unresolved_importers": { handle: [file, ...], ... }, # #668 — present iff imported_by walked
"unparseable_files": { handle: [file, ...], ... }, # #729 — present iff one of ``imported_by``, ``subclasses``, ``re_exports`` walked
"handleless_subclass_counts": { handle: count, ... }, # #1006 — present iff subclasses walked; nodes with none omitted
"report_issues": str, # #458 — present ONLY when unsupported_edges non-empty
"ceilings": { edge: str, ... } } # #417 — each walked edge's ceiling (see expand)Edges are NOT deduped across kinds; edges to already-visited handles are
recorded (so cycles stay visible) but never re-expanded, guaranteeing
termination on cyclic graphs. truncated is true ONLY when max_depth
or max_nodes cut off reachable handles before natural termination — not
merely because a cap was set.
Args:
start: One canonical handle, or a list of them, as BFS roots.
follow: Edge names to traverse at every hop, from the implemented
edges above (e.g. ["members"] or ["imported_by"]).
project_path: Project root path (default: current directory).
max_depth: Maximum hop distance from a root before a node becomes a
non-expanded frontier leaf (default 3).
max_nodes: Maximum number of distinct nodes in the subgraph; reaching it
sets truncated (default 50).
stop_when: Optional StopPredicate (exclude_external /
module_pattern / exclude_tests); a matching adjacent is a
pruned boundary. Roots are never pruned. exclude_external stops
at stdlib/site-packages nodes — keeps a trace inside the project (the
common case for a call chain).
Returns:
A Subgraph dict (plain, JSON-serialisable). A lookup miss never raises. The call errors (an MCP tool error, not a response) only when it can't run:
an invalid argument, a project_path that doesn't exist, an unusable config,
or an unreadable file.
An unresolvable root contributes no node but is listed in the always-present
unresolved_roots (#488) — so an empty nodes is never silently
ambiguous between "root has no neighbours" (unresolved_roots: []) and
"root did not resolve" (handle listed). When callees is traced,
unresolved_call_sites ({handle: count}) reports each node's
unresolved (dynamic / un-inferable / flaky) call sites, so a populated
subgraph never overstates how complete the call walk was.
Inputs: start (required), follow (required), max_depth, max_nodes, +2 more. Returns: object
trace_model_inheritanceA
Trace the inheritance hierarchy of a Pydantic model.
children are the model's direct subclasses by definition site (#664),
so two models with the same name each list only their own children.
mro (deprecated, removed in v3.0, #749) is the static C3 order and
fields_inherited the fields the model inherits, each with the
defined_in handle of the class that declares it. Both come from the
statically resolved bases, project or installed (#870). Each is OMITTED
when it can't be computed: a base that doesn't resolve to a class, or no
consistent order; fields_inherited also when an ancestor's class body
can't be read, or its fields can't be known under the model's own pydantic
API (v1 or v2, #913).
Args:
model_name: The model to trace: the model's class name, or its canonical handle (a dotted name,
as find_pydantic_models returns it) to pick one when several
models share the name. No match gives the shared not-found shape
(found: false); several give resolve's ambiguous shape
(ambiguous: true with candidates).
scope: One scope or a list of scopes (default: this tool's
scope_defaults.methods entry in the project config, else
scope_defaults.global, else main):
- main: the main project.
- packages: the configured packages only.
- standalone: the standalone script directories: those in the config's standalone.dirs, for scripts that aren't in any package.
- namespace:<name>: one namespace's package directories; namespace:a.b resolves under namespace a.
- package:<path>: that directory, if it exists: an absolute path, or one relative to the project (project_path).
- all: the main project, every configured package and namespace, and the standalone directories.
A name from the project's scope_aliases config expands to the
scopes it lists.
Each record also carries scope (project or external) and an absolute
location (#627), plus stub: true when it is declared in a .pyi
(absent means source; #933). A record that names a symbol carries its canonical
handle, ready for inspect or expand, or unresolved
({reason, detail}) when it can't be placed.
project_path selects the project to analyse; omitted, it is the project
the server started in, exactly as before. Plugin tools run against the given project even if its
framework wasn't auto-detected there; an empty result means the scan found
none. A project_path that doesn't exist is an MCP tool error.
envelope (default false): when true, the result is wrapped as
{scope, searched, unsearched_scopes, rejected_paths, results}, so a caller
can see which scopes were searched (#594). unsearched_scopes lists the
configured scopes that were not, then any package:<path> given whose
directory doesn't exist (#842); a relative package: path is relative to
project_path. rejected_paths lists each config entry the path check
refused, as {scope, path, reason: "rejected_path", detail} ([] when
none); its scope is always in unsearched_scopes (#898). It is absent only
when the check couldn't complete (a config file that failed to load).
Inputs: model_name (required), scope, envelope, project_path. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
The core graph verbs are cleanly separated: resolve (name→handle), resolve_at (position→handle), inspect (what is this), expand (one hop), trace (multi-hop BFS), outline (members tree). Mild overlap remains: outline is essentially trace(follow=[members]) pre-shaped, and find_validators vs find_field_validators plus find_flask_config vs find_model_config can look similar until the framework-specific descriptions are read; find_error_handlers and find_cli_commands don't signal their Flask-only scope in the name.
Two coherent conventions: bare graph verbs (resolve, inspect, expand, trace, outline) for the structural engine and find_<resource> for framework scans, with get_model_schema and configure_packages as the only outliers. Within each group the pattern is predictable and readable, though the mix of bare verbs and find_ prefixes means no single server-wide pattern.
22 tools puts this in the heavy band. The six structural tools and configure_packages are well earned, but the surface is padded by ten near-identical Flask/Pydantic scanners whose shared boilerplate (scope, envelope, project_path) suggests a more parameterized scan tool could have consolidated several.
The structural surface is genuinely complete for its static ceiling: name/position resolution, inspect, single-hop expand, bounded trace, outline, and project configuration with clear absence contracts. Gaps are documented rather than silent (no reverse reference edges like callers/overrides, no source-text retrieval, no framework inventory tool), and framework coverage is Flask- and Pydantic-only with no FastAPI/Django equivalents, though plugin activation is extensible.
Maintenance
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Repository knowledge graph MCP server for codebase understanding and debugging.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceA Model Context Protocol server that enables AI assistants like Claude to perform Python development tasks through file operations, code analysis, project management, and safe code execution.9MIT
- AlicenseAqualityBmaintenanceAn MCP server that gives Claude Code IDE-level intelligence for FastAPI projects — semantic code navigation, safe renaming, route inspection, dependency trees, and Pydantic model analysis. Instead of Claude reading files blindly, it calls structured tools backed by Jedi (Python language server) and Python's AST.191MIT
- AlicenseAqualityBmaintenanceCode intelligence MCP server for Claude Code providing multi-project code graph, semantic search, session history, knowledge base, and web search.154MIT
- AlicenseAqualityDmaintenanceUniversal MCP server that analyzes any codebase and provides structured context to AI assistants. Dynamic, accurate, and token-efficient.18MIT