| name | mcp-java-dev-tools-performance-export |
| description | Export performance execution profiles to runnable workload replay artifacts (ps1, sh). Use for export, share, replay, or handoff of performance execution flows. |
MCP JVM Performance Export
Use this Skill Workflow to export workload replay artifacts from the current performance execution profile plus performance plan Artifact state.
Scope Guard
- This Skill Workflow exports workload replay artifacts only; it does not execute performance suites.
- If the user asks to run or execute a performance suite, route to
mcp-java-dev-tools-performance-suite.
- Do not satisfy performance execution prompts by generating replay export scripts.
- This Skill Workflow is for
suiteType=performance only. If the selected execution profile is suiteType=regression, route to mcp-java-dev-tools-regression-export.
Execution Mode
This Skill Workflow runs in three phases:
Read
Assemble
Emit
Mode selection is single selected mode only.
Portable Source of Truth
Always align with:
references/spec-rules.md
references/authoring-checklist.md
references/templates/index.md
Input Contract
Required input:
project_name
mode (ps1 | sh)
- If
mode is missing, fail closed (execution_export_mode_required); do not default to ps1.
Optional:
export_id (optional export label; auto-derived when omitted)
execution_profile (latest matching selector)
plan_name (latest matching selector)
when (date/time hint for nearest selector)
includeResolvedSecrets (false default)
includeRuntimeStartup (true default; may be overridden by projects.json session export defaults)
includeHealthcheckGate (true default; may be overridden by projects.json session export defaults)
includeResolvedSecrets must be supplied explicitly per request to enable secret export; projects.json.sessionExport must not auto-enable secret inclusion.
Profile Selection
Resolve in this selector order:
- explicit
export_id (label only)
execution_profile
plan_name (resolves containing execution profile)
when (optional label hint)
- default execution profile when no selector is provided
Source of Truth
Operational source for Artifact lifecycle:
artifact_management MCP Tool:
artifactType=project_context (read|validate|list)
artifactType=performance_plan (read|validate|list)
artifactType=execution_export (generate|read|list)
Artifact references:
.mcpjvm/<project_name>/projects.json (executionProfiles)
.mcpjvm/<project_name>/plans/performance/<plan>/contract.json
No runtime run Artifact is required for default export behavior.
Mode Router
mode=ps1 => emit PowerShell workload replay package
mode=sh => emit shell workload replay package
mode=postman => fail closed (performance_export_mode_unsupported)
- missing mode => fail closed (
execution_export_mode_required)
- unknown mode => fail closed
- never apply implicit mode fallback/default
Determinism Rules
- Preserve execution order from execution profile plan order.
- Preserve workload contract values exactly from the selected plan Artifact.
- Do not invent request steps, threshold values, or Strict Line Keys absent from source.
- Do not infer hidden runtime behavior.
- Keep output stable for the same input.
- Each export invocation emits a fresh one-off folder under
.mcpjvm/<project>/exports/<yyyy-mm-dd-uuid>/.
- Generated files for
sh and ps1 modes must emit a one-off workload replay package directly in that folder:
run-performance-profile.sh or run-performance-profile.ps1
run-performance-profile.js
performance-export.bundle.json
project.env
scripts/ when the selected execution profile references shared scripts
sh and ps1 exports must execute executionProfiles[].scriptRefs[] by phase (preRuntime, postRuntime, postHealthcheck, prePlan) and must pass the export-local project.env through script envFileArg when declared.
- Performance replay packages are workload-oriented. They must preflight the target, execute the configured load model, verify required Strict Line Keys, and persist deterministic throughput, error-rate, and latency results without requiring live MCP orchestration.
- Exported performance replay run Artifacts under
exports/.../runs/... must fail closed with deterministic reasonCode, failedStep, and reasonMeta when runtime replay cannot complete.
Governance
- If
includeResolvedSecrets=false, redact or placeholder secret material.
- If
includeResolvedSecrets=false, create project.env with secret-like values blanked so the receiver can fill credentials locally.
- If
includeResolvedSecrets=true, add explicit sensitive warning in output artifacts and treat the package as non-shareable unless the receiver is trusted.
sessionExport.includeResolvedSecrets=true is not sufficient by itself; request-level explicit opt-in is required.
- Never auto-push or auto-commit exported artifacts.
Fail-Closed Conditions
- no resolvable execution profile or plan selector
- invalid export source shape
- selected execution profile is not
suiteType=performance
- unsupported mode
- non-writable export destination
- one-off export folder creation failed
Blocked response must include:
- deterministic reason code
- single actionable next action