pyeye-mcp

v2.2.0
pyeye-mcp Checked 3 hours ago Published 12 days ago

PyEye - MCP server for semantic analysis and code navigation

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

configure_packages

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…

ParameterTypeDescription
namespaces
packages
project_pathstring
saveboolean
standalone_dirs

resolve

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"). 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…

ParameterTypeDescription
identifier *string
max_candidates
project_pathstring

resolve_at

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/a…

ParameterTypeDescription
column *integer
file *string
line *integer
project_pathstring

inspect

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: Canonical Python dotted-name string (from resolve/resolve_at). 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.…

ParameterTypeDescription
handle *string
project_pathstring

expand

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…

ParameterTypeDescription
edge *string
handle *string
max_stubs
project_pathstring

trace

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`…

ParameterTypeDescription
follow *array
start *
max_depthinteger
max_nodesinteger
project_pathstring
stop_when

outline

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``, and ``signature`` when Jedi yields one. 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 o…

ParameterTypeDescription
handle *string
max_depth
max_nodesinteger
project_pathstring