Skip to content

Feature Request: Ability to Disable (Not Delete) MCP Connection in Chainlit UI #2227

Open
@komikndr

Description

@komikndr

I’m currently building a chatbot with many tools attached. As expected, this consumes a significant number of tokens, even for simple conversations. To manage this, I’ve created multiple chat templates to selectively enable tools.

However, I often want to use a tool that relies on context from a previous conversation using a different toolkit.

After trying MCP in Claude desktop, it inspired me to use an MCP client in Chainlit. Unfortunately, in Chainlit’s UI, the MCP connection can only be destroyed, meaning I have to reinsert the connection details every time.

Feature Question / Suggestion
Is there a way to disable (but not delete) an MCP connection from the UI? Or am I missing an existing feature?

I think the on_mcp_disconnect decorator could potentially serve the same cleanup function as when deleting a connection, without permanently removing it from the UI.

Thanks for your time!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions