Skip to content

feat: tool_search to defer large MCP tool sets #42

Closed

Description

@wowi42

Summary

Defer MCP tools behind a single tool_search tool when a connected server exposes many tools, so their definitions stop costing context on every request.

Why

Large MCP servers (Datadog ships 100+ tools) bloat every request with definitions the model rarely uses. Maki loads one search tool and only the matches enter context.

Scope

  • tool_search(query): searches deferred MCP tool names/descriptions, activates matches for subsequent turns
  • Activation threshold or [mcp] config flag; small servers keep direct registration
  • Activated tools behave exactly like directly-registered ones (permissions, approval)
  • /mcp output shows deferred vs active tools
  • Tests: registration, search, activation, permission enforcement

Out of scope

  • Ranking/embedding search (plain substring/prefix matching is fine)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions