Prompt template

MCP Python SDK Debugging Conversation Prompt

A reusable MCP prompt that opens a debugging conversation around a supplied error message.

About this listing

The debug_error prompt in the official Python SDK Code Helper example accepts an error string and constructs a short conversation. It supplies an introductory user message, the error as a second user message, and an assistant response asking what has already been tried. This is useful for learning how MCP prompts return multiple messages with different roles, rather than a single instruction string. It does not inspect logs, execute code or diagnose the error itself; a connected model continues the conversation. It is distinct from the review_code prompt defined alongside it. The example code is MIT licensed. Free refers to the code only; any model provider or infrastructure may charge separately.

Source: Visionary Junction · Reuse terms