Install the Skill and connect an agent

Install the scientific Skill so your agent knows how to use v_ase, then connect MCP so it can call the live tools. The Skill installer does not install the scientific Python runtime or register an MCP server.

The desktop app and Python package both include the instructions for their own version. An agent connected over MCP can read them with vase_read_guide(topic="skill").

Choose a matching runtime and Skill

Where you run v_ase

Where to find its Skill

Desktop app

Use the bundled Python path under Register MCP below.

Python or Jupyter

Use the Python environment where you installed v_ase.

Source checkout

Use the v_ase/skills directory in that checkout.

Install the Skill with npx

The optional installer needs Node.js 22.20 or newer. v_ase itself runs without Node.js. Choose the coding clients you use; this example targets all three and makes the Skill available across projects.

Locate the Skill with your installation’s Python:

python -c "from importlib.resources import files; print(files('v_ase') / 'skills')"

Paste the printed directory in place of PATH_TO_SKILLS. From a source checkout you can use ./v_ase/skills directly.

npx skills@latest add "PATH_TO_SKILLS" --skill visualizing-atomic-structures-with-v-ase -a claude-code codex cursor -g -y

Omit any clients you do not use. Omit -g for a project-scoped installation or -y to review the installer’s choices.

Update tracked global installations with npx skills@latest update -g -y. The installer’s source formats, scopes and client options also cover version-pinned repositories. These commands target local coding clients; ChatGPT web/app uses the connected MCP/plugin workflow.

Install a matching runtime

For the release, use a Python environment with Python 3.10 or newer:

python -m pip install "v_ase-gui[mcp]"
v_ase --version

For development, install current source and select the matching source Skill:

python -m pip install "v_ase-gui[mcp] @ git+https://github.com/lgyEthan/v_ase.git@main"

An existing source checkout can use python -m pip install '.[mcp]'. The optional rhino extra adds Rhino export. The desktop app includes Python and the MCP adapter. For a desktop-only installation, use the bundled Python path below.

Register MCP

Add a server in your coding client’s MCP settings. Keep unrelated servers. With the Python CLI installed, a stdio definition is:

{
  "mcpServers": {
    "v_ase": {
      "command": "v_ase",
      "args": ["mcp", "--discovery", "all"]
    }
  }
}

This is the common JSON form; clients with another configuration format use the same executable and argument list. Use the absolute executable path if the client does not inherit your terminal PATH. This starts an owned GUI; its stderr reports the human URL. Keep the GUI connected and keep the MCP process running.

Share the document already open

Copy Help → Copy agent connection URL from the desktop app, or the command_url printed by v_ase gui STRUCTURE --cli. Use that complete URL as one argument:

{
  "mcpServers": {
    "v_ase": {
      "command": "v_ase",
      "args": ["mcp", "--connect", "COMMAND_URL", "--discovery", "all"]
    }
  }
}

Replace COMMAND_URL with the actual value. The adapter attaches to that live document/workspace; it does not replace its structure. The URL changes after an app restart. Closing this attached adapter leaves the existing GUI running.

For a desktop-only installation, use the app’s bundled Python executable as command and put -m, v_ase.cli before mcp in the argument list:

{
  "mcpServers": {
    "v_ase": {
      "command": "/Applications/v_ase.app/Contents/Resources/python/bin/python3",
      "args": ["-I", "-B", "-m", "v_ase.cli", "mcp", "--connect", "COMMAND_URL", "--discovery", "all"]
    }
  }
}

On macOS, replace the app location if installed in your user Applications folder. On Windows, use resources\python\python.exe inside the installed application directory and the same argument list. Avoid shell quoting inside the JSON argument strings. The app’s private dependencies and source channel stay together. MCP lifecycle and transports.

Verify the connection

  1. Open the reported human URL, or keep the existing GUI open.

  2. Confirm the client lists callable vase_… tools. A reachable endpoint alone does not prove the GUI is ready.

  3. Have the agent read the installed Skill and a compact scene snapshot. If the client has not loaded the Skill, vase_read_guide(topic="skill") provides the runtime’s own copy.

  4. For a test figure, inspect state, make a guarded display change and inspect the rendered image. Keep the inspected document ID and revision on edits.

If the adapter reports a tool-contract mismatch, update the runtime and adapter together rather than weakening the checks. For cloud ChatGPT, use the documented tunnel/plugin connection; cloud localhost cannot address your desktop app.

For an agent-readable starting point, use llms.txt.