Skip to main content

mock-gkn-hpc

DOI

A public MCP mock of GKN's internal HPC server for Ansys / Finite Element analysis. It lets external clients exercise the full submit → poll → fetch-artifacts loop against a fake HPC — no real solver, queue, or cluster behind it.

This is a sample MCP server developed alongside the DUCTILE agentic orchestration paper. See the DUCTILE repository or the paper (DOI: TBD) for context.

Install and run

uvx mock-gkn-hpc

Or wire it into your MCP client config:

{
  "mcpServers": {
    "mock-gkn-hpc": {
      "command": "uvx",
      "args": ["mock-gkn-hpc"]
    }
  }
}

Job artifacts default to a system tempdir (gettempdir()/mock-gkn-hpc). Override with --runs-dir /custom/path or the MOCK_GKN_HPC_RUNS_DIR env var.

Tool surface

submit_ansys_run mirrors GKN's qansys wrapper:

Param qansys flag Default Notes
input_file -i (required) Path to .ans / .cdb
version wrapper version "2025r1" Picks the qansysX release
job_name -j input filename stem Descriptive only — storage uses a UUID
output_file -o auto Recorded but not enacted by the mock
np --np 4 Cosmetic; doesn't scale runtime
product -p "ansys" One of "ansys", "meba", "mechs"
start_time -a None MMDDhhmm; recorded but doesn't delay
high_prio --highprio False Cosmetic

All parameters round-trip through meta.json, the log banner, and the rendered results.rst.

Input pre-flight check (v0.5.0)

A real solve stops at the first /INPUT or CDREAD whose file it cannot read. The mock has no solver, so submit_ansys_run walks the runscript at submission (parameters, arrays, *DO loops, macros and %...% substitution) and checks every file the deck would read. A job sees:

  • its staged directory, the input file's folder (relative paths resolve against it), and
  • the cluster's shared /project storage, described by src/mock_gkn_hpc/cluster_files.txt (override with the MOCK_GKN_HPC_CLUSTER_FILES env var, one absolute path per line).

If any file is missing, the job is recorded as failed (its log holds the error) and the tool returns an MCP error with Ansys-style messages, e.g.

Job e816a8ac (runscript) failed during input processing: 6 file(s) read by the deck do not exist.
 *** ERROR ***
 /INPUT failed (runscript line 139). File /project/.../01_inputs/loads/limit_load_2.inp does not exist.

so an agent sees the failure in its context and can fix the deck and resubmit. A successful submission reports input_files_checked. Statements the walker cannot evaluate are skipped, not failed.

Each client can keep its own job store with --runs-dir (useful when several agents run in parallel and should not see each other's jobs in list_jobs).

Metadata

Release files for mock-gkn-hpc 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mock-gkn-hpc 0.5.0
File Size Uploaded Provenance
mock_gkn_hpc-0.5.0.tar.gz 50.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mock-gkn-hpc 0.5.0
File Interpreter ABI Platform
mock_gkn_hpc-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 63.9 kB

Release files / mock_gkn_hpc-0.5.0.tar.gz

Download URL mock_gkn_hpc-0.5.0.tar.gz
Size 50.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0b8c9066d1787e749bb58e97e75908c205ad33019a958f9e7ddd663b11236d56
BLAKE2b-256 checksum
How to use checksums
ca20b5cc917aa928a7d28485a75123b9d0dc32f43cae479483be11878fc05f3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / mock_gkn_hpc-0.5.0-py3-none-any.whl

Download URL mock_gkn_hpc-0.5.0-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8b5c01f68b546ebd2180d2cc108aaa3f18e6f734a540114390b13f7eb0d7b94
BLAKE2b-256 checksum
How to use checksums
03b017effde259a237ad94736822d07f05292c8bb7b9804f5a2dc6acbe11ae85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Security for mock-gkn-hpc 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mock_gkn_hpc-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page