Package com.axelor.ai.mcp
package com.axelor.ai.mcp
-
ClassDescriptionA 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 LangChain4jJsonObjectSchemamodel cannot faithfully represent.Tests connectivity and synchronizes a remote MCP server's tools intoAiToolrows.Builds a stable, provider-safeAiTool.codefor 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.