Skip to content

MCP Inspector — Prompts #672

Description

@R-Lawton

Add the Prompts tab to the MCP Inspector. Depends on #671 for the page shell, connection bar, and MCP session management.

Prompts tab:

  • Alert (info, inline) — "Generating prompts creates text templates only and does not execute commands"
  • Left panel — "Select a prompt":
    • Select (typeahead) with refresh Button
    • Prompt name with sparkle Icon + MCP server name
    • Description text
    • Copy Button (icon)
    • Dynamic FormGroup inputs from prompt arguments (TextInput, Select)
    • Button (primary): "Generate prompt"
    • Button (secondary): "Clear fields"
  • Right panel — "Output":
    • CodeBlock showing generated prompt text
    • Token count display

MCP protocol

Action MCP Method Proxy endpoint
List prompts prompts/list POST /gateways/<ns>/<name>/mcp
Get prompt prompts/get POST /gateways/<ns>/<name>/mcp

Designs: https://www.figma.com/proto/oizjCN6EVed31dW71YXS3K/RHCL-MCP?node-id=332-19491

Definition of done

  • Unit tests (Jest)
  • E2e tests (Playwright)
  • Documentation updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage/acceptedReviewed, prioritised, and ready for work

    Type

    No type

    Projects

    Status
    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions