UNPKG

@ariadnejs/mcp

Version:

Model Context Protocol server for Ariadne - Expose code intelligence capabilities to AI agents

77 lines 2.36 kB
import { Project } from "@ariadnejs/core"; import { z } from "zod"; export declare const getSymbolContextSchema: z.ZodObject<{ symbol: z.ZodString; searchScope: z.ZodDefault<z.ZodOptional<z.ZodEnum<["file", "project", "dependencies"]>>>; includeTests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { symbol: string; searchScope: "file" | "project" | "dependencies"; includeTests: boolean; }, { symbol: string; searchScope?: "file" | "project" | "dependencies" | undefined; includeTests?: boolean | undefined; }>; export type GetSymbolContextRequest = z.infer<typeof getSymbolContextSchema>; export interface SymbolInfo { name: string; kind: "function" | "class" | "struct" | "variable" | "type" | "interface" | "enum" | "method" | "property" | "unknown"; signature?: string; visibility?: "public" | "private" | "protected"; } export interface DefinitionInfo { file: string; line: number; implementation: string; documentation?: string; annotations?: string[]; } export interface UsageReference { file: string; line: number; context: string; } export interface TestReference { file: string; testName: string; line: number; } export interface UsageInfo { directReferences: UsageReference[]; imports: UsageReference[]; tests: TestReference[]; totalCount: number; } export interface RelationshipInfo { calls: string[]; calledBy: string[]; extends?: string; implements?: string[]; dependencies: string[]; dependents: string[]; } export interface MetricsInfo { complexity?: number; linesOfCode: number; testCoverage?: number; } export interface SymbolContext { symbol: SymbolInfo; definition?: DefinitionInfo; usage: UsageInfo; relationships: RelationshipInfo; metrics?: MetricsInfo; } export interface SymbolNotFoundError { error: "symbol_not_found"; message: string; suggestions?: string[]; } export type GetSymbolContextResponse = SymbolContext | SymbolNotFoundError; /** * Implementation of get_symbol_context MCP tool * Finds a symbol by name and returns comprehensive context */ export declare function getSymbolContext(project: Project, request: GetSymbolContextRequest): Promise<GetSymbolContextResponse>; //# sourceMappingURL=get_symbol_context.d.ts.map