Commit e696496
grapharc[mcp] shipped broken: an unbounded pin, and a package that could not be imported without it
Two defects, one found by the other.
`grapharc/mcp/server.py` builds on `mcp.server.fastmcp`, which exists in the
mcp 1.x line and was removed in 2.0 — and the extra said `mcp>=1.2`. So every
fresh `pip install 'grapharc[mcp]'` resolved to 2.0.0 and could not import the
server at all, while `uv.lock` held development on 1.28 and kept every local
test green. The ceiling is explicit now: raising it means porting off FastMCP,
which should be a diff someone writes rather than a resolver accident.
CI reported that as "in the source tree but not in the wheel:
['grapharc.mcp.driver', 'grapharc.mcp.server']", which was not true — both were
in the wheel. `pkgutil.walk_packages` imports a package to walk into it, and
`grapharc/mcp/__init__.py` eagerly imported the SDK-backed module, so any
environment without a working extra made the whole subpackage unwalkable and it
read as missing. `grapharc/slack/__init__.py` already documents the right
posture; `driver.py` needs no SDK. The three SDK-backed names resolve on first
access now, so `import grapharc.mcp` works without the extra and
`from grapharc.mcp import build_server` still works with it.
130 modules import from a clean `[all]` wheel.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent de313ef commit e696496
3 files changed
Lines changed: 35 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
10 | 20 | | |
11 | 21 | | |
| 22 | + | |
| 23 | + | |
12 | 24 | | |
13 | | - | |
14 | 25 | | |
15 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
85 | 90 | | |
86 | | - | |
| 91 | + | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments