ZZ

zowe/zowe-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

25 stars 5 forks 质量 85 趋势 20EPL-2.0

Zowe MCP 服务器

概览

模型上下文协议(MCP)服务器,为AI助手提供处理z/OS系统的工具——数据集、作业和UNIX系统服务。支持任何支持MCP的客户端(Claude Code、Cursor、VS Code、Zed、Roo Code等)。还包含一个可选的VS Code扩展。 人工智能可以结合多种工具并推理结果,从而: - — 用自然语言浏览、搜索、阅读并打开数据集和USS;获取解释并在编辑器中打开。- — “为什么这个作业失败了?”助手获取状态和spool,发现错误/ABEND,并解释原因和下一步步骤。- — 查找某个程序、抄本或字符串在库中被使用或定义的位置;获取简短报告和建议的下一步阅读。 完整用例列表及更多细节请参见。 AI代理可能会犯错。当代理拥有修改或删除大型机资源的工具时,错误操作可能造成真正的损害。Zowe MCP提供多层保护——将它们结合使用。 1.

概述(AI 翻译)

模型上下文协议(MCP)服务器,为AI助手提供工作工具 与 z/OS 系统——数据集、作业和 UNIX 系统服务。适用于任何 支持MCP的客户端(Claude Code、Cursor、VS Code、Zed、Roo Code等)。 还包含一个可选的VS Code扩展。

用例示例

人工智能可以结合多种工具并推理结果,从而:

  • AI辅助开发 — 浏览、搜索、阅读和打开数据集和USS,支持自然语言;获取解释并在编辑器中打开。
  • 作业失败诊断 — “为什么这个作业失败?”助理获取状态和流程,发现错误/ABEND,并解释原因和下一步步骤。
  • 搜索与追踪 — 查找程序、文书或字符串在各库中被使用或定义的位置;获取简短报告和建议的下一阅读。

完整用例列表及更多细节请参见。

安全与保障

人工智能代理可能会犯错。当代理拥有可以修改或删除的工具时 大型机资源,错误的操作可能造成真正的损害。佐威MCP 提供多层保护——将它们结合使用。

阅读完整指南: 安全与保安原则

主要推荐

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Zowe MCP

Model Context Protocol (MCP) server that gives AI assistants tools for working with z/OS systems – data sets, jobs, and UNIX System Services. Works with any MCP-capable client (Claude Code, Cursor, VS Code, Zed, Roo Code, and others). An optional VS Code extension is also included.

Use case examples

The AI can combine multiple tools and reason over results to:

  • AI-assisted development — Browse, search, read, and open data sets and USS in natural language; get explanations and open in editor.
  • Job failure diagnostics — “Why did this job fail?” The assistant fetches status and spool, finds errors/ABENDs, and explains cause and next steps.
  • Search and trace — Find where a program, copybook, or string is used or defined across libraries; get a short report and suggested next reads.

See Use cases for the full list and more detail.

Safety and security

AI agents can make mistakes. When an agent has tools that modify or delete mainframe resources, an incorrect action can cause real damage. Zowe MCP provides multiple layers of protection — use them together.

Read the full guide: Safety & Security principles

Key recommendations

  1. Principle of least privilege — Grant only the capability tier needed for the task. Start with read-strict (the default) and raise it only when required. A narrower tier limits the blast radius of any mistake.

  2. Progressive capability tiers — Each tool declares a resource effect level (none → read → update → delete → execute). The operator-configured capability tier controls which tools register and how MCP clients treat them:

    Tier What the agent can do
    read-strict (default) Read only, with client confirmation prompts
    read Read only, auto-approved
    update Read + create/write/modify
    delete Read + update + delete/cancel
    full Everything including job submit and command execution

    Configure via --capability-tier , env ZOWE_MCP_CAPABILITY_TIER, or VS Code setting zoweMCP.capabilityTier.

  3. Dedicated z/OS credentials — Use a dedicated SSH user with the minimum SAF / RACF authority needed. The z/OS security system is the ultimate enforcement boundary — even if the MCP layer or the AI model fails, SAF ensures the agent cannot exceed its authority. Prefer SSH key authentication (ideally passphrase-protected) over passwords: a key — and especially a passphrase-protected one — is more secure than a password in an environment variable, which can leak via process listings, shell history, and crash dumps. See Native (SSH) backend.

  4. Command safety gates — TSO and USS command tools use pattern-based

在 GitHub 查看完整 README

安装

npx @zowe/mcp-server init-mock --output ./zowe-mcp-mock-data
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "zowe": { "type": "stdio", "command": "node", "args": [ "/absolute/path/to/zowe-mcp/packages/zowe-mcp-server/dist/index.js", "--stdio", "--native", "--system", "[email protected]" ] } } }