Skip to content
VS Code

SAS Viya for VS Code

io.github.sassoftware/sas-mcp-server

Execute SAS code and query Compute, CAS, and model APIs on SAS Viya via OAuth 2.0.

client:VS Code transport:stdio runtime:oci

Install SAS Viya in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "viya-endpoint",
      "description": "VIYA_ENDPOINT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ssl-verify",
      "description": "SSL_VERIFY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "client-id",
      "description": "CLIENT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "compute-context-name",
      "description": "COMPUTE_CONTEXT_NAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-tiers",
      "description": "MCP_TIERS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-read-only",
      "description": "MCP_READ_ONLY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-apps",
      "description": "MCP_APPS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-stateless-http",
      "description": "MCP_STATELESS_HTTP",
      "password": true
    }
  ],
  "servers": {
    "sas-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/sassoftware/sas-mcp-server:1.16.1"
      ],
      "env": {
        "VIYA_ENDPOINT": "${input:viya-endpoint}",
        "SSL_VERIFY": "${input:ssl-verify}",
        "CLIENT_ID": "${input:client-id}",
        "COMPUTE_CONTEXT_NAME": "${input:compute-context-name}",
        "MCP_TIERS": "${input:mcp-tiers}",
        "MCP_READ_ONLY": "${input:mcp-read-only}",
        "MCP_APPS": "${input:mcp-apps}",
        "MCP_STATELESS_HTTP": "${input:mcp-stateless-http}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

SAS Viya in other clients