Commit eacd83c
authored
fix: remove duplicate mcp() function in cli.py (#31)
PR #30 (squash-merged) reintroduced an old mcp() implementation alongside
the new one (added in commit a9f3d55). The old mcp() used click_to_mcp
directly, while the new mcp() uses run_for_app from the .mcp_server module.
Python silently shadowed the first mcp() with the second, so tests passed
and the CLI worked, but having two definitions of the same function is a
code smell that could cause confusion or future bugs.
This commit removes the first (old) mcp() and keeps the newer
implementation that uses the project's mcp_server abstraction.
Verified: 108/108 tests pass1 parent a6ff6e2 commit eacd83c
1 file changed
Lines changed: 0 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 117 | | |
132 | 118 | | |
133 | 119 | | |
| |||
0 commit comments