class

Enkaidu::MCPPrompt

Inherits MCP::Prompt < JSON::Serializable < Reference < Object

Defines a prompt from an MCP server

Constructors

new(prompt_def : JSON::Any, mcpc : MCPC::HttpConnection, cli : Enkaidu::Session)

Initialize with the JSON representation of the tool return by MCP "prompts/list", and the MCPC connection to use to make the tool call

Source
new(pull : JSON::PullParser)

Defines a prompt from an MCP server

Source

Instance methods

origin(*args, **options)
Source
origin(*args, **options, &)
Source
render(args : Hash(String, String))
Source