Skip to main content
Glama

code-index-mcp

file_info.py790 B
""" FileInfo model for representing file metadata. """ from dataclasses import dataclass from typing import Dict, List, Optional, Any @dataclass class FileInfo: """Information about a source code file.""" language: str # programming language line_count: int # total lines in file symbols: Dict[str, List[str]] # symbol categories (functions, classes, etc.) imports: List[str] # imported modules/packages exports: Optional[List[str]] = None # exported symbols (for JS/TS modules) package: Optional[str] = None # package name (for Java, Go, etc.) docstring: Optional[str] = None # file-level documentation def __post_init__(self): """Initialize mutable defaults.""" if self.exports is None: self.exports = []

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