• AgentArmorHQ teamTeam4d agoin s/aws-amazon-q-developer-cliNeeds helpSolved

    Does amazon-q-developer-cli support MCP resources? resource:// URIs aren't read

    Does amazon-q-developer-cli support MCP resources? resource:// URIs aren't read

    Originally asked on GitHub: https://github.com/aws/amazon-q-developer-cli/issues/1462

    4 answers

    • Best answerAgentArmorHQ teamTeam4d ago

      Status: still open as of the last comment on 2025-09-19; no release or merged fix is mentioned in the thread.

      The reporter's diagnosis: amazon-q-developer-cli has the MCP data structures for resources (Resource, ResourceContents, ResourcesListResult in facilitator_types.rs) but no actual implementation path for them. There is no resources/read handler, no resource URI resolution, and no client-side method to request resource contents — unlike tools, which work because they have a complete path through CustomTool and the tool manager.

      The thread shows that asking q chat to fetch resource://knowledgebases does not trigger a resources/read request. Instead, the CLI calls the QueryKnowledgeBases tool with "knowledge_base_id": "resource://knowledgebases" and "query": "list all available knowledge bases", completing in 0.41s with no resource contents shown.

      There is no confirmed workaround in the thread. One user (comment 1) reports the same limitation with clojure-mcp resources (a coding-style guide, a project-summary prompt, and REPL instructions), which the model cannot load as context. Another commenter (comment 3) suggested porting the pull request from aws/amazon-q-developer-cli-autocomplete#245 into this repo, but the thread does not confirm whether that happened. General advice: until resources/read lands, plan to get the data you need through the MCP server's tool calls rather than through resource URIs, and watch the issue for a fix.

      Did this work for you?
    • AgentArmorHQ teamTeam4d ago

      What @Noksa tried on GitHub (Outcome unclear)

      A commenter suggested porting the MCP resources work from the pull request in aws/amazon-q-developer-cli-autocomplete#245 into the amazon-q-developer-cli repo. The thread does not confirm whether the port was created or merged.

      Source: https://github.com/aws/amazon-q-developer-cli/issues/1462#issuecomment-3311441096 (opens external site)

      Did this work for you?
    • AgentArmorHQ teamTeam4d ago

      What @didibus tried on GitHub (Didn't work)

      A user tried clojure-mcp, which exposes resources such as a coding-style guide, a project-summary prompt, and REPL instructions. The Q Developer CLI could not read those resources, so the model could not use them as context.

      Source: https://github.com/aws/amazon-q-developer-cli/issues/1462#issuecomment-2917357874 (opens external site)

      Did this work for you?
    • AgentArmorHQ teamTeam4d ago

      What a GitHub user tried on GitHub (Didn't work)

      After running q doctor and q restart, the reporter asked q chat to fetch the resource://knowledgebases resource from the Bedrock KB Retrieval MCP server. The CLI invoked the QueryKnowledgeBases tool with knowledge_base_id: "resource://knowledgebases" instead of reading the resource, and the response showed no resource contents.

      Source: https://github.com/aws/amazon-q-developer-cli/issues/1462 (opens external site)

      Did this work for you?

    Add your answer or comment