ultimate-mcp-server
Version:
The definitive all-in-one Model Context Protocol server for AI-assisted coding across 30+ platforms
216 lines • 5.48 kB
TypeScript
import { z } from 'zod';
declare const RegisterFileSchema: z.ZodObject<{
path: z.ZodString;
recursive: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
path: string;
recursive?: boolean | undefined;
}, {
path: string;
recursive?: boolean | undefined;
}>;
declare const GetFileSchema: z.ZodObject<{
referenceId: z.ZodOptional<z.ZodString>;
path: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
path?: string | undefined;
referenceId?: string | undefined;
}, {
path?: string | undefined;
referenceId?: string | undefined;
}>;
declare const SearchFilesSchema: z.ZodObject<{
pattern: z.ZodString;
directory: z.ZodOptional<z.ZodString>;
maxFiles: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
pattern: string;
maxFiles: number;
directory?: string | undefined;
}, {
pattern: string;
directory?: string | undefined;
maxFiles?: number | undefined;
}>;
/**
* Register files for AI model access
*/
export declare function registerFiles(input: z.infer<typeof RegisterFileSchema>): Promise<{
success: boolean;
message: string;
files: {
path: string;
referenceId: string;
url: string;
}[];
referenceId?: undefined;
path?: undefined;
url?: undefined;
error?: undefined;
} | {
success: boolean;
message: string;
referenceId: string;
path: string;
url: string;
files?: undefined;
error?: undefined;
} | {
success: boolean;
error: string;
message?: undefined;
files?: undefined;
referenceId?: undefined;
path?: undefined;
url?: undefined;
}>;
/**
* Get file content for AI model consumption
*/
export declare function getFileContent(input: z.infer<typeof GetFileSchema>): Promise<{
success: boolean;
error: string;
referenceId?: undefined;
path?: undefined;
content?: undefined;
dataUrl?: undefined;
metadata?: undefined;
} | {
success: boolean;
referenceId: string;
path: string;
content: string;
dataUrl: string | null;
metadata: {
size: number;
mimeType: string;
hash: string;
created: string;
expires: string;
};
error?: undefined;
}>;
/**
* Search for files and register them
*/
export declare function searchAndRegisterFiles(input: z.infer<typeof SearchFilesSchema>): Promise<{
success: boolean;
message: string;
totalFound: number;
registered: number;
files: {
path: string;
referenceId: string;
url: string;
name: string;
directory: string;
}[];
error?: undefined;
} | {
success: boolean;
error: string;
message?: undefined;
totalFound?: undefined;
registered?: undefined;
files?: undefined;
}>;
/**
* Get file manifest for AI models
*/
export declare function getFileManifest(): Promise<{
success: boolean;
manifest: Record<string, any>;
stats: Record<string, any>;
error?: undefined;
} | {
success: boolean;
error: string;
manifest?: undefined;
stats?: undefined;
}>;
/**
* Create a batch file package for AI model analysis
*/
export declare function createFilePackage(input: {
paths: string[];
includeMetadata?: boolean;
}): Promise<{
success: boolean;
package: any;
fileCount: any;
totalSize: any;
error?: undefined;
} | {
success: boolean;
error: string;
package?: undefined;
fileCount?: undefined;
totalSize?: undefined;
}>;
export declare const fileServingTools: ({
name: string;
description: string;
inputSchema: z.ZodObject<{
path: z.ZodString;
recursive: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
path: string;
recursive?: boolean | undefined;
}, {
path: string;
recursive?: boolean | undefined;
}>;
handler: typeof registerFiles;
} | {
name: string;
description: string;
inputSchema: z.ZodObject<{
referenceId: z.ZodOptional<z.ZodString>;
path: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
path?: string | undefined;
referenceId?: string | undefined;
}, {
path?: string | undefined;
referenceId?: string | undefined;
}>;
handler: typeof getFileContent;
} | {
name: string;
description: string;
inputSchema: z.ZodObject<{
pattern: z.ZodString;
directory: z.ZodOptional<z.ZodString>;
maxFiles: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
pattern: string;
maxFiles: number;
directory?: string | undefined;
}, {
pattern: string;
directory?: string | undefined;
maxFiles?: number | undefined;
}>;
handler: typeof searchAndRegisterFiles;
} | {
name: string;
description: string;
inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
handler: typeof getFileManifest;
} | {
name: string;
description: string;
inputSchema: z.ZodObject<{
paths: z.ZodArray<z.ZodString, "many">;
includeMetadata: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
paths: string[];
includeMetadata?: boolean | undefined;
}, {
paths: string[];
includeMetadata?: boolean | undefined;
}>;
handler: typeof createFilePackage;
})[];
export {};
//# sourceMappingURL=file-serving.d.ts.map