Qore json Module 1.11.0
Loading...
Searching...
No Matches
McpServerHandler::McpServerConnection Class Reference

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.
 

Private Attributes

string session
 The session identifier.
 
string version
 The protocol version.
 
const auto McpToolsChangedNotification = ...
 Tools changed notification.
 
const auto McpResourcesChangedNotification = ...
 Resources changed notification.
 
const auto McpPromptsChangedNotification = ...
 Prompts changed notification.
 

Detailed Description

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.

Member Function Documentation

◆ send()

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


The documentation for this class was generated from the following file: