Commit 3a9c97d
committed
feat(server): restore dependencies parameter on MCPServer
Restores the `dependencies` parameter that was removed in #1877. The
parameter is read by the `mcp dev` and `mcp install` CLI commands to
auto-populate `uv run --with <pkg>` flags.
Removal without a working replacement breaks high-profile consumers
(awslabs/mcp uses it in 47 servers, mindsdb, redis/mcp-redis). While
PEP 723 inline script metadata is the intended replacement, the CLI
doesn't currently parse it — `uv` only reads PEP 723 when the script
is the direct target, not when wrapped in `mcp run <file>`.
Long-term design (deprecate vs. keep vs. config file) is tracked in
the linked issue.
Github-Issue:#23541 parent 7ba4fb8 commit 3a9c97d
File tree
2 files changed
+16
-1
lines changed- src/mcp/server/mcpserver
- tests/server/mcpserver
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
| |||
151 | 155 | | |
152 | 156 | | |
153 | 157 | | |
| 158 | + | |
154 | 159 | | |
155 | 160 | | |
156 | 161 | | |
| 162 | + | |
157 | 163 | | |
158 | 164 | | |
159 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
68 | 77 | | |
69 | 78 | | |
70 | 79 | | |
| |||
0 commit comments