Skip to content

fix(proxy): retry empty tools/list responses#288

Open
kiwigitops wants to merge 1 commit into
aws:mainfrom
kiwigitops:fix-empty-tools-list-retry
Open

fix(proxy): retry empty tools/list responses#288
kiwigitops wants to merge 1 commit into
aws:mainfrom
kiwigitops:fix-empty-tools-list-retry

Conversation

@kiwigitops
Copy link
Copy Markdown

Summary

  • make the existing --retries option retry empty upstream tools/list responses before returning an empty tool set
  • keep --retries 0 behavior unchanged for servers that intentionally expose no tools
  • document that --retries now covers empty tools/list responses

Refs #287.

Testing

  • git diff --check
  • python -m ruff check mcp_proxy_for_aws tests/unit/test_empty_tools_retry.py tests/unit/test_server.py
  • python -m ruff format --check mcp_proxy_for_aws tests/unit/test_empty_tools_retry.py tests/unit/test_server.py
  • pyright --pythonpath .\.venv\Scripts\python.exe mcp_proxy_for_aws tests/unit/test_empty_tools_retry.py tests/unit/test_server.py
  • python -m pytest tests/unit -q

@kiwigitops kiwigitops requested a review from a team as a code owner May 21, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant