MCP Server
MCP
SAS Viya
Execute SAS code and query Compute, CAS, and model APIs on SAS Viya via OAuth 2.0.
Install
oci:ghcr.io/sassoftware/sas-mcp-server:1.11.1
Configuration Example
{
"remotes": [],
"packages": [
{
"registryType": "oci",
"identifier": "ghcr.io/sassoftware/sas-mcp-server:1.11.1",
"runtimeHint": "docker",
"transport": {
"type": "stdio"
},
"runtimeArguments": [
{
"description": "Mount the SAS Viya CLI token cache into the container. The server reads ~/.sas/credentials.json, and $HOME is /app inside the image, so the .sas directory has to land at /app/.sas.",
"isRequired": true,
"value": "{sas_token_dir}:/app/.sas",
"variables": {
"sas_token_dir": {
"description": "The .sas directory in your home directory, written by `sas-viya auth loginCode`. On Windows, C:\\Users\\<you>\\.sas.",
"isRequired": true,
"format": "filepath"
}
},
"type": "named",
"name": "-v"
}
],
"packageArguments": [
{
"value": "app-stdio",
"type": "positional"
}
],
"environmentVariables": [
{
"description": "Base URL of your SAS Viya environment, e.g. https://viya.example.com. No trailing slash.",
"isRequired": true,
"format": "string",
"name": "VIYA_ENDPOINT"
},
{
"description": "Set false only for a self-signed Viya certificate. Disables verification for the whole process, so prefer a trusted certificate.",
"format": "string",
"default": "true",
"name": "SSL_VERIFY"
},
{
"description": "SASLogon OAuth client id used for the token refresh exchange.",
"format": "string",
"default": "sas-mcp",
"name": "CLIENT_ID"
},
{
"description": "Compute context that backs SAS code execution.",
"format": "string",
"default": "SAS Job Execution compute context",
"name": "COMPUTE_CONTEXT_NAME"
},
{
"description": "Expose only some tool tiers, e.g. 0-4 or 0,1,7. Empty exposes all 75 tools. Tiers: 0 Compute, 1 Data Discovery, 2 Data Operations, 3 Reports, 4 Batch Jobs, 5 AutoML, 6 Models, 7 Decisioning.",
"format": "string",
"name": "MCP_TIERS"
},
{
"description": "Expose only tools that neither change server-side state nor cause server-side work (43 of 75). Composes with MCP_TIERS.",
"format": "string",
"default": "false",
"name": "MCP_READ_ONLY"
}
]
}
]
}
mcp
model-context-protocol
oci
By
Comments
Sign in to leave a comment