Skip to main content
C

qvasp-skill

chaosheng-yiwc/qvasp-skill

DeepSeek Harness plugin for qvasp: a skill bundle with the full 88-command reference of the qvasp VASP toolkit a skill bundle with the full 88-command reference of the qvasp VASP toolkit (INCAR/KPOINTS/POTCAR templates, structure building, band/DOS/phonon/optical/magnetic/thermo post-processing) plus an MCP server that runs qvasp commands, executes 10 standard multi-stage workflows (relax, band, DOS, phonon, optics, elastic, MD, surface, freqfix), checks structures with spglib, extracts and cross-checks results, and builds per-system reports - standardized steps so routine runs cost fewer tokens and fewer mistakes.

Install

dsh plugin --profile web add github:chaosheng-yiwc/qvasp-skill

README

qvasp-skill

qvasp toolkit for DeepSeek Harness: a skill pack (88-command reference, standard workflows, verified pitfalls, a VASP failure-signature table, and a survey of the wider VASP skill ecosystem) plus a stdio MCP server (18 tools) that turns the model from "guessing qvasp flags" into "running standard, checked procedures".

  • Author: Wencai Yi, Qufu Normal University (yiwc@qfnu.edu.cn)
  • qvasp itself: https://qvasp.com — single Fortran executable for VASP input preparation and post-processing, 88 commands via qvasp -h.

Citation

If this pack helps your work, cite the tool it wraps:

W. Yi, G. Tang, X. Chen, B. Yang, X. Liu, "qvasp: A flexible toolkit for VASP users in materials simulations", Computer Physics Communications 257, 107535 (2020). doi:10.1016/j.cpc.2020.107535

The program itself is archived at doi:10.17632/2v4m39dt3n.1.

What it gives the model

LayerToolPurpose
Skillqvasp (skill library)Exact 88-command reference, 10 workflow recipes, verified pitfalls — never invent a flag
Skillreferences/parameters.mdConvergence tests and the model decisions (ENCUT, k-mesh, smearing, functional, +U, dispersion, magnetism)
Skillreferences/errors.mdVASP/qvasp failure signatures: what to grep for, why it happened, what to change
Skillreferences/ecosystem.mdThe public VASP agent-skill landscape and the tools around qvasp, with licences, for cross-checking
MCPqvasp_runRun a whitelisted qvasp command with optional stdin; returns exit code, new files, stdout tail
MCPqvasp_helpLook up any command's usage from the real binary
MCPworkflow_plan / workflow_run / workflow_status / workflow_resumeDrive multi-stage calculations (10 templates: band-pbe, band-hse, dos-pbe, phonon-pbe, optics-hse, elastic-pbe, relax-only, md-pbe, surface-pbe, freqfix-molecule) with gates (ionic/scf convergence, no VASP error, …)
MCPworkflow_checkLint a workflow template against real stages/gates
MCPstructure_checkSymmetry + geometry sanity of a POSCAR (spglib space group, nearest neighbours, overlap/impossible-distance findings)
MCPpreflightCheck a case directory's inputs before submitting: species vs POTCAR order, ENCUT vs ENMAX, MAGMOM/LDAU lengths, tags VASP silently ignores, smearing vs the task, missing CHGCAR
MCPresult_extract / result_comparePull numbers from OUTCAR/EIGENVAL/DOSCAR/… and compare against reference or literature values
MCPreference_lookup / literature_recordVerified reference values for known materials (Raman modes, band gaps, …)
MCPreport_buildOne call on a case directory → report.md: provenance, structure check, every value with the file it came from, comparison, verdict
MCPdiagnose_logExplain a failed or non-converged run: matched signature, cause, fix

Standard procedures + gates + independent cross-checks make results reproducible and token-cheap: the model runs one tool call instead of paging through raw VASP output.

Install

Inside DeepSeek Harness (plugin market or CLI):

dsh plugin --profile <your-profile> add qvasp-skill

or via npm:

npm install -g qvasp-skill
dsh plugin --profile <your-profile> add qvasp-skill

or from GitHub releases:

dsh plugin --profile <your-profile> add github:Chaosheng-yiwc/qvasp-skill

On startup the bundle:

  1. syncs the qvasp skill into your skill library (~/.agents/skills/qvasp, refreshed on a version bump or when the packaged files change — your own edits are kept);
  2. mounts the MCP server (mcp__qvasp__* tools) using python: QVASP_PYTHON if set, else python/python3 on PATH, else a common install location (~/anaconda3, ~/miniconda3, C:\ProgramData\anaconda3, /usr/bin, …) — python is often installed without being on the PATH the app inherits.

Configuring the MCP server

The tools talk to a real qvasp binary. Point them at yours with environment variables (read by server/qvasp_mcp.py):

VariableMeaningDefault
QVASP_BINqvasp executableqvasp on PATH
QVASP_WORKROOTRoot directory the tools may operate under$HOME
QVASP_SCHEDULERpbs / slurm / noneauto

If no python is found at boot the MCP tools are skipped with a warning and the skill still works (set QVASP_PYTHON to the interpreter and restart the session).

Local development

git clone https://github.com/Chaosheng-yiwc/qvasp-skill
cd qvasp-skill
python server/qvasp_mcp.py --selftest   # needs qvasp on PATH for full check
node --check index.js                   # syntax check

The server is dependency-free Python ≥ 3.8 (stdlib only) and speaks newline-delimited JSON-RPC 2.0 over stdio (initialize, tools/list, tools/call, ping).

License

MIT — see LICENSE.

Related plugins