protocol
mcp_server_transport_protocol
Protocol for MCP server transports. The mcp_server facade object selects the transport via the transport/1 option and delegates the server lifecycle to it.
logtalk_load(mcp_server(loader))staticPublic predicates
spec/1
Returns the MCP server spec version implemented by this adapter (e.g. '2025-06-18' or '2026-07-28').
staticspec(Version)spec(-atom) - onestart/4
Starts the adapter against the given application object, input/output streams, and normalized server configuration options. Blocks until the client disconnects (EOF) or an exit condition is reached. The adapter is responsible for all request handling, capability negotiation, and cleanup of adapter-owned state.
staticstart(Application,Input,Output,Options)start(+object_identifier,+stream,+stream,+list) - one_or_errorOptions list specifies a non-supported Version spec:domain_error(protocol_version,Version)notify/1
Publishes an application event to interested clients. Canonical event terms are tools_list_changed, prompts_list_changed, resources_list_changed, and resource_updated(URI). The 2025-06-18 adapter may ignore or reject events not supported by that specification; the 2026-07-28 adapter filters events through active subscriptions.
staticnotify(Event)notify(+compound) - zero_or_onecleanup/0
Releases any adapter-owned dynamic state. Called by the facade after the server loop terminates (success, failure, exception, or EOF).
staticcleanup - oneProtected predicates
(none)
Private predicates
(none)
Operators
(none)