Skip to content

Optional / Lazy Loading of MCP Servers #2335

@sanand0

Description

@sanand0

What feature would you like to see?

Some MCP servers take several seconds to start. If there’s an error, Codex waits 60s before timing out.

This makes the CLI startup feel slow (though I can start typing immediately). That's a little distracting when we're not using those MCPs in that session.

Could MCPs be:

  • Loaded on demand when first invoked in a conversation?
  • Loaded explicitly via a command-line option (e.g. --with-mcp=playwright,github)
  • Loaded explicitly in-session slash command (e.g. /mcp load playwright).

That'd keep startup fast and let us use MCPs when needed.

Are you interested in implementing this feature?

Yes, I'd love to!

Additional information

It's great that Codex is lightweight - interface and feature-wise. I'd love to keep it that way. Happy to understand alternative approaches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions