Skip to content

[Feature] MCP tools lazy loading #10997

Closed

Description

@pawg

I have tried using Notion MCP in Unsloth with Qwen3.8 27B on 24Gb of VRAM, and the one and only missing piece to be the dream experience is reducing the quite ridiculous 61K tokens of context that adding the Notion MCP tool definitions is eating. It's more than half of my usable context just for a catalog.

It would be amazing if there could be a lazy loading implementation for huge MCP tools!

Thanks!

Activity

  1. added
    feature request
    on Sep 15, 2026
  2. self-assigned this
    on Sep 15, 2026
  3. danielhanchen commented on Oct 14, 2026

    @danielhanchen
    Member

    Fixed! Large MCP catalogs like Notion's used to put every tool schema into every request, about 65K tokens for Notion's 44 tools. Local models now get a tool search tool plus the few tools that match your message, and load the rest on demand, so the same request takes about 6-11K tokens. This was fixed in #13601.
    To update: Unsloth Desktop will have an update banner. For Studio, use unsloth studio update. For Docker, use docker exec <container> unsloth-studio-update. Reopen if it still happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions