Back to Search

neo_sys_context_packer

0.1.0

Pre-processes and compresses large files, code, or JSON to optimize token usage.

$0.0 / call (system)
Updated: Apr 30, 2026

Overview

A token-saving compression utility. It intelligently minifies code, strips whitespace, and removes JSON formatting or comments to drastically reduce the context window footprint before processing large files with LLMs. Supports internal resource URIs for massive datasets.

Example Input

JSON payload sent to this tool:

  {
    "raw_text": "def hello():\n  # print hello\n  print('hello')",
    "mode": "minify",
    "language": "python"
  }


  {
    "resource_uri": "neonia://workspace/app.py",
    "mode": "minify",
    "language": "python"
  }

Example Output

Formatted JSON response returned by this tool:

{
  "status": "success",
  "compressed_text": "fn main() { ... }",
  "saved": "6250 tokens (50%)"
}

Setup Configuration

Add the following configuration to your MCP general settings or mcp_config.json:

{
  "mcpServers": {
    "neonia": {
      "serverUrl": "https://mcp.neonia.io/mcp?tools=neo_sys_context_packer",
      "headers": {
        "Authorization": "Bearer API_KEY"
      }
    }
  }
}