What it does
AI assistants often write JCL or DFSORT statements that look right but fail. Mainframe KIT gives your assistant the same rule-based checks this site uses, so it can catch the mistake before you submit the job.
| Tool | What your assistant can do with it |
|---|---|
check_jcl | Find common JCL mistakes and explain every JOB, EXEC and DD statement in plain English. |
explain_dfsort | Explain SORT, INCLUDE/OMIT, INREC/OUTREC and SUM statements and flag problems. |
lookup_code | Explain 185 abends, SQLCODEs, CICS, MQ and RACF security codes: causes, fixes, IBM sources and the matching lesson. |
copybook_layout | Start, length and type of every copybook field, and the record length. |
decode_record | Decode one record, given as hex, against a copybook: each field's start, length, type, raw hex and value. |
Ready-made prompts: Review my JCL, Explain this abend and Build a sort step.
Try asking
- "Write JCL to copy MY.INPUT to a new data set, then check it with Mainframe KIT."
- "My batch job ended with S0C7 after the payroll step. What should I check first?"
- "Here is my copybook. At which position does CUST-BAL start, and how long is the record?"
Set it up
MCP (Model Context Protocol) is the standard way an AI assistant calls small helper programs on your computer. npx is the command, installed with Node.js, that downloads a package from npm and starts it. The settings below tell your assistant to start Mainframe KIT that way.
Before you start: install Node.js 18 or later (this gives you npx). Then add Mainframe KIT to your assistant's MCP settings, and restart the assistant after you edit the settings so it picks up the change.
Claude Desktop (Settings → Developer → Edit config; the file is claude_desktop_config.json, in %APPDATA%Claude on Windows or ~/Library/Application Support/Claude/ on macOS) or Cursor (the file ~/.cursor/mcp.json for all projects, or .cursor/mcp.json for one project):
{
"mcpServers": {
"mainframekit": { "command": "npx", "args": ["-y", "mainframekit-mcp"] }
}
}
Claude Code (this adds it for the current project only; add --scope user after claude mcp add to use it in every project):
claude mcp add mainframekit -- npx -y mainframekit-mcp
VS Code (GitHub Copilot agent mode): add to .vscode/mcp.json:
{
"servers": {
"mainframekit": { "type": "stdio", "command": "npx", "args": ["-y", "mainframekit-mcp"] }
}
}
Private by design
- The Mainframe KIT server runs on your PC. It makes no network requests while it runs (npx downloads the package from npm when it starts) and connects to no mainframe, so the server itself never sends your code anywhere.
- Your AI assistant is separate. The assistant app and its model provider may process what you type and what the tools return, under their own terms. If your organisation requires it, use an approved or local model, or sample code without sensitive data.
- No login, no account, no tracking, no AI tokens: your own assistant does the talking, Mainframe KIT only runs its rules.
- The same input always gives the same answer. Rules cite IBM documentation; simulations are labelled.
Versions
Current package version: 0.2.0. Versions follow major.minor.patch. Tool names and their inputs stay the same within a major version. New tools and new optional inputs arrive in minor versions; fixes in patch versions. A change that could break an existing setup only happens in a major version and is listed in the release notes first.
Licence
The Mainframe KIT server is free to use, for personal and work purposes, on any number of computers. All rights are reserved: you may not copy, modify, redistribute or rebrand it. The source is not published; the package is free to use. The full text is on the licence page.
Good to know
- Works alongside IBM and Broadcom tools; it does not replace them or connect to z/OS.
- Always confirm against IBM documentation before changing production.
- Package: mainframekit-mcp on npm.
Suggest a tool or report a wrong answer · How it works and why it is safe
No mail app opens? Write to hello@mainframepath.com . Please do not send confidential code or data.