Skip to content

refactor: rename cmcp_gateway -> cmcp_runtime - #273

Merged
imran-siddique merged 2 commits into
mainfrom
refactor/gateway-to-runtime-rename
Jun 9, 2026
Merged

refactor: rename cmcp_gateway -> cmcp_runtime#273
imran-siddique merged 2 commits into
mainfrom
refactor/gateway-to-runtime-rename

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Summary

  • Renames src/cmcp_gateway/ to src/cmcp_runtime/ via git mv (history preserved, similarity scores 88-100%)
  • Updates all import paths across src/, tests/, and pyproject.toml
  • Symbol renames: GatewayClaim -> RuntimeClaim, GatewayContext -> RuntimeContext, GatewayError -> CMCPError (avoids Python builtin conflict), gateway_url -> runtime_url
  • pyproject.toml: package name cmcp-gateway -> cmcp-runtime, entry point, packages, mypy files and overrides
  • _GATEWAY_VERSION -> _RUNTIME_VERSION in trace_claim.py and corresponding test
  • "cmcp-gateway" PyPI lookup string annotated with # was cmcp-gateway; SPIFFE URI spiffe://cmcp.gateway/... left unchanged (protocol identifier)
  • MCPGateway and CMCPProxy left unchanged per spec

Not changed

  • cmcp_verify package name
  • Markdown files (handled separately)
  • cmcp-gateway references in CHANGELOG.md (historical)
  • Badge URLs and shield.io links

Test results

  • ruff check src/ tests/: all checks passed (1 auto-fix applied)
  • mypy src/cmcp_runtime/: no issues in 34 source files
  • pytest tests/unit/ (excluding test_benchmarks.py): 582 passed, 1 skipped
  • test_benchmarks.py::test_benchmark_runs_smoke is a pre-existing failure on main (Cedar policy deny in benchmark setup, unrelated to this rename - confirmed by checking origin/main directly)

Test plan

  • CI passes on all unit test jobs
  • Confirm test_benchmarks.py failure exists on main before merge (pre-existing)
  • Verify pip install -e . resolves the package as cmcp-runtime
  • Verify cmcp entrypoint still works after install

…eClaim

- git mv src/cmcp_gateway -> src/cmcp_runtime to preserve history
- All import paths updated across src/, tests/, pyproject.toml
- GatewayClaim -> RuntimeClaim, GatewayContext -> RuntimeContext
- GatewayError -> CMCPError (avoids Python builtin conflict)
- gateway_url -> runtime_url (field/variable names only)
- pyproject.toml: name cmcp-gateway -> cmcp-runtime, entry point, packages, mypy config
- _GATEWAY_VERSION -> _RUNTIME_VERSION in trace_claim.py and tests
- String literals updated; "cmcp-gateway" PyPI ref annotated with "# was cmcp-gateway"
- MCPGateway and CMCPProxy left unchanged per spec
- SPIFFE URI spiffe://cmcp.gateway/... left unchanged (protocol identifier)
- 582 unit tests pass; test_benchmarks pre-existing failure on main unrelated to rename
@imran-siddique
imran-siddique merged commit 1baf0f9 into main Jun 9, 2026
8 checks passed
@imran-siddique
imran-siddique deleted the refactor/gateway-to-runtime-rename branch July 29, 2026 23:20
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