iso20022-evidence-pack-mcp

v0.0.6
io.github.sebastienrousseau/iso20022-evidence-pack-mcp Checked 1 day ago Published 1 month ago

MCP server: seal & sign ISO 20022 readiness evidence into tamper-evident audit packs.

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

build_evidence_pack Build an evidence pack

Fold readiness, remediation, and simulations into a sealed pack. Args: readiness_content: A readiness result, as JSON text. remediation_content: An optional remediation result, as JSON text. simulation_content: An optional JSON array of simulated responses. metadata: Free-form audit metadata (institution, reference, ...).

ParameterTypeDescription
readiness_content *stringA readiness result as raw JSON text.
metadataFree-form audit metadata.
remediation_contentOptional remediation JSON text.
simulation_contentOptional simulated-responses JSON.

seal_pack Seal an evidence pack

Compute the deterministic SHA-256 seal for an evidence pack. Args: pack_content: The evidence pack to seal, as JSON text.

ParameterTypeDescription
pack_content *stringAn evidence pack as raw JSON text.

verify_seal Verify an evidence-pack seal

Recompute a pack's seal and compare it to an expected digest. Args: pack_content: The evidence pack to check, as JSON text. expected_digest: The seal the pack is expected to carry.

ParameterTypeDescription
expected_digest *stringThe seal to check the pack against.
pack_content *stringAn evidence pack as raw JSON text.

render_markdown Render an evidence pack

Render an evidence pack as a markdown compliance report. Args: pack_content: The evidence pack to render, as JSON text.

ParameterTypeDescription
pack_content *stringAn evidence pack as raw JSON text.

sign_pack Sign an evidence pack

Sign a pack's canonical content with the server's Ed25519 key. The private key is configured by the operator via the environment (see :mod:`iso20022_evidence_pack_mcp.signing`); it never crosses the tool boundary. Returns the detached signature, the public key, and a key id; fails with ``EP_NO_SIGNING_KEY`` when no key is configured. Args: pack_content: The evidence pack to sign, as JSON text.

ParameterTypeDescription
pack_content *stringAn evidence pack as raw JSON text.

verify_pack_signature Verify an evidence-pack signature

Verify a detached Ed25519 signature over a pack's canonical content. Args: pack_content: The evidence pack to check, as JSON text. signature: The base64-encoded detached signature. public_key: The signer's PEM public key.

ParameterTypeDescription
pack_content *stringAn evidence pack as raw JSON text.
public_key *stringThe signer's PEM public key.
signature *stringThe base64 Ed25519 signature to check.

sign_pack_aws_kms Sign a pack with AWS KMS

Sign a pack's SHA-256 canonical digest with AWS KMS. **Requires the ``[aws]`` extra** (``pip install iso20022-evidence-pack-mcp[aws]``) and **reaches AWS KMS over the network** -- unlike the closed-world tools, this one has a network surface. The private key never leaves KMS; the tool submits only the pack's digest. Returns the pack with an ``aws_kms_signature`` block attached. Args: evidence_pack_json: The evidence pack to sign, as JSON text. key_arn: The ARN of the KMS ``SIGN_VERIFY`` key. aws_region: The AWS region hosting the key.

ParameterTypeDescription
evidence_pack_json *stringAn evidence pack as raw JSON text.
key_arn *stringThe ARN of the KMS SIGN_VERIFY key.
aws_regionstringThe AWS region.

sign_pack_vault Sign a pack with Vault Transit

Sign a pack's canonical bytes with HashiCorp Vault Transit. **Requires the ``[vault]`` extra** (``pip install iso20022-evidence-pack-mcp[vault]``) and **reaches a Vault server over the network** -- unlike the closed-world tools, this one has a network surface. POSTs to ``/v1/transit/sign/{key_name}`` and returns the pack with a ``vault_signature`` block attached. Args: evidence_pack_json: The evidence pack to sign, as JSON text. vault_url: The base URL of the Vault server. key_name: The Transit key to sign with. token: The Vault access…

ParameterTypeDescription
evidence_pack_json *stringAn evidence pack as raw JSON text.
key_name *stringThe Transit key name to sign with.
token *stringThe Vault access token.
vault_url *stringThe base URL of the Vault server.

export_pack_to_s3 Export a pack to Amazon S3

Upload a signed evidence pack to Amazon S3. **Requires the ``[aws]`` extra** (``pip install iso20022-evidence-pack-mcp[aws]``) and **reaches AWS S3 over the network** -- unlike the closed-world tools, this one has a network surface. Only the ``s3://`` scheme is supported; ``gs://`` / ``az://`` return a clear error. Returns the object's ``bucket``, ``key``, and ``etag``. Args: signed_pack_json: The signed pack to upload, as JSON text. s3_uri: The destination, of the form ``s3://bucket/key``.

ParameterTypeDescription
s3_uri *stringDestination of the form s3://bucket/key.
signed_pack_json *stringA signed evidence pack as raw JSON text.

verify_slsa_provenance Verify SLSA provenance

Verify an artifact's SLSA provenance with ``slsa-verifier``. **Reaches an external system**: shells out to a locally installed ``slsa-verifier`` binary (which may fetch metadata). No optional Python extra is required, but the binary must be on ``PATH`` -- otherwise the tool returns an ``EP_EXTERNAL_TOOL`` error. Args: artifact_path: Path to the artifact whose provenance is checked. provenance_path: Path to the SLSA provenance attestation.

ParameterTypeDescription
artifact_path *stringPath to the artifact to verify.
provenance_path *stringPath to the SLSA provenance attestation.

verify_cosign_signature Verify a cosign signature

Verify a container image signature with ``cosign``. **Reaches an external system**: shells out to a locally installed ``cosign`` binary (which contacts the registry and transparency log). No optional Python extra is required, but the binary must be on ``PATH`` -- otherwise the tool returns an ``EP_EXTERNAL_TOOL`` error. For keyless verification, supply ``certificate_identity`` and ``certificate_oidc_issuer``. Args: image_ref: The container image reference to verify. certificate_identity: The keyless certificate identity (optional). certific…

ParameterTypeDescription
image_ref *stringThe container image reference to verify.
certificate_identityKeyless certificate identity.
certificate_oidc_issuerKeyless OIDC issuer URL.