We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sparshdrolia/Persistent-code-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
code_analyzer.cpython-310.pyc•13.4 KiB
o
y�g�k � @ s� d Z ddlZddlZddlZddlmZmZmZmZm Z m
Z
ddlZddl
mZmZmZmZ ejejd� e�e�ZG dd� dej�ZG d d
� d
�ZG dd� dej�ZdS )
z}
Code Analysis Engine
Responsible for parsing code using Python's AST and extracting entities,
relationships, and metadata.
� N)�Dict�List�Optional�Any�Tuple�Set� )�KnowledgeGraph�
ComponentType�ComponentStatus�RelationshipType)�levelc s0 e Zd ZdZdd� Z� fdd�Zdd� Z� ZS )�CodeVisitorz%AST visitor that tracks parent nodes.c C s
i | _ d S �N)�parents)�self� r �X/Users/sparshdrolia/Sparsh personal/persistent-code-mcp/persistent_code/code_analyzer.py�__init__ s
zCodeVisitor.__init__c s&