anomalyco / anomalyco/opencode
Desktop MCP toggle can fail or block on resource catalog refresh
@Hona is already working on this.
Since Sep 10, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
After a successful MCP toggle connect, the Desktop UI synchronously refetches the global MCP resource catalog across all connected servers. A slow or unsupported resources/list call therefore blocks the toggle or surfaces a false failure. The impact rises with more connected MCP servers, but one problematic server is sufficient.
Expected behavior
The MCP toggle should complete after the MCP connection status is refreshed. Resource catalog discovery should run independently and best-effort; a slow, unsupported, or rejected resources/list must not block or fail the toggle.
Steps to reproduce
- Configure at least one MCP server whose
resources/listresponse is slow or unsupported. - Open the Desktop app and enable that MCP server.
- Observe that the toggle waits for resource discovery or reports a failure despite the connection succeeding.
Validation
The cause was reproduced and validated locally with a focused unit-test scenario in which resource discovery remains pending after connect: the toggle resolves without waiting for it. A rejection case also verifies that the background resource refresh is safely handled without an unhandled rejection or toggle failure.
Additional context
This is a Desktop MCP toggle flow issue; no credentials, private endpoints, or local paths are required to reproduce the behavior.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.