Module: RubyLLM::MCP::Native::Messages
- Defined in:
- lib/ruby_llm/mcp/native/messages.rb,
lib/ruby_llm/mcp/native/messages/helpers.rb,
lib/ruby_llm/mcp/native/messages/requests.rb,
lib/ruby_llm/mcp/native/messages/responses.rb,
lib/ruby_llm/mcp/native/messages/notifications.rb
Overview
Centralized message builders for MCP JSON-RPC communication All message construction happens here, returning properly formatted bodies
Defined Under Namespace
Modules: Helpers, Notifications, Requests, Responses
Constant Summary collapse
- JSONRPC_VERSION =
JsonRpc::VERSION
- METHOD_INITIALIZE =
Request methods
"initialize"- METHOD_PING =
"ping"- METHOD_TOOLS_LIST =
"tools/list"- METHOD_TOOLS_CALL =
"tools/call"- METHOD_RESOURCES_LIST =
"resources/list"- METHOD_RESOURCES_READ =
"resources/read"- METHOD_RESOURCES_TEMPLATES_LIST =
"resources/templates/list"- METHOD_RESOURCES_SUBSCRIBE =
"resources/subscribe"- METHOD_RESOURCES_UNSUBSCRIBE =
"resources/unsubscribe"- METHOD_PROMPTS_LIST =
"prompts/list"- METHOD_PROMPTS_GET =
"prompts/get"- METHOD_COMPLETION_COMPLETE =
"completion/complete"- METHOD_LOGGING_SET_LEVEL =
"logging/setLevel"- METHOD_TASKS_LIST =
"tasks/list"- METHOD_TASKS_GET =
"tasks/get"- METHOD_TASKS_RESULT =
"tasks/result"- METHOD_TASKS_CANCEL =
"tasks/cancel"- METHOD_NOTIFICATION_INITIALIZED =
Notification methods
"notifications/initialized"- METHOD_NOTIFICATION_CANCELLED =
"notifications/cancelled"- METHOD_NOTIFICATION_ROOTS_LIST_CHANGED =
"notifications/roots/list_changed"- METHOD_NOTIFICATION_TASKS_STATUS =
"notifications/tasks/status"- METHOD_NOTIFICATION_ELICITATION_COMPLETE =
"notifications/elicitation/complete"- REF_TYPE_PROMPT =
Reference types
"ref/prompt"- REF_TYPE_RESOURCE =
"ref/resource"