ServerEvents
Add the following line to your scenario code to use the events:
require(Modules.MCP);
Constants
Contains information about connector.
Parameters
client:
The MCP.Client instance.
data:
{customEvent: string, payload: Object}
OptionalThe 'payload' parameter contains the event's data.
The MCP error event.
Parameters
client:
The MCP.Client instance.
data:
{customEvent: string, payload: Object}
OptionalThe 'payload' parameter contains the event's data.
The tool result returned from the MCP server. https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk@v1.5.0/mcp#CallToolResult
Parameters
client:
The MCP.Client instance.
data:
{customEvent: string, payload: Object}
OptionalThe 'payload' parameter contains the event's data.
The tools list returned from the MCP server. https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk@v1.5.0/mcp#ListToolsResult
Parameters
client:
The MCP.Client instance.
data:
{customEvent: string, payload: Object}
OptionalThe 'payload' parameter contains the event's data.
The unknown event.
Parameters
client:
The MCP.Client instance.
data:
{customEvent: string, payload: Object}
OptionalThe 'payload' parameter contains the event's data.