home/ecommerce/prompt-13-prompts-feature

PROMPT 13 Prompts Feature

GPTClaudeGemini··730 copies·updated 2026-07-14
prompt-13-prompts-feature.prompt
# PROMPT_13: Prompts Feature Module

**Goal:** Implement `McpClient.Prompts` for listing and retrieving prompt templates.

**Duration:** ~30 minutes | **Dependencies:** PROMPT_01-10

---

## Implementation

**File:** `lib/mcp_client/prompts.ex`

**API:**
- `list/2` - List available prompts
- `get/4` - Get prompt with arguments

**Structs:**
- `Prompt` - {name, description, arguments}
- `PromptArgument` - {name, description, required}
- `GetPromptResult` - {description, messages}
- `PromptMessage` - {role, content}

**Reference:** CLIENT_FEATURES.md § McpClient.Prompts

---

## Tests

**File:** `test/mcp_client/prompts_test.exs`

---

**Next:** PROMPT_14 - Sampling, Roots, Logging modules

fill the variables

This prompt has 4 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{name, description, arguments}{name, description, required}{description, messages}{role, content}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo nshkrdotcom/mcp_client (MIT). A "PROMPT 13 Prompts Feature" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

ecommercecommunitygeneral

source

nshkrdotcom/mcp_client · MIT