{
  "$schema": "https://raw.githubusercontent.com/modelcontextprotocol/specification/main/schema/server-card.json",
  "name": "TrimFile In-Browser Media Engine",
  "description": "Zero-upload client-side multimedia processing tools including video compression, audio bitrate tuning, image optimization, PDF manipulation, and forensic AI text detection.",
  "version": "1.0.0",
  "homepage": "https://www.trimfile.cc",
  "endpoint": "https://www.trimfile.cc/api/mcp",
  "transport": "http",
  "capabilities": {
    "tools": true,
    "resources": true,
    "prompts": false
  },
  "contact": {
    "email": "support@trimfile.cc",
    "telephone": "+1-555-874-6345"
  },
  "tools": [
    {
      "name": "compress_video",
      "description": "Compress video files client-side using WebCodecs with target presets (Discord <10MB/<25MB, WhatsApp <16MB, Custom target).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "targetPreset": {
            "type": "string",
            "enum": [
              "discord_free",
              "discord_nitro",
              "whatsapp",
              "custom"
            ],
            "description": "Compression preset to guarantee output file limits"
          },
          "targetSizeMB": {
            "type": "number",
            "description": "Custom target size in megabytes"
          },
          "trimStart": {
            "type": "number",
            "description": "Start trim timestamp in seconds"
          },
          "trimEnd": {
            "type": "number",
            "description": "End trim timestamp in seconds"
          }
        }
      }
    },
    {
      "name": "compress_image",
      "description": "Batch compress images (WebP, JPEG, PNG, AVIF) with customizable quality and dimension constraints.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "format": {
            "type": "string",
            "enum": [
              "image/webp",
              "image/jpeg",
              "image/png",
              "image/avif"
            ]
          },
          "quality": {
            "type": "number",
            "minimum": 0.1,
            "maximum": 1.0,
            "description": "Compression quality factor"
          }
        }
      }
    },
    {
      "name": "images_to_pdf",
      "description": "Combine multiple images (JPG, PNG, WebP, AVIF) into a single PDF document client-side with configurable page sizes and margins.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pageSize": {
            "type": "string",
            "enum": [
              "fit",
              "auto_a4",
              "a4_portrait",
              "a4_landscape",
              "letter_portrait"
            ]
          },
          "margin": {
            "type": "string",
            "enum": [
              "none",
              "small",
              "standard"
            ]
          }
        }
      }
    },
    {
      "name": "merge_pdf",
      "description": "Merge multiple PDF documents client-side into a single consolidated PDF.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "fileCount": {
            "type": "integer",
            "minimum": 2,
            "description": "Number of PDF files to merge"
          }
        }
      }
    },
    {
      "name": "detect_ai_text",
      "description": "Perform forensic analysis on text to measure perplexity, burstiness, and probability of AI generation.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "minLength": 50,
            "description": "Text content to analyze for AI patterns"
          }
        },
        "required": [
          "text"
        ]
      }
    },
    {
      "name": "dub_video",
      "description": "Translate Japanese and foreign video audio into English while preserving each character's distinct voice pitch and tone using client-side WebGPU acceleration.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sourceLang": {
            "type": "string",
            "description": "Source dialogue language (e.g. ja, ko, es)"
          },
          "targetLang": {
            "type": "string",
            "description": "Target dub language (e.g. en)"
          },
          "voiceMode": {
            "type": "string",
            "enum": [
              "clone",
              "narrator"
            ]
          }
        }
      }
    }
  ],
  "resources": [
    {
      "uri": "https://www.trimfile.cc/llms.txt",
      "name": "LLM Documentation",
      "description": "Overview of TrimFile architecture and tool links",
      "mimeType": "text/plain"
    },
    {
      "uri": "https://www.trimfile.cc/index.md",
      "name": "Markdown Representation",
      "description": "Full Markdown view of the TrimFile platform",
      "mimeType": "text/markdown"
    }
  ]
}