Skip to content

fix(app): show MCP and LSP status by fetching directly in status UI#30259

Closed
OpeOginni wants to merge 2 commits into
anomalyco:devfrom
OpeOginni:fix/desktop-mcp-lsp-display
Closed

fix(app): show MCP and LSP status by fetching directly in status UI#30259
OpeOginni wants to merge 2 commits into
anomalyco:devfrom
OpeOginni:fix/desktop-mcp-lsp-display

Conversation

@OpeOginni
Copy link
Copy Markdown
Contributor

@OpeOginni OpeOginni commented Jun 1, 2026

Issue for this PR

Closes #30228
Closes #30125
Closes #30099
Closes #30141
Closes #30070
Closes #30104
Closes #30222
Closes #30171
Closes #30159
Closes #30202
Closes #30130
Closes #30098
Closes #30330
Closes #30265

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The MCP selection dialog and status popover showed 0 of 0 / empty even when the /mcp endpoint correctly returned server statuses (including failed servers like github and jira).

The UI read MCP/LSP state from the shared directory sync store (sync.data.mcp / sync.data.lsp). After MCP loading was made lazy (only enabled for open directories), that store was often empty or stale when these components rendered, so statuses weren't shown.

Solution

Fetch MCP and LSP status directly in the components that display them, using the existing directory-scoped SDK client:

  • dialog-select-mcp.tsx now queries sdk.client.mcp.status().
  • status-popover-body.tsx adds useMcpStatus() / useLspStatus() and reads from those live queries.

Query keys stay aligned with the existing [directory, "mcp"|"lsp"] cache keys.

How did you verify your code works?

  • Ran Typecheck to Push changes to github
  • Tested on my dev fixed branch

Screenshots / recordings

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@OpeOginni
Copy link
Copy Markdown
Contributor Author

OpeOginni commented Jun 2, 2026

hey @Hona are you able to check this out to fix the MCP issue folks are having?

my bad, just saw your fix

@OpeOginni OpeOginni closed this Jun 2, 2026
@OpeOginni OpeOginni deleted the fix/desktop-mcp-lsp-display branch June 2, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment