Package com.axelor.ai.mcp


package com.axelor.ai.mcp
  • Class
    Description
    A tool as discovered from a remote MCP server, with its RAW JSON-Schema string.
    Normalized result of an MCP tool call.
    Creates/uses live connections to a remote MCP server.
    Immutable, detached snapshot of the connection data an MCP call needs.
    Validates an MCP server URL before any outbound connection: HTTPS only, host on the administrator allowlist, and not resolving to a private/loopback/link-local address.
    A validated URL paired with the address checked during DNS resolution.
    Rejects JSON-Schema constructs the engine's schema converter (AgentResolverPlugin) and the LangChain4j JsonObjectSchema model cannot faithfully represent.
    Tests connectivity and synchronizes a remote MCP server's tools into AiTool rows.
     
    Builds a stable, provider-safe AiTool.code for a synced MCP tool, formatted as <clientCode>_<sanitizedRemoteName> and capped at 64 characters.
    MCP client factory backed by the official SDK, with cached, periodically refreshed connections.