MCP prompt module definition with configuration and handler function.
Represents a registered prompt template in the Model Context Protocol server that
can be retrieved and rendered by MCP clients. Prompts provide reusable templates
for common interaction patterns.
Remarks
This is the runtime representation of an MCP prompt after registration. Unlike
McpTool which executes operations, prompts generate templated content
that clients can use to structure interactions.
The handler receives optional arguments and returns a GetPromptResult containing
the rendered prompt messages.
MCP prompt module definition with configuration and handler function.
Represents a registered prompt template in the Model Context Protocol server that can be retrieved and rendered by MCP clients. Prompts provide reusable templates for common interaction patterns.
Remarks
This is the runtime representation of an MCP prompt after registration. Unlike McpTool which executes operations, prompts generate templated content that clients can use to structure interactions.
The handler receives optional arguments and returns a GetPromptResult containing the rendered prompt messages.
Example
See
McpTool for tool module definition