AgentHubAgentHub

mainframe-mcp-server

MCP ServerMCP Registry官方收录

io.github.NotHarshhaa/mainframe-mcp-server · v2.5.0

MCP server for IBM z/OS jobs, datasets, USS, and operational diagnostics via Zowe SDK.

概览

mainframe-mcp-server 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "mainframe-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@notharshhaa/mainframe-mcp-server"
      ],
      "env": {
        "ZOSMF_HOST": "<ZOSMF_HOST>"
      }
    }
  }
}

环境变量

ZOSMF_HOST必填

z/OSMF hostname or IP address

ZOSMF_PORT可选

z/OSMF HTTPS port (default 443)

ZOSMF_BASE_PATH可选

Optional API gateway or mediation layer prefix for z/OSMF

ZOSMF_USER可选

z/OS user id (required with ZOSMF_PASSWORD unless ZOSMF_TOKEN is set)

ZOSMF_PASSWORD可选secret

Password for basic auth (required with ZOSMF_USER unless ZOSMF_TOKEN is set)

ZOSMF_TOKEN可选secret

Auth token (alternative to user/password)

ZOSMF_TOKEN_TYPE可选

Token type when using ZOSMF_TOKEN (e.g. LTPA2)

ZOSMF_REJECT_UNAUTHORIZED可选

Verify TLS certificates (true in production)

LOG_LEVEL可选

Log level: fatal, error, warn, info, debug, trace, silent

MCP_TRANSPORT可选

Transport: stdio (IDE) or sse (container/network)

MCP_SSE_PORT可选

Listen port when MCP_TRANSPORT=sse

MAX_JOB_OUTPUT_LINES可选

Max lines returned from a single spool DD

MAX_DATASET_READ_LINES可选

Max lines returned from dataset or USS reads

MAX_JES_SPOOL_FILES可选

Max spool files fetched during diagnostics

MAX_AUDIT_LINES可选

Max RACF audit log lines per query

CMCI_CONTEXT可选

CICSplex name or region APPLID (required for CICS tools)

CMCI_HOST可选

CMCI hostname (defaults to ZOSMF_HOST)

CMCI_PORT可选

CMCI HTTPS port (default 1490)

CMCI_BASE_PATH可选

CMCI REST base path

DB2_LOCATION可选

Db2 subsystem location name (required for Db2 tools)

DB2_HOST可选

Db2 REST hostname (defaults to ZOSMF_HOST)

DB2_PORT可选

Db2 REST port (default 50400)

DB2_BASE_PATH可选

Db2 REST base path

SMF_SUMMARY_DATASET可选

Optional SMF summary dataset for offline metrics

RMF_METRICS_ENABLED可选

Query z/OSMF RMF metrics when available

RACF_AUDIT_USS_PATH可选

USS path to RACF audit log file

RACF_AUDIT_DATASET可选

Sequential dataset containing RACF audit records

SECURITY_READ_ONLY可选

When true, blocks write tools such as submit_jcl

SECURITY_ALLOWED_TOOLS可选

Comma-separated allowlist of MCP tool names

SECURITY_BLOCKED_TOOLS可选

Comma-separated blocklist of MCP tool names

SECURITY_ALLOWED_DATASET_PATTERNS可选

Comma-separated dataset patterns (e.g. USERDEV.*,SYS1.*)

SECURITY_ALLOWED_USS_PATHS可选

Comma-separated USS path prefixes

SECURITY_AUDIT_LOGGING可选

Log every tool invocation to stderr (SIEM-friendly JSON)

SECURITY_MAX_JCL_BYTES可选

Maximum inline JCL size for submit_jcl

相关资源

统一 Manifest

{
  "id": "io.github.NotHarshhaa/mainframe-mcp-server",
  "type": "mcp-server",
  "version": "2.5.0",
  "displayName": "mainframe-mcp-server",
  "description": "MCP server for IBM z/OS jobs, datasets, USS, and operational diagnostics via Zowe SDK.",
  "repository": {
    "url": "https://github.com/NotHarshhaa/mainframe-mcp-server",
    "source": "github"
  },
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "@notharshhaa/mainframe-mcp-server",
        "version": "2.5.0",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "ZOSMF_HOST",
            "description": "z/OSMF hostname or IP address",
            "isRequired": true
          },
          {
            "name": "ZOSMF_PORT",
            "description": "z/OSMF HTTPS port (default 443)"
          },
          {
            "name": "ZOSMF_BASE_PATH",
            "description": "Optional API gateway or mediation layer prefix for z/OSMF"
          },
          {
            "name": "ZOSMF_USER",
            "description": "z/OS user id (required with ZOSMF_PASSWORD unless ZOSMF_TOKEN is set)"
          },
          {
            "name": "ZOSMF_PASSWORD",
            "description": "Password for basic auth (required with ZOSMF_USER unless ZOSMF_TOKEN is set)",
            "isSecret": true
          },
          {
            "name": "ZOSMF_TOKEN",
            "description": "Auth token (alternative to user/password)",
            "isSecret": true
          },
          {
            "name": "ZOSMF_TOKEN_TYPE",
            "description": "Token type when using ZOSMF_TOKEN (e.g. LTPA2)"
          },
          {
            "name": "ZOSMF_REJECT_UNAUTHORIZED",
            "description": "Verify TLS certificates (true in production)"
          },
          {
            "name": "LOG_LEVEL",
            "description": "Log level: fatal, error, warn, info, debug, trace, silent"
          },
          {
            "name": "MCP_TRANSPORT",
            "description": "Transport: stdio (IDE) or sse (container/network)"
          },
          {
            "name": "MCP_SSE_PORT",
            "description": "Listen port when MCP_TRANSPORT=sse"
          },
          {
            "name": "MAX_JOB_OUTPUT_LINES",
            "description": "Max lines returned from a single spool DD"
          },
          {
            "name": "MAX_DATASET_READ_LINES",
            "description": "Max lines returned from dataset or USS reads"
          },
          {
            "name": "MAX_JES_SPOOL_FILES",
            "description": "Max spool files fetched during diagnostics"
          },
          {
            "name": "MAX_AUDIT_LINES",
            "description": "Max RACF audit log lines per query"
          },
          {
            "name": "CMCI_CONTEXT",
            "description": "CICSplex name or region APPLID (required for CICS tools)"
          },
          {
            "name": "CMCI_HOST",
            "description": "CMCI hostname (defaults to ZOSMF_HOST)"
          },
          {
            "name": "CMCI_PORT",
            "description": "CMCI HTTPS port (default 1490)"
          },
          {
            "name": "CMCI_BASE_PATH",
            "description": "CMCI REST base path"
          },
          {
            "name": "DB2_LOCATION",
            "description": "Db2 subsystem location name (required for Db2 tools)"
          },
          {
            "name": "DB2_HOST",
            "description": "Db2 REST hostname (defaults to ZOSMF_HOST)"
          },
          {
            "name": "DB2_PORT",
            "description": "Db2 REST port (default 50400)"
          },
          {
            "name": "DB2_BASE_PATH",
            "description": "Db2 REST base path"
          },
          {
            "name": "SMF_SUMMARY_DATASET",
            "description": "Optional SMF summary dataset for offline metrics"
          },
          {
            "name": "RMF_METRICS_ENABLED",
            "description": "Query z/OSMF RMF metrics when available"
          },
          {
            "name": "RACF_AUDIT_USS_PATH",
            "description": "USS path to RACF audit log file"
          },
          {
            "name": "RACF_AUDIT_DATASET",
            "description": "Sequential dataset containing RACF audit records"
          },
          {
            "name": "SECURITY_READ_ONLY",
            "description": "When true, blocks write tools such as submit_jcl"
          },
          {
            "name": "SECURITY_ALLOWED_TOOLS",
            "description": "Comma-separated allowlist of MCP tool names"
          },
          {
            "name": "SECURITY_BLOCKED_TOOLS",
            "description": "Comma-separated blocklist of MCP tool names"
          },
          {
            "name": "SECURITY_ALLOWED_DATASET_PATTERNS",
            "description": "Comma-separated dataset patterns (e.g. USERDEV.*,SYS1.*)"
          },
          {
            "name": "SECURITY_ALLOWED_USS_PATHS",
            "description": "Comma-separated USS path prefixes"
          },
          {
            "name": "SECURITY_AUDIT_LOGGING",
            "description": "Log every tool invocation to stderr (SIEM-friendly JSON)"
          },
          {
            "name": "SECURITY_MAX_JCL_BYTES",
            "description": "Maximum inline JCL size for submit_jcl"
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.NotHarshhaa/mainframe-mcp-server",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.NotHarshhaa%2Fmainframe-mcp-server/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
mainframe-mcp-server — MCP Server 安装与配置 · AgentHub