postMcpWithHttpInfo method

Future<Response> postMcpWithHttpInfo({
  1. MCPRequest? mCPRequest,
})

The agent endpoint: every subsystem's operations as MCP tools

Model Context Protocol over JSON-RPC 2.0 — one POST per message, stateless, protocol revision 2026-07-28. tools/list answers without a credential with one tool per subsystem (its operations in the "op" enum) plus "describe", which returns one operation's input schema. tools/call names a subsystem tool and carries {"op":

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> postMcpWithHttpInfo({ MCPRequest? mCPRequest, }) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/mcp';

  // ignore: prefer_final_locals
  Object? postBody = mCPRequest;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}