![]() |
Qore json Module 1.11.0
|
Class for MCP client connections; returns McpClient objects. More...
#include <McpConnection.qc.dox.h>
Inherits ConnectionProvider::HttpBasedConnection.
Public Member Methods | |
| void | constructor (string url, hash< auto > attributes, string name, string description, hash< auto > options) |
| Creates the McpConnection object. | |
| void | constructor (hash< auto > config, soft< hash< auto > > attr) |
| Creates the object from the arguments. | |
| string | getType () |
returns "mcp" | |
| McpClient | getImpl (bool connect, soft< hash< auto > > rtopts) |
| returns a McpClient object | |
| hash< ConnectionSchemeInfo > | getConnectionSchemeInfoImpl () |
| Returns the ConnectionSchemeInfo hash for this object. | |
Public Attributes | |
| hash< auto > | real_opts |
| Real options for creating the MCP client. | |
| const auto | ConnectionScheme = ... |
| Connection entry info. | |
Class for MCP client connections; returns McpClient objects.
supports the following options:
"connect_timeout": connection timeout to use in milliseconds (default: 30000)"timeout": transfer timeout to use in milliseconds (default: 60000)"client_name": the client name to use for initialization (default: "QoreMcpClient")"client_version": the client version to use for initialization (default: "1.0")| void McpClient::McpConnection::constructor | ( | hash< auto > | config, |
| soft< hash< auto > > | attr | ||
| ) |
Creates the object from the arguments.
| config | with the following keys:
|
| attr | optional connection attributes
|
| CONNECTION-OPTION-ERROR | missing or invalid connection option or attribute |
| void McpClient::McpConnection::constructor | ( | string | url, |
| hash< auto > | attributes, | ||
| string | name, | ||
| string | description, | ||
| hash< auto > | options | ||
| ) |
Creates the McpConnection object.
| name | the name of the connection |
| description | connection description |
| url | connection URL (potentially with password info) |
| attributes | various attributes. See below |
| options | connection options |
See AbstractConnection::constructor for attributes and options reference.
| McpClient McpClient::McpConnection::getImpl | ( | bool | connect, |
| soft< hash< auto > > | rtopts | ||
| ) |