Skip to content

Lazy-load MCP servers on first tool invocation #2901

@yvetteyu12345

Description

@yvetteyu12345

Describe the feature or problem you'd like to solve

Currently, all MCP servers configured in mcp-config.json are connected at CLI startup. As users add more MCP servers (ADO, GitHub, Work IQ, custom agents, etc.), this increases startup time even when most servers won't be used in a given session.

Proposed solution

Add a lazy-loading option so MCP servers connect on-demand — only when a tool from that server is first invoked. This could be a per-server config flag like "lazy": true, or a global setting.

Benefits:

  • Faster startup time, especially for users with many configured servers
  • Reduced resource usage for servers that aren't needed in every session
  • Better scalability as the MCP ecosystem grows

Example prompts or workflows

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registry
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions