#4340·mcp

AWS-iac-mcp-server: search_cdk_documentation 在结果项中省略了 url 字段时会引发 KeyError 'url'

作者: ross-claytor-aws创建于 2026年7月24日更新于 2026年9月24日
标签bugneeds-triagestale
  1. Install the server: uvx awslabs.AWS-iac-mcp-server==1.0.20 (also reproduces on ==1.0.21).
  2. Launch it as a stdio MCP server and initialize an MCP client session.
  3. Call the search_cdk_documentation tool with any of these queries:
  • AWS-s3.Bucket encryption
  • AWS-cdk-lib construct
  • DynamoDB table streams
  1. Each call returns isError=True, content: Error calling tool 'search_cdk_documentation': 'url'.

The traceback terminates in awslabs/aws_iac_mcp_server/client/aws_knowledge_client.py, in _parse_search_documentation_result, at the url=item['url'] line inside the list comprehension (~line 83).