Skip to content

Provide ToolDefinition <-> MCP schema conversion utility #2

@elkraneo

Description

@elkraneo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions