Skip to main content
Glama

code-index-mcp

symbol_info.py745 B
""" SymbolInfo model for representing code symbols. """ from dataclasses import dataclass from typing import Optional, List @dataclass class SymbolInfo: """Information about a code symbol (function, class, method, etc.).""" type: str # function, class, method, interface, etc. file: str # file path where symbol is defined line: int # line number where symbol starts signature: Optional[str] = None # function/method signature docstring: Optional[str] = None # documentation string called_by: Optional[List[str]] = None # list of symbols that call this symbol def __post_init__(self): """Initialize mutable defaults.""" if self.called_by is None: self.called_by = []

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/johnhuang316/code-index-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server