Skip to content

v1.16.0 — ODS HTML Results

Choose a tag to compare

@Criptic Criptic released this 24 Sep 11:58
· 73 commits to main since this release
4d96fc2

A minor release. execute_sas_code now returns the HTML results as SAS Data and AI Studio would show them, graphs included; the interactive views keep rendering on current Claude hosts; and one host path that broke on Anthropic's side is documented as a known issue. (#62)

Highlights

📊 execute_sas_code returns the HTML results

The compute context opens no HTML destination of its own — SAS Data and AI Studio's page comes from ODS statements it adds to every submit — so a job submitted through the API yielded a listing and nothing else, and a graph could not be seen at all.

The code now runs between an ods html5 statement and its close. Before the close comes ;*';*";*/;run;quit;, which ends whatever the code left open — an unterminated statement, quote or comment, or a step without run; — so the close still runs; none of it appears in the log the model reads. When the code printed something, the page is saved to the Viya Files service and the result gains html_results_url: opening it asks for a SAS Viya sign-in, and the file sits in no folder, so only the person who ran the code (and administrators) can open it. html_results_error reports a page that could not be saved without failing the call; html_results=false submits the code exactly as given.

The page — 40 to 70 KB, mostly the ODS stylesheet — never enters the model's context; only the link does. In the SAS log view it is the new Results tab, shown first when the code ran cleanly, with an "Open in browser" link.

Two details learned against a live Viya: the guard is run;quit;, not the quit;run; of SAS Enterprise Guide, because quit; inside an unfinished DATA step is an error on a line the caller never wrote and once left the session unable to run the next job; and when the guard's run; ends a step the code left open, the log splits the echo of the closing line around the step's notes, so the wrapper is stripped by line number, not by text.

🪟 Views on current Claude hosts

Three changes, each forced by a host:

  • The view binding is repeated where hosts look for it — on the tools/call result, in both spellings the extension has used, and as _meta.ui.csp on the resources/read item — not only on the tools/list entry.
  • View URIs carry a fingerprint of the page (ui://sas-viya/sas-log/execute_sas_code.<hash>.html, from the ui package's files, the version and the tier and read-only selection), because hosts cache a page by its URI — claude.ai even across a connector being removed and added again — so a changed page was served stale. The plain URI is served too, for hosts holding an older tool listing.
  • MCP_STATELESS_HTTP (chart: server.statelessHttp) serves requests without an MCP session. The 2026-07-28 protocol revision has no session and opens with server/discover, which the default stateful transport refuses; claude.ai's custom-connector backend speaks only that revision. Verified end to end: the views, Results tab included, render in Claude Desktop through a custom connector.

The README's "Interactive views" section now has a table of clients and how they must be connected.

⚠️ Known issue: Claude Desktop and local servers

Since 22 September 2026, Claude Desktop 2.2553 no longer renders views from a server configured in claude_desktop_config.json (which accepts stdio servers only): Desktop passes a local server's tools to the chat through a bridge that rebuilds each tool's metadata and drops the view binding, so the chat never asks for the page. The tools work as before and execute_sas_code still returns its HTML results link. Reported as anthropics/claude-ai-mcp#1069. Until it is fixed, the views render when the HTTP server is added to Claude as a custom connector with MCP_STATELESS_HTTP=true.

🏷️ Product names

SAS Studio is SAS Data and AI Studio and SAS Information Catalog is SAS Data Governance, throughout tool descriptions, docs and tests. API paths and tool names are unchanged.

🔢 Tool count

92 tools, unchanged: 51 read-only and 21 destructive. execute_sas_code gains the html_results parameter.

🐳 Container image

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

Also published as 1.16, 1 and latest. Helm chart 0.4.0 (appVersion 1.16.0), a minor chart bump for the new server.statelessHttp value.

⚠️ Upgrading

  • execute_sas_code wraps the code by default. Every call now runs between an ods html5 open and close with the guard above, and a call that prints something stores one HTML page in the Viya Files service, kept until deleted. Set html_results=false on a call to submit the code exactly as given. Nothing else in the result changes.
  • View URIs changed shape (…/<tool>.<hash>.html). Hosts pick the new URI up from tools/list; the old plain URI keeps working as an alias.
  • Stateless HTTP is off by default. Turn it on (MCP_STATELESS_HTTP=true, chart server.statelessHttp) for a deployment that will be added to Claude as a custom connector.

📄 Details