summaryrefslogtreecommitdiff
path: root/docs/mcp-managing-prompts.md
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-11 20:35:17 +0200
committerPaul Buetow <paul@buetow.org>2026-02-11 20:35:17 +0200
commit97b8887fb3448fd08524111d98425859bec8789f (patch)
tree8ad6235f64ed4a98f5475e32dd502872babc6bc3 /docs/mcp-managing-prompts.md
parent0a218306f8b3381610d219deca10a21406aa08cf (diff)
Fix MCP protocol version negotiation and null prompts array
Two issues prevented Claude Code CLI from discovering MCP prompts: 1. Protocol version mismatch: Server always returned "2025-06-18" but Claude Code sends "2025-11-25". Per MCP spec, server must echo back the client's version if supported. Now supports all known versions (2024-11-05 through 2025-11-25). 2. Null prompts array: Go nil slices marshal as JSON null, but Claude Code expects an empty array []. Initialize prompts slice with make() to ensure [] in JSON output. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'docs/mcp-managing-prompts.md')
0 files changed, 0 insertions, 0 deletions