arcade-mcp/libs/arcade-mcp-server/arcade_mcp_server
Eric Gustin 36584942f7
Fix runtime warning (#771)
When `python -m arcade_mcp_server` was executed, we would get the
following Runtime Warning:

```
<frozen runpy>:128: RuntimeWarning: 'arcade_mcp_server.__main__' found in sys.modules after import of package 'arcade_mcp_server', but prior to execution of 'arcade_mcp_server.__main__'; this may result in unpredictable behaviour
```

This PR resolves this. This PR is mainly just moving existing functions
to new locations; a refactor


<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Primarily a module-organization refactor with minimal behavior change;
main risk is import-path regressions for internal callers and stdio/CLI
startup wiring.
> 
> **Overview**
> Fixes the `python -m arcade_mcp_server` runtime warning by refactoring
`arcade_mcp_server.__main__` to be a thin CLI entrypoint and moving its
reusable logic into import-safe modules.
> 
> Extracts stdio execution and tool discovery into a new
`arcade_mcp_server.stdio_runner` (`initialize_tool_catalog`,
`run_stdio_server`) and moves `setup_logging` into `logging_utils`,
updating `MCPApp`, the FastAPI `worker`, and tests to import from the
new locations. Bumps package version to `1.17.3`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
210475acea7c5df44fc66be2bde06f1f0c806c4e. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2026-02-25 09:55:37 -08:00
..
auth [TOO-326] Windows papercuts (#768) 2026-02-25 13:18:16 -03:00
fastapi Front-Door Auth (#696) 2025-12-11 12:51:20 -08:00
managers Add Tool Metadata (#766) 2026-02-17 14:31:45 -08:00
middleware MCP Local (#563) 2025-09-25 15:28:15 -07:00
resource_server Support Ed25519 Algorithm (#742) 2026-01-16 15:55:05 -08:00
transports [TOO-326] Windows papercuts (#768) 2026-02-25 13:18:16 -03:00
usage Front-Door Auth (#696) 2025-12-11 12:51:20 -08:00
__init__.py Front-Door Auth (#696) 2025-12-11 12:51:20 -08:00
__main__.py Fix runtime warning (#771) 2026-02-25 09:55:37 -08:00
context.py Front-Door Auth (#696) 2025-12-11 12:51:20 -08:00
convert.py Add Tool Metadata (#766) 2026-02-17 14:31:45 -08:00
exceptions.py Re-import arcade_core errors into arcade_mcp_server (#620) 2025-10-13 17:48:54 -07:00
lifespan.py MCP Local (#563) 2025-09-25 15:28:15 -07:00
logging_utils.py Fix runtime warning (#771) 2026-02-25 09:55:37 -08:00
mcp_app.py Fix runtime warning (#771) 2026-02-25 09:55:37 -08:00
metadata.py Add Tool Metadata (#766) 2026-02-17 14:31:45 -08:00
py.typed Inform type checkers that arcade_mcp_server has inline type annotations (#720) 2025-12-09 15:35:15 -08:00
server.py Fix broken links (#738) 2026-01-05 13:27:16 -08:00
session.py Front-Door Auth (#696) 2025-12-11 12:51:20 -08:00
settings.py Front-Door Auth (#696) 2025-12-11 12:51:20 -08:00
stdio_runner.py Fix runtime warning (#771) 2026-02-25 09:55:37 -08:00
types.py Front-Door Auth (#696) 2025-12-11 12:51:20 -08:00
worker.py Fix runtime warning (#771) 2026-02-25 09:55:37 -08:00