Skip to main content
Glama
types.ts2.65 kB
export interface AnnotationInfo { name: string; // e.g., "@Override", "@Component", "@pytest.fixture" type: 'annotation' | 'decorator' | 'pragma'; parameters?: Array<{ name?: string; // Named parameter (e.g., "value" in @RequestMapping(value="/api")) value: string; // Parameter value type?: string; // Parameter type if determinable }>; source_line?: number; // Line number where annotation appears framework?: string; // e.g., "Spring", "JUnit", "Flask", "Angular" category?: string; // e.g., "testing", "injection", "validation", "lifecycle" } export interface CodeNode { id: string; project_id: string; type: 'class' | 'interface' | 'enum' | 'exception' | 'function' | 'method' | 'field' | 'package' | 'module'; name: string; qualified_name: string; description?: string; source_file?: string; start_line?: number; end_line?: number; modifiers?: string[]; attributes?: { parameters?: Array<{ name: string; type: string; description?: string; }>; return_type?: string; annotations?: AnnotationInfo[]; [key: string]: any; }; } export interface CodeEdge { id: string; project_id: string; type: 'calls' | 'implements' | 'extends' | 'contains' | 'references' | 'throws' | 'belongs_to'; source: string; target: string; attributes?: { [key: string]: any; }; } export interface Neo4jConfig { uri: string; user: string; password: string; } export interface ProjectConfig { isolation_strategy: 'shared_db' | 'separate_db'; default_project?: string; cross_project_analysis: boolean; max_projects_shared_db: number; } export interface ProjectContext { project_id: string; name?: string; description?: string; created_at?: Date; updated_at?: Date; } export interface QueryResult { nodes?: CodeNode[]; edges?: CodeEdge[]; records?: any[]; } // Semantic Search Types export interface SemanticEmbedding { vector: number[]; model: string; version: string; created_at: Date; } export interface SemanticSearchConfig { provider: 'openai' | 'ollama' | 'disabled'; model: string; api_key?: string; base_url?: string; dimensions: number; max_tokens: number; batch_size: number; similarity_threshold: number; } export interface SemanticSearchResult { node: CodeNode; similarity_score: number; matched_content: string; } export interface SemanticSearchParams { query: string; project_id?: string; node_types?: CodeNode['type'][]; limit?: number; similarity_threshold?: number; }

Latest Blog Posts

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/JonnoC/CodeRAG'

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