dbx-mcp-server
Version:
A Model Context Protocol server for Dropbox integration with AI-powered PDF analysis, multi-directory indexing, and parallel processing
40 lines (39 loc) • 1.95 kB
TypeScript
import { McpToolResponse } from './interfaces.js';
declare function listFiles(path: string): Promise<McpToolResponse>;
declare function uploadFile(path: string, content: string): Promise<McpToolResponse>;
declare function downloadFile(path: string): Promise<McpToolResponse>;
declare function safeDeleteItem(options: {
path: string;
userId: string;
skipConfirmation?: boolean;
retentionDays?: number;
reason?: string;
permanent?: boolean;
}): Promise<McpToolResponse>;
declare function deleteItem(path: string): Promise<McpToolResponse>;
declare function createFolder(path: string): Promise<McpToolResponse>;
declare function copyItem(fromPath: string, toPath: string): Promise<McpToolResponse>;
declare function moveItem(fromPath: string, toPath: string): Promise<McpToolResponse>;
declare function getFileMetadata(path: string): Promise<McpToolResponse>;
interface SearchOptions {
query: string;
path?: string;
maxResults?: number;
fileExtensions?: string[];
fileCategories?: string[];
dateRange?: {
start: string;
end: string;
};
includeContentMatch?: boolean;
sortBy?: 'relevance' | 'last_modified_time' | 'file_size';
order?: 'asc' | 'desc';
}
declare function searchFiles(options: SearchOptions): Promise<McpToolResponse>;
declare function getSharingLink(path: string): Promise<McpToolResponse>;
declare function getAccountInfo(): Promise<McpToolResponse>;
declare function getFileContent(path: string): Promise<McpToolResponse>;
declare function getRawFileMetadata(path: string): Promise<any>;
declare function downloadFileAsBuffer(path: string): Promise<Buffer>;
declare function getTeamInfo(): Promise<McpToolResponse>;
export { listFiles, uploadFile, downloadFile, downloadFileAsBuffer, getRawFileMetadata, deleteItem, safeDeleteItem, createFolder, copyItem, moveItem, getFileMetadata, searchFiles, getSharingLink, getAccountInfo, getFileContent, getTeamInfo, };