Repository navigation
Releases
Releases · gizmodata/hardcharger-mcp
v2.6.0
Added
- A connection broker can require a server-enforced read-only session per connection: the
optionalread_onlyfield of a/connectionsentry.truemakes that connection behave like
one configured withHARDCHARGER_READ_ONLY(requested at session creation, confirmed before
setup or queries, requested again on every reconnect, no write tools); absent ornullkeeps
HARDCHARGER_READ_ONLY, so older brokers work unchanged.HARDCHARGER_READ_ONLY=truestays a
floor: the broker'sfalsedoesn'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
COMMITor
ROLLBACKafter it) or SQL set session settings, the first statement on the new session fails,
unrun, withTransactionLostError(SettingsLostError), as after a lost session, also after
two replacements in a row.
- a call still under way on the old connection, including one still connecting to a resuming
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_SECONDSold; 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
COMMITorROLLBACKthe 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
Added
HARDCHARGER_READ_ONLY=truerequires an enforced read-only session, confirmed before
setup or queries and requested again on reconnect. Named connections can override the
default withHARDCHARGER_<KEY>_READ_ONLY; brokered connections inherit it. Read-only
connections disable write tools even whenHARDCHARGER_ALLOW_WRITESis 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-server2.1.8,fast-uri3.1.9 andbody-parser2.4.0, addressing their
published security advisories.
v2.4.3
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/hardcharger2.4.4 on@gizmodata/chargewire2.3.5). - A
login_ssotoken, 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_ssoto sign in again.
Changed
- Built on
@gizmodata/hardcharger2.4.4 (hardcharger-jsa49a2a2) and@gizmodata/chargewire
2.3.5 (chargewire-js36352f4); the dependency range is^2.4.4.
v2.4.2
Fixed
- After a person stopped a GizmoData Cloud cluster, the next tool call on a connection opened
before the Stop failed withinvalid_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
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/hardcharger2.4.3 on@gizmodata/chargewire2.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_inforeports 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_connectionsasks 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/hardcharger2.4.3 on@gizmodata/chargewire2.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/hardcharger2.4.3 (hardcharger-js790b731) and@gizmodata/chargewire
2.3.4 (chargewire-jsce05df6); the dependency range is^2.4.3.
v2.4.0
Added
- A
hardcharger://URI with no port and a GizmoData Cloud host (gizmodata.comor 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/hardcharger2.3.0). Look-alikes such asevilgizmodata.comand
gizmodata.com.example.orgkeep 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,RESETor
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/chargewire2.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
USEthroughrun_querypinned 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_schematakes them from the answer to its own options request.
Changed
- Built on
@gizmodata/hardcharger2.3.0 and@gizmodata/chargewire2.2.1 (the dependency range is
now^2.3.0).
v2.3.0
Added
HARDCHARGER_RESUME_TIMEOUT_SECONDS(default600;resume_timeout_secondsin 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_inforeportsresume_timeout_seconds.
Changed
- Built on
@gizmodata/hardcharger2.2.0 and@gizmodata/chargewire2.2.0 (the dependency range is
now^2.2.0):resumeTimeoutandonResuming,idle_in_transactioninSessionEndedReason, 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) afterBEGINwas 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
Changed
- Built on
@gizmodata/hardcharger2.1.1 and@gizmodata/chargewire2.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_inforeports the server'shardcharger.idle_in_transaction_session_timeoutamong 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, reasonidle_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
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-serverallow_writesas well asHARDCHARGER_ALLOW_WRITES.
Protocol:docs/connection-broker.md. list_connectionsandserver_inforeport 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
Changed
- Built on the Chargewire protocol and clients:
@gizmodata/hardcharger2.1.0, on
@gizmodata/chargewire2.0.0.server_inforeports
the protocol aschargewire 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, andHARDCHARGER_URIvalues written for earlier
versions keep working.