ai.mcp #
fn logging_set_level_handler #
fn logging_set_level_handler(data string) !string
logging_set_level_handler handles the logging/setLevel request This is a stub implementation that accepts the request but doesn't actually change logging behavior
fn new_server #
fn new_server(backend Backend, params ServerParams) !&mcpcore.Server
Re-export the main functions from mcpcore
fn result_to_mcp_tool_content #
fn result_to_mcp_tool_content[T](result T) ToolContent
fn result_to_mcp_tool_contents #
fn result_to_mcp_tool_contents[T](result T) []ToolContent
Re-export helper functions from mcpcore
type Backend #
type Backend = mcpcore.Backend
type MemoryBackend #
type MemoryBackend = mcpcore.MemoryBackend
type Server #
type Server = mcpcore.Server
Re-export the main types from mcpcore
type ServerConfiguration #
type ServerConfiguration = mcpcore.ServerConfiguration
type ServerInfo #
type ServerInfo = mcpcore.ServerInfo
type ServerParams #
type ServerParams = mcpcore.ServerParams
type Tool #
type Tool = mcpcore.Tool
type ToolCallResult #
type ToolCallResult = mcpcore.ToolCallResult
type ToolContent #
type ToolContent = mcpcore.ToolContent
enum LogLevel #
enum LogLevel {
debug
info
notice
warning
error
critical
alert
emergency
}
LogLevel represents the logging levels supported by MCP
struct SetLevelParams #
struct SetLevelParams {
pub:
level LogLevel
}
SetLevelParams represents the parameters for the logging/setLevel method