ibmz

v1.0.1
io.github.ExpertVagabond/ibmz Checked 3 days ago Published 9 months ago

IBM Z mainframe MCP server - Key Protect HSM & z/OS

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

key_protect_list_keys

List encryption keys from IBM Key Protect (HSM-backed on IBM Z infrastructure, FIPS 140-2 Level 3 certified)

ParameterTypeDescription
limitnumberMaximum number of keys to return (default: 100)
offsetnumberNumber of keys to skip for pagination
statearrayFilter by key states: 1=Active, 2=Suspended, 3=Deactivated, 5=Destroyed

key_protect_create_key

Create a new encryption key in IBM Key Protect HSM. Root keys protect other keys (envelope encryption). Standard keys encrypt data directly.

ParameterTypeDescription
name *stringUnique name for the key
descriptionstringDescription of the key's purpose
extractablebooleanIf true, key material can be exported (only for standard_key)
payloadstringOptional: Base64-encoded key material to import (for BYOK scenarios)
typestringroot_key for wrapping other keys, standard_key for direct encryption

key_protect_get_key

Get metadata and details of a specific key from IBM Key Protect

ParameterTypeDescription
key_id *stringThe unique ID of the key

key_protect_wrap_key

Wrap (encrypt) a data encryption key using a root key. Used for envelope encryption - protects DEKs with a KEK stored in HSM.

ParameterTypeDescription
key_id *stringID of the root key to use for wrapping
plaintext *stringBase64-encoded plaintext data encryption key (DEK) to wrap
aadarrayAdditional authenticated data for AEAD (optional, must match on unwrap)

key_protect_unwrap_key

Unwrap (decrypt) a wrapped data encryption key using a root key

ParameterTypeDescription
ciphertext *stringBase64-encoded wrapped (encrypted) data encryption key
key_id *stringID of the root key used to wrap the DEK
aadarrayAdditional authenticated data (must match what was used during wrap)

key_protect_rotate_key

Rotate a root key. Creates new key version while maintaining ability to unwrap data encrypted with previous versions.

ParameterTypeDescription
key_id *stringID of the root key to rotate
payloadstringOptional: Base64-encoded new key material for BYOK rotation

key_protect_delete_key

Delete a key from IBM Key Protect. WARNING: This is irreversible and data encrypted with this key becomes unrecoverable.

ParameterTypeDescription
key_id *stringID of the key to delete
forcebooleanForce delete even if key has associated resources

key_protect_get_key_policies

Get policies applied to a key (rotation, dual authorization)

ParameterTypeDescription
key_id *stringID of the key

zos_connect_list_services

List all available z/OS Connect services (REST APIs exposing mainframe programs). Each service maps to CICS transactions, IMS programs, or batch jobs.

zos_connect_get_service

Get detailed information about a z/OS Connect service including its OpenAPI specification and endpoint mappings

ParameterTypeDescription
service_name *stringName of the z/OS Connect service

zos_connect_call_service

Call a z/OS Connect REST API to interact with mainframe programs. Maps JSON to COBOL copybooks automatically.

ParameterTypeDescription
service_name *stringName of the z/OS Connect service to invoke
methodstringHTTP method
operationstringAPI operation path (e.g., /accounts, /customers/{id})
path_paramsobjectPath parameters for URL template substitution
payloadobjectJSON request body (automatically mapped to COBOL structures)
query_paramsobjectQuery string parameters

zos_connect_list_apis

List all deployed API requester configurations (outbound calls from z/OS to external services)

zos_connect_health

Check the health status of the z/OS Connect server and connected subsystems