feat(cli): surface the MCP endpoint in the server-ready banner (#3167)#3239
Merged
Conversation
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_01Pbmw3pMqNJfPbkvwh9Fkjs
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📓 Docs Drift CheckThis PR changes 1 package(s): 17 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
os-zhuang
marked this pull request as ready for review
July 18, 2026 16:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#3167 的最后一项(可选 DX)。也是这条线最初动机的兑现:#3167 开篇讲的就是 "discoverability is zero exactly where the platform's pitch is strongest — the dev loop"——MCP 端点默认开着、能用、还自我广播(RFC 9728 +
/mcp/skill),但os dev/os serve的启动输出里没有任何指引,开发者得先知道它在才连得上。变更
printServerReady横幅在 MCP 启用时多打一行 URL +SKILL.md指引:isMcpServerEnabled()——与自动加载插件、门住路由的同一决策点,所以横幅绝不会广播一个没在服务的端点;OS_MCP_SERVER_ENABLED=false时不显示。验证
运行时验证:开→渲染 URL + skill 行;关→无 MCP 行(见下)。CLI 构建干净、lint 干净、changeset(
@objectstack/clipatch)。合并后 #3167 的四个决策 + 可选 DX 全部完成,建议随之关闭 #3167。
Refs #3167、#3202、#3225。
🤖 Generated with Claude Code
https://claude.ai/code/session_01Pbmw3pMqNJfPbkvwh9Fkjs
Generated by Claude Code