Skip to main content
Glama

C++ MCP Server

by kandrwmrtn
symbol_info.py1.48 kB
"""Symbol information data structure for C++ analysis.""" from dataclasses import dataclass, field from typing import List @dataclass class SymbolInfo: """Information about a C++ symbol (class, function, etc.)""" name: str kind: str # "class", "function", "method", etc. file: str line: int column: int signature: str = "" is_project: bool = True namespace: str = "" access: str = "public" # public, private, protected parent_class: str = "" # For methods, the containing class base_classes: List[str] = field(default_factory=list) # For classes usr: str = "" # Unified Symbol Resolution - unique identifier calls: List[str] = field(default_factory=list) # USRs of functions this function calls called_by: List[str] = field(default_factory=list) # USRs of functions that call this def to_dict(self): """Convert to dictionary for JSON serialization""" return { "name": self.name, "kind": self.kind, "file": self.file, "line": self.line, "column": self.column, "signature": self.signature, "is_project": self.is_project, "namespace": self.namespace, "access": self.access, "parent_class": self.parent_class, "base_classes": self.base_classes, "usr": self.usr, "calls": self.calls, "called_by": 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/kandrwmrtn/cplusplus_mcp'

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