More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    MCP Token Diet

    1

    This skill audits your MCP configuration to eliminate bloat and implements a lazy-loading architecture to shrink request payloads.

    $14.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    MCP Token Diet

    MCP Token Diet

    Example session with this skill installed

    My OpenCode agent is hitting token limits constantly with my 5 MCP servers connected. Audit my setup and install the token diet plugin.

    • Read your context and instructions
    • Compiled the mcp token diet
    • Generated the document

    I have audited your current MCP configuration. You are currently running 5 servers (engram, context7, octocode, weather-proxy, and Jira) with a total of 72 tool definitions. Based on your recent activity, the weather-proxy and Jira tools have not been invoked in 14 days.

    I have installed the lazy-load plugin to your OpenCode configuration. The agent will now see a core set of 7 tools and a load_tool gateway, instead of the full 72-tool library.

    MCP Token Audit & Installation

    MetricCurrent StatePost-Optimization (Est)
    Connected MCP Servers53 Active (2 Disabled)
    Total Tool Definitions729 (Core + Gateway)
    Tool Token Overhead~38,500~6,200
    Estimated Saving-83.8% Reduction
    
    # Plugin successfully installed to:
    # ~/.config/opencode/plugins/lazy-load.ts
    
    # Commands executed:
    cd ~/.config/opencode
    bun add @opencode-ai/plugin
    

    Next steps

    1. Restart your OpenCode instance to activate the plugin.
    2. Run a test prompt and then check tail -f /tmp/opencode/lazy-load.log to verify tool stripping is active.
    3. If the agent fails to find a tool, ensure it uses load_tool to pull the specific schema into context.

    shot-3-tests

    1793237531110-q5zw.png

    PDF · document

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Agentic workflows often suffer from a hidden tax: every connected Model Context Protocol (MCP) server dumps its entire tool library into every request, wasting tens of thousands of tokens. This skill audits your MCP configuration to eliminate bloat and implements a lazy-loading architecture to shrink request payloads.

    What it does

    • MCP inventory audit identifies every connected server and identifies which ones are actually contributing value.
    • Automated plugin installation deploys a TypeScript interceptor for OpenCode users to strip non-core tool definitions.
    • Lazy-loading implementation replaces full tool schemas with a lightweight gateway, allowing tools to be loaded only when required.
    • Context window optimization physically removes data from the HTTP request layer to ensure the LLM only sees what it needs.
    • Savings verification benchmarks token usage before and after to confirm overhead reduction.

    How it works

    1. Audit phase where the agent lists all connected MCP servers and identifies those unused in the last two weeks.
    2. Automated deployment for OpenCode environments, installing the lazy-load.ts plugin and required dependencies via bun.
    3. Manual configuration for other agents, focusing on server-level filtering and selective tool enablement.
    4. Verification step checking the /tmp/opencode/lazy-load.log and provider logs to measure the final token savings.

    Frameworks & tools

    This skill works with any agent using MCP servers, with specialized automation for OpenCode v1.17.x+. It utilizes TypeScript, Bun, and the @opencode-ai/plugin library for interception.

    Why this beats prompting it yourself

    Simple prompts cannot physically remove tool definitions that an agent's core architecture injects into the request header. This skill provides a mechanical solution that modifies the actual payload, achieving token reductions that system prompts alone cannot reach.

    Use cases

    • Stop wasting 25k+ tokens on every request when you have multiple MCP servers connected.
    • Speed up agent response times by significantly reducing the input payload size.
    • Maintain a large library of specialized tools without hitting context window limits.

    Known limitations

    Automatic interception is limited to OpenCode. Other agents require manual configuration at the server level. Hiding tools adds a two-step overhead for the first time a specific tool is called.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed today

    Requires

    None required. Optional: OpenCode v1.17+ and bun or npm (only for the automated lazy-load path).

    Listedtoday

    What's inside

    Frequently Asked Questions