Skip to content

Add an option to disable connection #21

@KurtGokhan

Description

@KurtGokhan

Is your feature request related to a problem? Please describe.
Sometimes additional stuff needs to be done before connecting to the MCP server. In those cases, it would be helpful to disable the connection until that stuff is completed.

Describe the solution you'd like
Add an option like disabled: true or enabled: false

Describe alternatives you've considered
A workaround is to delay mounting the component that calls useMcp, but setting that up requires boilerplate and isn't optimal.

Additional context
Some libraries like Tanstack Query support enabled: false and I think it would also be helpful here.

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