Skip to content

v0.5.0

Latest

Choose a tag to compare

@magifd2 magifd2 released this 29 Nov 04:57

Changed

  • The MCP tools run on the organization's tool-conventions module,
    nlink-jp/mcptool
    (ADR-0002, organization ADR-031): arguments are decoded
    before a tool runs, errors are structured, and the server is run by
    mcptool's serve.Run. What a client sees:
    • Errors are JSON with a code: {"code": …, "message": …, "details": …}
      in place of plain text. An unknown or wrong-typed argument is
      invalid_arguments with the argument in details.argument (worded
      unknown argument "…" / argument "…" must be …); neither mac nor
      macs is missing_argument with details.one_of; the others are
      no_database, database_error and update_failed, with today's
      messages. The get_usage manual's recovery table is read by code.
    • search_vendor without query (or with null) is
      missing_argument naming query; an empty or blank query is
      invalid_arguments naming it. Both used to answer the same plain text.
    • Results are JSON on one line (no indentation), and <, > and & arrive
      unescaped (a registrant name's &, as in AT&T, no longer arrives as
      \u0026). The values are the same.
    • With several problems in one call, the first one reported may change
      (unknown → missing → type).
    • A result that cannot be encoded (none of today's can fail to) is
      internal_error; it used to be the plain text encode result: ….