Skip to content

Conversation

@Teagan42
Copy link
Contributor

@Teagan42 Teagan42 commented Oct 7, 2025

What

  • move the RunConfig dataclass and CLI main into a dedicated mcp_plex.server.cli module that imports the shared server state
  • update mcp_plex.server to re-export the CLI entrypoint and point packaging to the new module
  • adjust tests to import the CLI module directly

Why

  • decouples the CLI surface from the server package initialization to simplify future reuse and testing

Affects

  • CLI packaging and console script wiring
  • server module initialization and tests that exercise the CLI

Testing

  • uv run pytest

Documentation

  • Updated the console script target in pyproject.toml

https://chatgpt.com/codex/tasks/task_e_68e4aead8de0832896631133cf3a9f4a

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

@github-actions
Copy link

github-actions bot commented Oct 7, 2025

Coverage

Coverage Report
FileStmtsMissCoverMissing
mcp_plex/common
   validation.py28293%37–38
mcp_plex/loader
   __init__.py3741795%84–91, 165, 255–260, 662, 777–779, 781, 867–886
   __main__.py440%2–8
   imdb_cache.py43295%59, 63
mcp_plex/loader/pipeline
   channels.py64297%134–135
   enrichment.py5167585%237, 259–265, 318, 323, 354, 356, 363, 367, 471, 492, 512, 520–522, 525–527, 530–532, 540–545, 553, 607–608, 632, 692–693, 709, 738, 745, 747, 751, 803, 821, 833, 862, 868, 871–879, 905, 908–910, 927–929, 949–952, 956, 970–976, 998, 1000, 1003–1005
   ingestion.py1551392%81, 130–150, 185, 222, 238, 331, 337, 357
   orchestrator.py95595%63, 141, 170, 193–194
   persistence.py130993%122, 164–165, 175, 186, 190–192, 245
mcp_plex/server
   __init__.py7814394%161–162, 242–243, 262, 279, 329, 351–352, 362, 442, 463–466, 480–483, 491, 565, 568, 606, 624–625, 663, 1091, 1364, 1387–1395, 1432, 1450, 1456, 1474, 1573–1575, 1579
   __main__.py440%3–8
   cli.py62198%73
   config.py821285%58, 61–69, 76, 82, 102, 116
TOTAL257118993% 

Tests Skipped Failures Errors Time
157 0 💤 0 ❌ 0 🔥 1m 13s ⏱️

@Teagan42 Teagan42 merged commit a8351bf into main Oct 7, 2025
4 checks passed
@Teagan42 Teagan42 deleted the codex/create-cli-module-and-update-init-file branch October 7, 2025 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants