AWS-iac-mcp-server: search_cdk_documentation 在结果项中省略了 url 字段时会引发 KeyError 'url'
作者: ross-claytor-aws创建于 2026年7月24日更新于 2026年9月24日
标签bugneeds-triagestale
- Install the server:
uvx awslabs.AWS-iac-mcp-server==1.0.20(also reproduces on==1.0.21). - Launch it as a stdio MCP server and initialize an MCP client session.
- Call the
search_cdk_documentationtool with any of these queries:
AWS-s3.Bucket encryptionAWS-cdk-lib constructDynamoDB table streams
- 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).
内容来源: awslabs/mcp