Skip to content

Releases

v2.6.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 16:15
5e05613

Added

  • A connection broker can require a server-enforced read-only session per connection: the
    optional read_only field of a /connections entry. true makes that connection behave like
    one configured with HARDCHARGER_READ_ONLY (requested at session creation, confirmed before
    setup or queries, requested again on every reconnect, no write tools); absent or null keeps
    HARDCHARGER_READ_ONLY, so older brokers work unchanged. HARDCHARGER_READ_ONLY=true stays a
    floor: the broker's false doesn't lift it. When a later list changes a connection's
    read_only, its session is closed and replaced at the next call:
    • a call still under way on the old connection, including one still connecting to a resuming
      server, fails instead of running there; a session that finishes opening after the change is
      closed at once;
    • the catalog and schema the person chose (use_schema, USE) carry over to the new session
      on the same server;
    • when a transaction may have been open (SQL that can begin one without a COMMIT or
      ROLLBACK after it) or SQL set session settings, the first statement on the new session fails,
      unrun, with TransactionLostError (SettingsLostError), as after a lost session, also after
      two replacements in a row.

Changed

  • With a connection broker, a list the broker refuses (a 4xx other than 408 and 429) leaves the
    person with no connections, and their open sessions are closed. When the broker can't answer
    (unreachable, 5xx, an unexpected body), the last list stays in use only until it is
    HARDCHARGER_MCP_BROKER_CACHE_SECONDS old; then its connections are closed and calls answer
    with the problem until the broker lists again. Before, the last list stayed in use indefinitely.
  • A call under way on a connection the broker stopped listing, or in a person's MCP session that
    was closed (idle, pool full), fails instead of signing in again; a connection missing from one
    list and listed again keeps the person's schema and reports a possibly open transaction.
  • Sign-in tokens minted for a closed brokered connection stay redacted from messages until they
    expire.

Fixed

  • A transaction ended by a COMMIT or ROLLBACK the server answered no longer counts as possibly
    open, so a later lost or replaced session doesn't report committed work as rolled back.

v2.5.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 22:45
f81d69e

Added

  • HARDCHARGER_READ_ONLY=true requires an enforced read-only session, confirmed before
    setup or queries and requested again on reconnect. Named connections can override the
    default with HARDCHARGER_<KEY>_READ_ONLY; brokered connections inherit it. Read-only
    connections disable write tools even when HARDCHARGER_ALLOW_WRITES is enabled.
    The default remains off for compatibility with older servers.

Changed

  • Require published Hardcharger JavaScript 2.5.0 and pin its Chargewire 2.4.0 dependency for
    development, CI and the desktop extension bundle.
  • Refresh runtime HTTP/URI dependencies within their existing version ranges: Hono 4.13.18,
    @hono/node-server 2.1.8, fast-uri 3.1.9 and body-parser 2.4.0, addressing their
    published security advisories.

v2.4.3

Choose a tag to compare

@github-actions github-actions released this 07 Nov 17:38
4609013

Fixed

  • A new connection handed a token from before a person's Stop (by a provider's or a single
    sign-on's cache) signs in again once with its own method instead of failing its first request
    (from @gizmodata/hardcharger 2.4.4 on @gizmodata/chargewire 2.3.5).
  • A login_sso token, which is used as is, that a person's Stop revoked now fails with an error
    that says the token was revoked (for instance issued before the cluster was stopped) and to call
    login_sso to sign in again.

Changed

  • Built on @gizmodata/hardcharger 2.4.4 (hardcharger-js a49a2a2) and @gizmodata/chargewire
    2.3.5 (chargewire-js 36352f4); the dependency range is ^2.4.4.

v2.4.2

Choose a tag to compare

@github-actions github-actions released this 07 Nov 16:42
bbe13c6

Fixed

  • After a person stopped a GizmoData Cloud cluster, the next tool call on a connection opened
    before the Stop failed with invalid_token (token_revoked) until the person's session went
    idle: the holder refuses tokens issued before a Stop, and the connection never signed in again.
    The call now drops that connection and opens a new one, which signs in fresh (starting the
    cluster, as connecting again does) and runs the call, once; a second refusal is the error. As for
    a lost connection, a transaction possibly open or settings set by SQL make it an error instead
    (TransactionLostError, SettingsLostError). Idle cleanup and listing still never connect.

v2.4.1

Choose a tag to compare

@github-actions github-actions released this 07 Nov 16:18
6484c9f

Added

  • Connecting to a GizmoData Cloud cluster that is stopped (auto-resume) no longer starts it: the
    client connects lazily when the server's stand-in says it is stopped, and signs in at the first
    query or statement (from @gizmodata/hardcharger 2.4.3 on @gizmodata/chargewire 2.3.4).
    This server's own connection setup (the default catalog and schema, the server-settings probe)
    then runs at that first query, before it, and never signs in by itself; a wrong password or an
    unreachable server is that query's error, not a warning about the default catalog, and a default
    catalog or schema the server refuses is the same warning as on a running server.

Fixed

  • Listing and describing never sign in to a server or open a session there, so they never start a
    GizmoData Cloud cluster that was stopped while idle (auto-resume): only a query or statement
    against a server may. server_info reports a connection not used yet from its configuration
    (versions and user say "not connected yet"; it used to connect to read them), and the table
    resource list covers only connections already in use, with or without a broker (it used to sign
    in to every configured server). list_connections asks only the broker, as before.
  • Closing a person's idle session (after HARDCHARGER_MCP_SESSION_IDLE_SECONDS), and closing a
    connection, no longer signs in first when the token is close to expiring (from
    @gizmodata/hardcharger 2.4.3 on @gizmodata/chargewire 2.3.4, whose cancels, transaction()
    clean-up and progress polls never sign in either). Before, an idle eviction late in a token's
    life sent a sign-in that woke the stopped cluster for nobody.

Changed

  • Built on @gizmodata/hardcharger 2.4.3 (hardcharger-js 790b731) and @gizmodata/chargewire
    2.3.4 (chargewire-js ce05df6); the dependency range is ^2.4.3.

v2.4.0

Choose a tag to compare

@github-actions github-actions released this 05 Nov 14:29
b75864d

Added

  • A hardcharger:// URI with no port and a GizmoData Cloud host (gizmodata.com or a name under it,
    in any case, a trailing dot allowed) connects to port 443, where GizmoData Cloud clusters answer,
    instead of 31337 (from @gizmodata/hardcharger 2.3.0). Look-alikes such as evilgizmodata.com and
    gizmodata.com.example.org keep 31337, and an explicit port always wins. The README, the Claude
    Desktop extension's URI help and the Helm values say so.

Fixed

  • After SQL that changes the session's settings (a statement whose first word is SET, RESET or
    PRAGMA), a lost connection is no longer reopened and the call retried: the new session doesn't
    have the settings, so the statement ran with others, without an error. The call now fails with an
    error that says the settings are gone and the statement did not run again (SettingsLostError);
    the next call runs on a new session. With @gizmodata/chargewire 2.2.1 the client refuses the same
    re-run on a session it replaced itself (an idle eviction), where this layer never saw an error.
  • A USE through run_query pinned the catalog and schema it read from the session document, which
    a server before Chargewire 2.2.1 (Hardcharger 2.7.0) can answer before it has recorded the USE, so
    the pin could set the old schema back. They are now read from the engine (current_database(),
    current_schema()); use_schema takes them from the answer to its own options request.

Changed

  • Built on @gizmodata/hardcharger 2.3.0 and @gizmodata/chargewire 2.2.1 (the dependency range is
    now ^2.3.0).

v2.3.0

Choose a tag to compare

@github-actions github-actions released this 05 Nov 11:20
d6b661c

Added

  • HARDCHARGER_RESUME_TIMEOUT_SECONDS (default 600; resume_timeout_seconds in the Claude Desktop
    extension, in the Helm chart's values): how long the client waits for a stopped server that is
    starting again (server_resuming, a GizmoData Cloud cluster with auto-resume) before reporting it.
    Each wait is logged to stderr, and a call whose query timeout runs out while the server is still
    resuming fails with a message that says so ("try again in a minute") instead of a query timeout.
    server_info reports resume_timeout_seconds.

Changed

  • Built on @gizmodata/hardcharger 2.2.0 and @gizmodata/chargewire 2.2.0 (the dependency range is
    now ^2.2.0): resumeTimeout and onResuming, idle_in_transaction in SessionEndedReason, and
    the client's own rule for lost sessions (Chargewire §5.7).

Fixed

  • With writes enabled, a lost connection (an administrator's KILL SESSION, a server restart, a
    lost session) after BEGIN was reopened and the statement retried on the new session, where it ran
    alone in autocommit and committed while the transaction's earlier statements had been rolled back.
    Once SQL that can begin a transaction (BEGIN, START TRANSACTION, anything naming autocommit) has
    run on a connection, a lost connection is no longer retried: the call fails with an error that says
    the transaction was rolled back and the statement did not run again, and the next call runs on a new
    session. A metadata call that finds such a loss fails the same way. Without such SQL, a lost
    connection is still reopened once and the call retried.

v2.2.1

Choose a tag to compare

@github-actions github-actions released this 05 Nov 06:15

Changed

  • Built on @gizmodata/hardcharger 2.1.1 and @gizmodata/chargewire 2.1.0 (the dependency range is
    now ^2.1.1). A query that returns no rows with a LIST column no longer fails when the client
    sets its unread result aside (gizmodata/hardcharger#23),
    and a session Hardcharger 2.7.0 ends for an idle transaction is replaced by the client.
  • server_info reports the server's hardcharger.idle_in_transaction_session_timeout among its settings.

Fixed

  • With writes enabled, a statement that found its transaction ended for sitting idle past the server's
    idle_in_transaction_session_timeout (session_ended, reason idle_in_transaction, Hardcharger
    2.7.0) was retried on a new connection, where it ran in autocommit and committed on its own while
    the transaction's earlier statements had been rolled back. It now fails with that error and is not
    retried; the next statement runs on the new session. A live test covers it, beside a busy
    transaction that commits.

v2.2.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 19:16

Added

  • Per-person credentials through a connection broker (HARDCHARGER_MCP_BROKER_URL,
    HARDCHARGER_MCP_BROKER_TOKEN, HTTP transport with OAuth). The server then holds no Hardcharger
    credentials: a broker, such as the control plane that runs the servers, lists the servers each
    signed-in person may reach and mints them short-lived sign-in tokens, which the client exchanges
    (token_exchange). Every statement runs as that person, under the server's grants, row policies and
    masking. The person's token is presented to the broker as an RFC 8693 subject token, never as its
    credential. The broker also checks each request's access token (/introspect, answers reused for 60 s), so
    opaque access tokens such as Clerk's work and this server needs no provider keys; a broker outage answers 503,
    not 401. Writes need the broker's per-server allow_writes as well as HARDCHARGER_ALLOW_WRITES.
    Protocol: docs/connection-broker.md.
  • list_connections and server_info report whether each connection accepts writes
    (allow_writes), and a brokered connection's description.

Fixed

  • The README said Clerk issues JWT access tokens by default; it issues opaque ones unless the instance turns JWT
    access tokens on.

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 09:56

Changed

  • Built on the Chargewire protocol and clients: @gizmodata/hardcharger 2.1.0, on
    @gizmodata/chargewire 2.0.0. server_info reports
    the protocol as chargewire 1. Tool names, settings and connection URIs are unchanged.
  • Still works with Hardcharger servers released before the rename (2.2.0 and earlier): the
    client falls back to them on its own, and HARDCHARGER_URI values written for earlier
    versions keep working.