object
mcp_server_2026_07_28_spec
MCP 2026-07-28 protocol handler. Returns reply/1, reply_with_progress/2, subscribe/3, accepted, or no_reply outcomes. Does not write to streams; transports render outcomes.
Availability:
logtalk_load(mcp_server(loader))Author: Paulo Moura
Version: 1:0:0
Date: 2026-09-02
Compilation flags:
static, context_switching_callsRemarks:
(none)
Inherited public predicates:
Public predicates
run_stdio_loop/3
Stdio read/dispatch loop. Called by the stdio transport.
Compilation flags:
staticTemplate:
run_stdio_loop(Input,Output,Options)Mode and number of proofs:
run_stdio_loop(+stream,+stream,+list) - oneemit_progress/6
Buffers a notifications/progress event or invokes progress_hook/1 from current options.
Compilation flags:
staticTemplate:
emit_progress(Token,RequestId,Output,ProgressValue,Total,Message)Mode and number of proofs:
emit_progress(+term,+term,+stream,+number,+number,+atom) - oneProtected predicates
(no local declarations; see entity ancestors if any)
Private predicates
output_stream_/1
Current output stream used for stdio rendering and subscription event fan-out.
Compilation flags:
dynamicTemplate:
output_stream_(Stream)Mode and number of proofs:
output_stream_(-stream) - zero_or_onesubscription_/3
Active subscription entry: identifier, opening request id, and filter list.
Compilation flags:
dynamicTemplate:
subscription_(SubscriptionId,RequestId,Filters)Mode and number of proofs:
subscription_(-atom,-nonvar,-list) - zero_or_morerunning_/0
Flag set while the stdio server loop is active.
Compilation flags:
dynamicMode and number of proofs:
running_ - zero_or_oneprogress_buffer_/1
Buffered notifications/progress events for the current request (before final reply).
Compilation flags:
dynamicTemplate:
progress_buffer_(Events)Mode and number of proofs:
progress_buffer_(-list) - zero_or_onecurrent_options_/1
Merged options for the active prepare/handle session.
Compilation flags:
dynamicTemplate:
current_options_(Options)Mode and number of proofs:
current_options_(-list) - zero_or_oneOperators
(none)