When passing a file path, the CLI ignores any if __name__ == "__main__": block and directly calls .run() on the discovered object (mcp, server, or app). This lets you override transport without editing code.
Examples
2 · dev — Inspector + Sandbox Env
Launches server in an isolated virtual env and opens the MCP Inspector GUI.
Defaults to STDIO transport (Inspector dropdown).
Not for HTTP testing—start server separately with run -t streamable-http then connect Inspector manually.
Flag
Short
Description
--with-editable <dir>
-e
Install local project in editable mode (requires pyproject.toml)
--with <pkg>
Extra pip packages (can repeat)
--inspector-version <ver>
Pin Inspector release
--ui-port <port>
Port for Inspector web UI
--server-port <port>
Port for Inspector proxy backend
3 · install — Package for Claude Desktop
Packages server into Claude Desktop’s plugin directory (always STDIO transport).
Flag
Short
Purpose
--name
-n
Friendly display name
--with-editable
-e
Editable project path
--with
Extra packages (repeatable)
--env-var KEY=VAL
-v
Inject env var
--env-file <file>
-f
Load vars from .env
Claude will launch the server per session under STDIO regardless of code transport settings.
4 · version
Print versions of Hyperia, MCP spec, Python, and platform.
5 · Advanced Tips
Shebang stub – add #!/usr/bin/env hyperia run at top of script for UNIX executable.
.hyperiarc – place default CLI flags in project root to avoid long commands.
CI/CD – run hyperia run inside Docker to smoke‑test Streamable HTTP startup (curl -f http://localhost:8000/mcp/health).
# Override transport defined in code
hyperia run server.py -t streamable-http -p 9000
# Proxy remote HTTP server as local STDIO (for IDE)
hyperia run https://store.example.com/mcp
# Verbose logs
hyperia run backend.py -l DEBUG
hyperia dev server.py -e . --with pandas --with matplotlib