@opscogs/octools
    Preparing search index...

    Function toMcpTool

    • Return tool as an MCP Tool object (specs 2025-11-25 and 2026-07-28).

      name has namePrefix prepended, checked against MCP_NAME_RE, so one provider can reach two targets on one server. inputSchema and outputSchema are the descriptor's schemas verbatim; the three hints become annotations; access, target, result_kind, deprecated, the meta bag and tags go under _meta with the com.opscogs.octools/ prefix, beside the spec version. Only func is not represented (it is the server's handler). title, outputSchema, target and tags are present only when set. Throws OCToolError when the prefixed name breaks the rule.

      Parameters

      Returns Record<string, unknown>