UNPKG

@xcud/remote-commander

Version:

MCP server for remote file operations via REST API

25 lines (24 loc) 649 B
import { usageTracker } from '../utils/usageTracker.js'; /** * Get usage statistics for debugging and analysis */ export async function getUsageStats() { try { const summary = await usageTracker.getUsageSummary(); return { content: [{ type: "text", text: summary }] }; } catch (error) { return { content: [{ type: "text", text: `Error retrieving usage stats: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } }