[deep-review] A8: MCP server has no initialize instructions, empty resources/prompts lists — skill.md is invisible to MCP clients
Summary
The MCP server's cold-start surface is sparse:
initialize(src/OpenClaw.Shared/Mcp/McpToolBridge.cs:130-142) returnsprotocolVersion,capabilities.tools.listChanged=false, andserverInfo. It has noinstructionsfield (the MCP spec defines this as the place to put orientation text).resources/listreturns{ resources: [] }(McpToolBridge.cs:98).prompts/listreturns{ prompts: [] }(McpToolBridge.cs:99).- A well-written
skill.mdexists atsrc/OpenClaw.WinNode.Cli/skill.md— but it ships next towinnode.exeonly. MCP clients (Claude Desktop, Cursor, generic MCP-aware agents) never see it.
Why it matters
Cold-start for an MCP-connected agent is now: "you have these tools (prose descriptions), guess parameter shapes, try things." The skill.md content — which describes how the tools fit together, what the agent should expect, common patterns — is invisible.
This is the MCP-side counterpart to the inputSchema gap (A2). Together they make cold-start much harder than it needs to be.
Reference: Claude Skills, OpenAI Custom GPT instructions, Cursor .cursorrules — all are designed precisely for cold-start orientation. MCP's initialize.instructions is the per-server analog.
Proposed fix
Two small steps:
-
Add
instructionstoinitialize:- Read
skill.mdfrom a known path (next to the tray exe, or embedded resource). - Return it in
initialize.instructions. - Update the unit test to assert the field is non-empty.
- Read
-
Optionally serve
skill.mdand per-capability cheat sheets viaresources/list:- Each capability could ship a
<capability>.skill.mdresource. resources/listreturns the catalog;resources/readreturns the content.- Agents that want deeper context fetch on demand.
- Each capability could ship a
Migration is one PR; no schema changes required.
Severity
Medium — high-leverage cold-start improvement; closes a documented orientation gap.
Related
- A2 (typed inputSchema) — together these fix MCP cold-start.
- C11 (four capabilities missing descriptions) — same surface, different gap.
Closing during the post-refactor deep-review cleanup. MCP initialize/resources/prompts behavior needs a fresh MCP pass and is consolidated into #372. This keeps the signal while reducing stale one-off issue noise.