get-total-processed-files
Retrieve the total number of files processed by Compresto's compression app. This MCP tool provides real-time statistics for monitoring file processing activity and usage metrics.
Instructions
Get total processed files of Compresto
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {},
"type": "object"
}
Implementation Reference
- src/index.ts:82-106 (handler)Handler function that fetches landing page data from Supabase API and returns the total number of processed (compressed) videos.async () => { const url = `${API_BASE}/v1/getLandingPageData`; const response = await makeSupabaseRequest<LandingPageDataResponse>(url); if (!response) { return { content: [ { type: "text", text: "Failed to fetch user data" } ], isError: true }; } return { content: [ { type: "text", text: `Processed ${response.data.totalCompressedVideos} files` } ] }; },
- src/index.ts:78-107 (registration)Registration of the 'get-total-processed-files' tool using server.tool, including name, description, empty input schema, and inline handler.server.tool( "get-total-processed-files", "Get total processed files of Compresto", {}, async () => { const url = `${API_BASE}/v1/getLandingPageData`; const response = await makeSupabaseRequest<LandingPageDataResponse>(url); if (!response) { return { content: [ { type: "text", text: "Failed to fetch user data" } ], isError: true }; } return { content: [ { type: "text", text: `Processed ${response.data.totalCompressedVideos} files` } ] }; }, );