You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: hermes mcp serve crashes with ModuleNotFoundError: No module named 'mcp_serve' on standard pip install #34871
hermes mcp serve fails immediately on a standard pip-installed venv because hermes_cli/mcp_config.py imports a top-level module mcp_serve that is not shipped in the hermes-agent wheel.
$ hermes mcp serve... File ".../hermes_cli/mcp_config.py", line 748, in mcp_command from mcp_serve import run_mcp_serverModuleNotFoundError: No module named 'mcp_serve'
$ python -c "import mcp_serve"ModuleNotFoundError: No module named 'mcp_serve'
$ ls site-packages/ | grep mcp_serve # nothing
Root cause
hermes_cli/mcp_config.py:748:
ifaction=="serve":
frommcp_serveimportrun_mcp_server# <-- bare top-level importrun_mcp_server(verbose=getattr(args, "verbose", False))
return
mcp_serve is a top-level module name that is not packaged/installed, so the import always raises on a normal install. This looks like exactly the class of problem tracked by the packaging restructure in #14590 (top-level modules → hermes_agent/...): the module either needs to be included in the wheel or the import needs to be namespaced (e.g. from hermes_agent.mcp_serve import run_mcp_server, mirroring the lazy hermes_cli.mcp_picker imports a few lines below).
Suggested fix
Either:
Ship mcp_serve in the package (add to packages/py-modules), or
Move it under the package and namespace the import, consistent with the sibling subcommands:
Duplicate of #22110 — same root cause (mcp_serve module not included in the wheel). Fix PR #22148 is open and addresses this for all install methods, not just NixOS.
Note: pip-installing hermes-agent isn't a recommended or supported install path — use the official installer (install.sh / install.ps1) or hermes update. That said, the packaging gap is real and worth closing: mcp_serve is a top-level module that wasn't listed in py-modules, so it never shipped in the wheel. Fixed in PR #35044 (also reported in #22148). Thanks for the clear root-cause writeup.
Activity
alt-glitch commentedon May 29, 2026
Duplicate of #22110 — same root cause (
mcp_servemodule not included in the wheel). Fix PR #22148 is open and addresses this for all install methods, not just NixOS.docs(roadmap): mcp_serve issue published upstream (NousResearch/herme…
fix(packaging): include mcp_serve in py-modules so hermes mcp serve w…
teknium1 commentedon May 30, 2026
Note: pip-installing
hermes-agentisn't a recommended or supported install path — use the official installer (install.sh / install.ps1) orhermes update. That said, the packaging gap is real and worth closing:mcp_serveis a top-level module that wasn't listed inpy-modules, so it never shipped in the wheel. Fixed in PR #35044 (also reported in #22148). Thanks for the clear root-cause writeup.fix(packaging): include mcp_serve in py-modules so hermes mcp serve w…
feat: claude -p subprocess bypass for Anthropic subscription billing (#1
fix(packaging): include mcp_serve in py-modules so hermes mcp serve w…
fix(packaging): include mcp_serve in py-modules so hermes mcp serve w…
fix(packaging): include mcp_serve in py-modules so hermes mcp serve w…
fix(packaging): include mcp_serve in py-modules so hermes mcp serve w…
fix(packaging): include mcp_serve in py-modules so hermes mcp serve w…
fix(packaging): include mcp_serve in py-modules so hermes mcp serve w…
fix(packaging): include mcp_serve in py-modules so hermes mcp serve w…
docs(roadmap): mcp_serve issue published upstream (NousResearch/herme…
fix(packaging): include mcp_serve in py-modules so hermes mcp serve w…
fix(packaging): include mcp_serve in py-modules so hermes mcp serve w…
fix(packaging): include mcp_serve in py-modules so hermes mcp serve w…