Skip to content

v1.18.0 — User ID in the server log and configurable client timeout

Choose a tag to compare

@Criptic Criptic released this 29 Sep 05:20
· 60 commits to main since this release
c3307f4

A minor release. The server log now names the SAS Viya user behind every tool call, and the timeout of every Viya REST call is configurable. (#65)

Highlights

👤 The Viya user of every tool call, in the server log

A shared HTTP deployment serves many people through one process, and its log said which tool ran but not for whom, so a field report could not be matched to the person who hit it. Each tool call now logs one line:

Tool call: execute_sas_code (user: sasdemo)

The id comes from GET /identities/users/@currentUser, asked with the caller's own token, so it is exactly the identity Viya authorizes the call against. For a client-credentials token, it is the client's id.

  • One lookup per token, not per call. Results are cached by a hash of the token, never the token itself.
  • Never in the way. The lookup has its own 10-second timeout. A failure logs user: unknown, is retried after five minutes, and never fails the tool.
  • Both transports. It hooks in where each tool obtains its token, so HTTP and stdio both log it, and stdio never starts a second sign-in.
  • Server log only. The opt-in collection log is unchanged.

⏱️ VIYA_CLIENT_TIMEOUT

The timeout of every Viya REST call was fixed at 300 seconds. It is now VIYA_CLIENT_TIMEOUT (chart: server.clientTimeout), with 300 as the default. Lower it to fail fast behind a proxy that drops idle connections; raise it for compute contexts that are slow to start. A value that is not a number greater than 0 stops the server at startup with the reason.

🔢 Tool count

92 tools, unchanged: 51 read-only and 21 destructive.

🐳 Container image

ghcr.io/sassoftware/sas-mcp-server:1.18.0

Also published as 1.18, 1 and latest. Helm chart 0.5.0 (appVersion 1.18.0), a minor chart bump for the new server.clientTimeout value.

⚠️ Upgrading

  • One extra request per sign-in. Each new token makes a single GET /identities/users/@currentUser. It needs no permission beyond a signed-in user.
  • The server log grows by one line per tool call. If you ship server logs somewhere, the user id now appears in them.

📄 Details