Commit 13e2032
committed
mcp(fix): Guard entrypoint against missing fastmcp dependency
why: The `libtmux-mcp` console script is always installed via
`[project.scripts]`, but `fastmcp` is only declared in
`[project.optional-dependencies]`. A plain `pip install libtmux` installs
the CLI entrypoint, but invoking it crashes with `ModuleNotFoundError`.
what:
- Catch `ImportError` in `main()` and print a helpful install message
directing users to `pip install libtmux[mcp]`1 parent bf056a5 commit 13e2032
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
9 | 19 | | |
10 | 20 | | |
0 commit comments