When exposing tools via MCP, I had to manually convert ACP ToolDefinition (parameters: [String: AnyCodable]) into MCP tool schema (inputSchema) and back, including AnyCodable bridging.
Suggestion: add a small utility to convert ACP tool definitions to MCP shapes and back, e.g.:
ToolDefinition.asMcpDefinition() -> MCPToolDefinition
MCPToolDefinition.asAcpDefinition() -> ToolDefinition
This would reduce duplication and potential schema mismatches across clients.