Skip to content

Conversation

@michaelmoore-s1
Copy link
Contributor

@michaelmoore-s1 michaelmoore-s1 commented Nov 25, 2025

Summary

Fixes issues introduced in PR #12 (stateless_http configuration) and bumps version to 0.6.0.

Bug Fixes

  • CI failure fix: Added stdio to transport_mode Literal type - the CLI was setting PURPLEMCP_TRANSPORT_MODE=stdio but Settings only accepted http, streamable-http, or sse
  • Exception handling: Changed contextlib.suppress(BaseException) to suppress(Exception) in server.py to avoid catching KeyboardInterrupt, SystemExit, etc.
  • Type cleanup: Removed unnecessary | None from stateless_http field type
  • Description fix: Corrected transport_mode field description (was copy-paste error from stateless_http)

Documentation

  • Added PURPLEMCP_TRANSPORT_MODE to README environment variables section
  • Updated CHANGELOG for 0.6.0 release

Version Bump

  • 0.5.1 → 0.6.0 (new feature: stateless HTTP mode for AWS Bedrock AgentCore)

Test plan

  • uv run ruff format passes
  • uv run ruff check --fix passes
  • uv run mypy passes
  • Unit tests pass locally
  • CI server-startup-tests should pass (previously failed due to stdio not in Literal type)
  • CI docker-startup-tests should pass

- Fix transport_mode to include 'stdio' in Literal type (fixes CI failures)
- Change contextlib.suppress(BaseException) to suppress(Exception)
- Fix transport_mode field description (was copy-paste error)
- Clean up stateless_http type from bool | None to bool
- Document PURPLEMCP_TRANSPORT_MODE in README
- Update CHANGELOG for 0.6.0 release
@michaelmoore-s1 michaelmoore-s1 force-pushed the fix/stateless-http-cleanup branch from 7c2659e to d89e6de Compare November 25, 2025 17:07
When PURPLEMCP_STATELESS_HTTP env var is not set, Docker Compose passes
an empty string which Pydantic cannot parse as a boolean. Add default
value of 'false' to prevent CI failures.
@michaelmoore-s1 michaelmoore-s1 merged commit b162ba9 into main Nov 25, 2025
20 checks passed
@michaelmoore-s1 michaelmoore-s1 deleted the fix/stateless-http-cleanup branch November 25, 2025 17:14
@github-actions
Copy link

AI Analysis

Here are some suggestions to consider:

  • Nice work aligning the CLI defaults, settings, and docs—everything reads consistently and I didn't spot any issues that need action.

These suggestions are generated by gpt-5-codex as an experimental capability. It may make mistakes. You do not need to follow all these suggestions.

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.

2 participants