Skip to content

[deep-review] A8: MCP server has no initialize instructions, empty resources/prompts lists — skill.md is invisible to MCP clients #361

Closed

Description

@codemonkeychris

Summary

The MCP server's cold-start surface is sparse:

  • 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).
  • resources/list returns { resources: [] } (McpToolBridge.cs:98).
  • prompts/list returns { prompts: [] } (McpToolBridge.cs:99).
  • 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:

  1. 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.
  2. 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.

Activity

  1. added
    documentation
    enhancement
    on May 14, 2026
  2. shanselman commented on May 18, 2026

    @shanselman
    Collaborator

    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.

  3. locked as resolved and limited conversation to collaborators on May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationenhancement

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions