Module prompts

Source
Expand description

Prompt-related message types for MCP prompt templates and completion.

This module provides types for:

  • Prompt discovery (listing available prompts)
  • Prompt templates with parameter substitution
  • Prompt generation with arguments
  • Prompt content handling

Structs§

GetPromptRequest
Request to get a prompt with specific arguments.
GetPromptResponse
Response containing the generated prompt content.
ListPromptsRequest
Request to list available prompts from the server.
ListPromptsResponse
Response containing the list of available prompts.
Prompt
Prompt definition including schema and metadata.
PromptListChangedNotification
Notification that the list of prompts has changed.
PromptMessage
A message in a prompt template.
ResourceReference
Reference to a resource within prompt content.

Enums§

MessageRole
Role of a message in a conversation.
PromptContent
Content of a prompt message.