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.
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: trueorenabled: falseDescribe 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: falseand I think it would also be helpful here.