1. Connect
Addhttps://harwell.metaphi.ai/mcp/ to your MCP client and sign in. See Connect an MCP server. You need harwell:runs:write.
2. Write a unit
A unit is a directory in a mainframe codebase’s own shape, plus arun.json that says what to run.
Progs/HELLO.cbl:
Procs/HELLOJOB.jcl:
run.json:
submit names the deck by its file stem in Procs/. The deck runs program HELLO, found by its PROGRAM-ID.
3. Run it
Ask your agent: “Run the hello unit with Harwell.” It callsrun_unit with the directory:
unit_zip_b64 is the directory as a base64 zip. Hum packs a directory path for you. In any other client, the agent runs:
4. Read the result
structuredContent: the same result as JSON:status,verdict,diagnostics, and every job and step with its return code.- Resource links to
report.json, every listing and every spool file. Read one withresources/readwhen the text is not enough.
ran or ok. Anything else failed, and the call is a tool error.
5. Break it
ChangeHELLO.cbl to use a name it never declares:
Next
- Run a batch job: data sets, SORT, and chains of jobs.
- Tools: every tool and its parameters.