Problem
pyproject.toml declares dependencies that are never imported or used in the codebase:
| Dependency |
Declared in pyproject.toml |
Actually used in code |
httpx>=0.28.1 |
Yes |
No — code uses requests everywhere |
fastapi>=0.109.2 |
Yes |
No — server uses mcp.server.fastmcp.FastMCP |
uvicorn>=0.27.1 |
Yes |
No — server runs via mcp.run() |
sounddevice>=0.5.1 |
Yes |
No — play() uses ffplay subprocess |
soundfile>=0.13.1 |
Yes |
No — audio is read as raw bytes |
Evidence
$ grep -r "import httpx\|from httpx\|import fastapi\|from fastapi\|import uvicorn\|from uvicorn\|import sounddevice\|from sounddevice\|import soundfile\|from soundfile" minimax_mcp/
# (no results)
Impact
- Bloated install size (~150MB+ for unnecessary packages like scipy/numpy pulled by sounddevice)
- Slower
pip install / uvx startup
- Potential dependency conflicts
- Confusing for contributors
Proposed solution
Remove from pyproject.toml dependencies:
dependencies = [
"mcp[cli]>=1.6.0",
- "fastapi>=0.109.2",
- "uvicorn>=0.27.1",
"python-dotenv>=1.0.1",
"pydantic>=2.6.1",
- "httpx>=0.28.1",
"fuzzywuzzy>=0.18.0",
"python-Levenshtein>=0.25.0",
- "sounddevice>=0.5.1",
- "soundfile>=0.13.1",
"requests>=2.31.0",
]
If httpx is intended to replace requests in the future, create a separate issue for that migration.
Acceptance criteria
- Only actually-imported packages are in
dependencies
uvx minimax-mcp still works correctly
- Install size reduced significantly
Problem
pyproject.tomldeclares dependencies that are never imported or used in the codebase:httpx>=0.28.1requestseverywherefastapi>=0.109.2mcp.server.fastmcp.FastMCPuvicorn>=0.27.1mcp.run()sounddevice>=0.5.1play()usesffplaysubprocesssoundfile>=0.13.1Evidence
Impact
pip install/uvxstartupProposed solution
Remove from
pyproject.tomldependencies:dependencies = [ "mcp[cli]>=1.6.0", - "fastapi>=0.109.2", - "uvicorn>=0.27.1", "python-dotenv>=1.0.1", "pydantic>=2.6.1", - "httpx>=0.28.1", "fuzzywuzzy>=0.18.0", "python-Levenshtein>=0.25.0", - "sounddevice>=0.5.1", - "soundfile>=0.13.1", "requests>=2.31.0", ]If
httpxis intended to replacerequestsin the future, create a separate issue for that migration.Acceptance criteria
dependenciesuvx minimax-mcpstill works correctly