Skip to content

Conversation

@Teagan42
Copy link
Contributor

@Teagan42 Teagan42 commented Oct 7, 2025

Summary

  • move media discovery helpers into mcp_plex.server.media and expose them across the server
  • introduce mcp_plex.server.tools.media_library to register media tools, resources, and prompt
  • adjust FastMCP server initialization and tests to use the new modules and re-export the expected interfaces

Testing

  • uv run ruff check .
  • uv run pytest

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

@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__.py3512892%55–56, 136–137, 185, 202, 240, 261–264, 278–281, 289, 363, 366, 404, 422–423, 461, 491, 509, 515, 533, 632–634, 638
   __main__.py440%3–8
   cli.py62198%73
   config.py821285%58, 61–69, 76, 82, 102, 116
   media.py85495%62, 84–85, 95
mcp_plex/server/tools
   media_library.py2891196%477, 760, 783–791
TOTAL260118993% 

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

@Teagan42 Teagan42 merged commit 0ffb4ba into main Oct 7, 2025
4 checks passed
@Teagan42 Teagan42 deleted the codex/refactor-media-discovery-functions-to-new-module branch October 7, 2025 07:25
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