![]() |
Qore json Module 1.11.0
|
MCP server connection for SSE streams. More...
#include <McpServerConnection.qc.dox.h>
Inherits ServerSentEventHandler::ServerSentEventConnection.
Public Member Methods | |
| void | constructor (string cid, string version, hash< auto > hdr, hash< auto > cx, McpServerHandler handler, Socket sock) |
| Prompts changed notification. | |
| void | sendToolsChangedNotification () |
| Send tools changed notification. | |
| void | sendResourcesChangedNotification () |
| Send resources changed notification. | |
| void | sendPromptsChangedNotification () |
| Send prompts changed notification. | |
| void | send (hash< SseMessageInfo > msg) |
| Pushes an unencoded message on the connection's message queue. | |
MCP server connection for SSE streams.
Provides access to the MCP session and protocol version for the SSE connection, and helper methods to send MCP notifications.
| void McpServerHandler::McpServerConnection::send | ( | hash< SseMessageInfo > | msg | ) |
Pushes an unencoded message on the connection's message queue.
The message will be encoded with ServerSentEventUtil::ws_encode_message before sending