Packages

Gleam library for building Model Context Protocol servers and transports

Current section

Files

Jump to
mcp_toolkit include mcp_toolkit@transport@interface_TransportInterface.hrl
Raw

include/mcp_toolkit@transport@interface_TransportInterface.hrl

-record(transport_interface, {
send :: fun((mcp_toolkit@transport@interface:transport_message()) -> {ok,
nil} |
{error, binary()}),
'receive' :: fun(() -> {ok,
mcp_toolkit@transport@interface:transport_event()} |
{error, binary()}),
start :: fun(() -> {ok,
gleam@erlang@process:subject(mcp_toolkit@transport@interface:transport_event())} |
{error, binary()}),
stop :: fun(() -> {ok, nil} | {error, binary()})
}).