Commit 67f0911
committed
feat(cli): surface the MCP endpoint in the server-ready banner (#3167)
The MCP server (/api/v1/mcp) is a default-on core capability, but nothing in
the os dev / os serve boot output pointed to it — a developer had to already
know it was there to connect an AI client. This is the dev-loop discoverability
gap #3167 set out to close: the platform's "let an AI operate the running app"
channel was live but invisible.
printServerReady now prints the MCP URL and the SKILL.md pointer whenever the
surface is enabled — gated on isMcpServerEnabled(), the SAME switch that
auto-loads the plugin and gates the route, so the banner can never advertise an
endpoint that isn't served. Hidden when OS_MCP_SERVER_ENABLED=false.
Runtime-verified: the line renders with the URL + skill pointer when enabled and
is absent when disabled. CLI builds clean; lint clean. Closes the last
(optional, DX) item on #3167 — the admission story itself landed in #3202/#3225.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pbmw3pMqNJfPbkvwh9Fkjs1 parent 1b733db commit 67f0911
3 files changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2455 | 2455 | | |
2456 | 2456 | | |
2457 | 2457 | | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
2458 | 2463 | | |
2459 | 2464 | | |
2460 | 2465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
206 | 214 | | |
207 | 215 | | |
208 | 216 | | |
| |||
233 | 241 | | |
234 | 242 | | |
235 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
236 | 248 | | |
237 | 249 | | |
238 | 250 | | |
| |||
0 commit comments