@opichi/smartcode
Version:
Universal code intelligence MCP server - analyze any codebase with TypeScript excellence and multi-language support
159 lines • 4.68 kB
TypeScript
/**
* IMPORTANT: Before modifying this file, please update CHANGELOG.md with a summary of your changes.
* Also, make clear comments about every change in this file and what it was replacing so that we don't end up trying the same fixes repeatedly.
*/
/**
* Lightweight Code Intelligence MCP Tools
* Provides precise code analysis without ML dependencies
*/
import { Tool } from '@modelcontextprotocol/sdk/types.js';
/**
* Find symbols by name - locate functions, classes, variables, types
*/
export declare const findSymbol: Tool;
export declare function handleFindSymbol(args: any): Promise<{
content: {
type: string;
text: string;
}[];
}>;
/**
* Search for code patterns across the codebase
*/
export declare const searchCode: Tool;
export declare function handleSearchCode(args: any): Promise<{
content: {
type: string;
text: string;
}[];
}>;
/**
* Analyze complete structure of a file
*/
export declare const analyzeFile: Tool;
export declare function handleAnalyzeFile(args: any): Promise<{
content: {
type: string;
text: string;
}[];
}>;
/**
* Get high-level project structure and overview
*/
export declare const getProjectStructure: Tool;
export declare function handleGetProjectStructure(args: any): Promise<{
content: {
type: string;
text: string;
}[];
}>;
/**
* List API routes and endpoints in the project
*/
export declare const listApiRoutes: Tool;
export declare function handleListApiRoutes(args: any): Promise<{
content: {
type: string;
text: string;
}[];
}>;
/**
* Get code index - the complete "table of contents" for the project
*/
export declare const getProjectOverview: Tool;
export declare const getFunctionsByFile: Tool;
export declare const searchFunctions: Tool;
export declare const getTypesByPattern: Tool;
export declare const getComponentsByPattern: Tool;
export declare const getRoutesByPattern: Tool;
export declare const getCodeIndex: Tool;
export declare function handleGetProjectOverview(args: any): Promise<{
content: {
type: string;
text: string;
}[];
}>;
export declare function handleGetFunctionsByFile(args: any): Promise<{
content: {
type: string;
text: string;
}[];
}>;
export declare function handleSearchFunctions(args: any): Promise<{
content: {
type: string;
text: string;
}[];
}>;
export declare function handleGetTypesByPattern(args: any): Promise<{
content: {
type: string;
text: string;
}[];
}>;
export declare function handleGetComponentsByPattern(args: any): Promise<{
content: {
type: string;
text: string;
}[];
}>;
export declare function handleGetRoutesByPattern(args: any): Promise<{
content: {
type: string;
text: string;
}[];
}>;
export declare function handleGetCodeIndex(args: any): Promise<{
content: {
type: string;
text: string;
}[];
}>;
export declare const codeIntelligenceTools: {
[x: string]: unknown;
name: string;
inputSchema: {
[x: string]: unknown;
type: "object";
properties?: {
[x: string]: unknown;
} | undefined;
required?: string[] | undefined;
};
title?: string | undefined;
description?: string | undefined;
outputSchema?: {
[x: string]: unknown;
type: "object";
properties?: {
[x: string]: unknown;
} | undefined;
required?: string[] | undefined;
} | undefined;
annotations?: {
[x: string]: unknown;
title?: string | undefined;
readOnlyHint?: boolean | undefined;
destructiveHint?: boolean | undefined;
idempotentHint?: boolean | undefined;
openWorldHint?: boolean | undefined;
} | undefined;
_meta?: {
[x: string]: unknown;
} | undefined;
}[];
export declare const codeIntelligenceHandlers: {
find_symbol: typeof handleFindSymbol;
search_code: typeof handleSearchCode;
analyze_file: typeof handleAnalyzeFile;
get_project_structure: typeof handleGetProjectStructure;
list_api_routes: typeof handleListApiRoutes;
get_project_overview: typeof handleGetProjectOverview;
get_functions_by_file: typeof handleGetFunctionsByFile;
search_functions: typeof handleSearchFunctions;
get_types_by_pattern: typeof handleGetTypesByPattern;
get_components_by_pattern: typeof handleGetComponentsByPattern;
get_routes_by_pattern: typeof handleGetRoutesByPattern;
get_code_index: typeof handleGetCodeIndex;
};
//# sourceMappingURL=code-intelligence.d.ts.map