Repository navigation
Done
Labels
enhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed
Description
Problem
HeadlessCode's MCP client supports tools only: MCP prompts (server-provided reusable prompt templates) are not listed or fetched, so configured servers' prompt libraries are invisible to sessions. Called out in docs/mcp.md / docs/gap-audit.md as partial parity.
Architecture (independent solution)
Add prompts as a read-only discovery surface; do not auto-inject them into the system prompt:
- Extend the MCP client wrapper with
listPrompts/getPromptvia the pinned@modelcontextprotocol/sdk(^1.32.1). Reuse the existing server-config, limits (max 12 servers), and session-end close lifecycle. - Expose them like the skills surface if a close analogue exists (
docs/skills.md): list metadata first, fetch full template only on explicit model/user request — never splice untrusted prompt text into the system prompt automatically. State the chosen surfacing in the PR and mirror the MCP-resources issue's idiom if it landed first. - Argument handling: prompt arguments are strings per spec; validate required args are present before calling, return the server's error verbatim (bounded) otherwise.
- Update
docs/mcp.mdsupported list in the same change.
Scope / non-goals
- No resources support (separate issue), no OAuth, no automatic prompt injection, no workspace
.mcp.jsonexecution.
Acceptance
- Fake MCP server with one prompt: list shows name/args, get returns rendered messages (bounded).
- Server without prompts capability → empty list, no crash; other servers unaffected.
Tests (happy / sad / bad)
- Happy: list + get with required args.
- Sad: get with missing required arg → clean validation error before any server call.
- Bad: oversized prompt result → truncated with note; malformed server response → tool error, session continues.
Contributor notes
Good first issue if you keep it to list/get against the existing fake-server test fixtures. No live server in CI.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed
Activity
Bhanu-partap-13 commentedon Dec 2, 2026
Hi @w4ffl35, I can work on this issue. I have planed to implement listPrompts/getPrompt using the existing MCP client wrapper, validate required arguments, and add tests using the fake-server fixtures. Is this issue available for me to take?
w4ffl35 commentedon Dec 2, 2026
Yes, and feel free to use AI.
w4ffl35 commentedon Dec 5, 2026
Issue 193 — Closing Report
Files changed
Baseline (before)
Baseline (after)
Boot check
Residual risk / notes
PR: #202
Merge pull request #202 from Capsize-Games/issues/w13-2026-12-05