module CrystalDoc::MCP

Defined in:

crystaldoc/mcp.cr
crystaldoc/mcp_cache.cr

Constant Summary

DocCacheInstance = CrystalDoc::MCP::DocCache.new
PROTOCOL_VERSION = "2024-11-05"
SERVER_NAME = "crystaldoc-mcp"
SERVER_VERSION = "0.1.0"

Class Method Summary

Class Method Detail

def self.handle(request : JSON::Any, db : Queriable) : String #

[View source]
def self.handle_streamable_http(body : String, db : Queriable) : Tuple(Int32, String) #

[View source]
def self.parse_error_response : String #

[View source]
def self.rpc_error(id : JSON::Any | Nil, code : Int32, message : String) : String #

[View source]