qwen-code/docs/users
Shaojin Wen f29f210201
feat(cli): browse MCP server resources in the /mcp dialog (#5635)
* feat(cli): browse MCP server resources in the /mcp dialog

The @server:uri resource reference (read + inject) shipped in #5544, but
the /mcp management dialog only surfaced a numeric "Resources: N" count —
there was no way to list a server's resource URIs, so a user who didn't
already know a URI couldn't discover what to reference.

Mirror the existing tools flow: add a "View resources" action on the
server detail step that opens a resource list, plus a detail view showing
each resource's URI, name, MIME type, size and description, along with the
exact @server:uri reference to paste into a message. Gated on
resourceCount > 0 (so untrusted folders, where MCP is never discovered,
show nothing). Adds en/zh/zh-TW strings, unit tests for both new steps,
and updates the MCP docs.

* fix(cli): wire MCP resource browser into the extensions manager + dedupe ref builder

Addresses review on #5635:

- [Critical] ServerDetailStep is shared with the extensions manager
  (McpServerActionsView), which doesn't pass onViewResources — so the new
  "View resources" action rendered there as a dead no-op. Gate the action on
  the optional handler being present (and add it to the useMemo deps), and
  implement the resource subview in McpServerActionsView so extension MCP
  servers get the same browser as the /mcp dialog.

- [Suggestion] Add a canonical buildMcpResourceRef() next to
  matchMcpServerPrefix() (its exact inverse) and use it for the @server:uri
  hint and the @server: autocomplete value, so the format has one source of
  truth; add a round-trip test.

- [Suggestion] Cover previously-untested paths: ResourceListStep scroll
  window (15 items: row windowing + ↑/↓ + count), ResourceDetailStep size:0
  and showName dedup, and ServerDetailStep action gating (incl. the
  dead-action regression).
2026-06-22 13:11:07 +00:00
..
configuration feat(core): add Requesty provider (#5478) 2026-06-21 06:37:24 +08:00
extension feat(extensions): support archive install sources (#4909) 2026-06-22 13:36:13 +08:00
features feat(cli): browse MCP server resources in the /mcp dialog (#5635) 2026-06-22 13:11:07 +00:00
ide-integration update documentation 2025-12-19 18:16:59 +08:00
reference docs(cli): document tmux scroll workaround (#5248) 2026-06-19 02:18:12 +08:00
support docs(cli): document tmux scroll workaround (#5248) 2026-06-19 02:18:12 +08:00
_meta.ts feat(daemon): merge daemon-mode feature batch into main (#4490) 2026-06-12 00:34:49 +08:00
common-workflow.md docs: fix stale defaults, CLI syntax, and tool naming drift (#5158) 2026-06-15 20:06:34 +08:00
integration-github-action.md docs: updated all links, click and open in vscode, new showcase video in overview 2025-12-17 11:10:31 +08:00
integration-jetbrains.md docs(integration): use CDN URLs for images and fix formatting 2026-03-16 14:12:48 +08:00
integration-vscode.md fix: docs 2026-01-14 10:30:03 +08:00
integration-zed.md docs(integration): use CDN URLs for images and fix formatting 2026-03-16 14:12:48 +08:00
overview.md feat(installer): verify release assets + switch public docs to standalone entrypoint (#3855) 2026-06-04 17:23:04 +08:00
quickstart.md feat(installer): verify release assets + switch public docs to standalone entrypoint (#3855) 2026-06-04 17:23:04 +08:00
qwen-serve-deploy-local.md feat(daemon): merge daemon-mode feature batch into main (#4490) 2026-06-12 00:34:49 +08:00
qwen-serve.md feat(cli): serve the Web Shell UI from qwen serve (#5392) 2026-06-19 19:41:33 +08:00