You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[deep-review] A8: MCP server has no initialize instructions, empty resources/prompts lists — skill.md is invisible to MCP clients #361
initialize (src/OpenClaw.Shared/Mcp/McpToolBridge.cs:130-142) returns protocolVersion, capabilities.tools.listChanged=false, and serverInfo. It has no instructions field (the MCP spec defines this as the place to put orientation text).
A well-written skill.md exists at src/OpenClaw.WinNode.Cli/skill.md — but it ships next to winnode.exe only. 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 instructions to initialize:
Read skill.md from 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.
Optionally serve skill.md and per-capability cheat sheets via resources/list:
Each capability could ship a <capability>.skill.md resource.
resources/list returns the catalog; resources/read returns the content.
Agents that want deeper context fetch on demand.
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.
Activity
shanselman commentedon May 18, 2026
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.