MCP Client Library

MCP Client Library (ODC)

Stable version 0.1.5 (Compatible with ODC)
Uploaded on 6 May (2 weeks ago) by Truewind
MCP Client Library

MCP Client Library (ODC)

Documentation
0.1.5

To use this library, you will need to implement a flow similar to this one



  • Action: CallMCPTool

    • Description: Calls a specific tool exposed by a connected MCP server using the SSE protocol.
    • Inputs:
      • ServerUrl: The SSE endpoint URL of the target MCP server.
      • ToolName: The name of the tool to execute.
      • ToolArguments: Arguments required by the tool (Property, Value, Type).
    • Output:
      • ToolResponse: The primary text content returned by the executed MCP tool.
  • Action: CallMCPTool_AgentBuilder

    • Description: Calls a specific MCP tool selected from a list, designed for integration with OutSystems AI Agent Builder. Uses the SSE protocol.
    • Inputs:
      • ServerUrl: The SSE endpoint URL of the target MCP server.
      • ToolName: The name of the specific tool to execute.
      • ToolSelection: Input representing the tool chosen by the AI Agent or user.
      • MCPTools: The list/structure of available tools provided as context.
    • Outputs:
      • ToolResponse: The primary text content returned by the executed MCP tool, suitable for Agent Builder consumption.
      • CurrentIndex: Index or identifier of the tool executed within the MCPTools input.
  • Action: GetMCPTools

    • Description: Retrieves the raw list of available tools from a connected MCP server using the SSE protocol.
    • Input:
      • MCPServerURL: The SSE endpoint URL of the target MCP server.
    • Output:
      • MCPTools: Represents the tools available on the server (containing name, description, schema, etc.).
  • Action: MCPTools_FormatToAgentBuilder

    • Description: Converts the raw list/structure of MCP tools (from GetMCPTools) into the specific format required by OutSystems AI Agent Builder.
    • Input:
      • MCPTools: The raw tool data obtained from GetMCPTools.
    • Output:
      • AgentBuilderTools: The list of tools formatted for AI Agent Builder.

If you have any issues mapping the `AgentBuilderTools` output to the AI Agent builder Structures, try serializing this output and deserializing it into the Tools structure from AI Agent Builder