Skip to content

Dynamic MCP Server Management #332

Closed

Description

@sincebyte

Problem
All MCP servers load at startup and stay active, causing:

  1. Wasted context - Tool descriptions take up valuable token space
  2. Tool confusion - LLM may trigger irrelevant tools

Solution
Add chat commands to dynamically load/unload MCP servers:

//mcp load <name>      # Start server & add its tools

unload , we could use /clear

Activity

  1. gopar commented on Jan 3, 2026

    @gopar

    Note: I am currently working on adding an MCP Server Manager to better handle how aider handles resources (eg networking, establishing connections) with MCPs. The manager can be added to have the ability to connect/disconnect servers, so it should be easier to implement this once this is in

  2. gopar commented on Jan 12, 2026

    @gopar

    Just a small update, a PR that allows users to enable/disable MCPs via the config was merged: #393

    it doens't implement this feature request but its a baby step in the right direction. Working in adding this in, but lacking time

  3. gopar commented on Jan 18, 2026

    @gopar

    Added in latest release. Tix can be closed

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