Working with agents¶
An agent, such as Claude Code or Codex, drives vibe-sketch through the same API the browser uses. It can do so over REST (see the REST API) or, more conveniently, as tools over the Model Context Protocol (MCP):
vibe-sketch mcp
The command speaks MCP on standard input and output. Register it with your
agent’s MCP configuration, giving the full path to the installed command if
it is not on the agent’s PATH:
{
"mcpServers": {
"vibe-sketch": {"command": "vibe-sketch", "args": ["mcp"]}
}
}
With Claude Code, claude mcp add vibe-sketch -- vibe-sketch mcp does the same.
One document, two editors¶
The tools work through a vibe-sketch server’s REST API, so an agent’s edits and yours go through one revision counter:
If
vibe-sketch serveis already running on this machine, the agent uses it and works on the documents you have open: draw in the browser, ask the agent to embed and write inputs, and watch its edits appear.Otherwise
vibe-sketch mcpstarts a server of its own in the background, with the files named on its command line open (vibe-sketch mcp scheme.vsk); thestatustool gives its address to open in a browser.--server URLnames the server to use;--new-serveralways starts one.
Tools¶
Tool |
Does |
|---|---|
|
The app’s address, the open documents and the writers. |
|
A new document, empty or from SMILES (a reaction as |
|
A file from disk as a new document: a QVF from any vibe program, |
|
Species with SMILES, charge, multiplicity, name and whether each has a 3D structure; reactions, jobs, warnings. |
|
Formula, masses, InChI and the checked name of every species. |
|
Structures drawn beside what is there, or instead of it. |
|
A compound number, a multiplicity or a name. |
|
Standard bond lengths and angles, the drawing kept. |
|
3D structures with the drawn stereochemistry checked. |
|
ORCA, vibe-qc, QCSchema or XYZ inputs for species, embedding what has no 3D structure; to a directory or in the answer, with refused species and their reasons. |
|
QVF, SVG, PNG, MOL, SDF, RXN, SMILES, InChI, KET or |
|
To a path as QVF ( |
|
ORCA or vibe-qc calculations for species, submitted to vibe-queue and recorded on the document. |
|
The document’s runs with their state. |
|
Cancel a run that has not finished. |
|
A species in 3D in vibe-view, embedded first when needed. |
|
The writers, their tasks and fields. |
A tool that cannot do what was asked answers with the reason, as the writers
do; an agent should read it rather than retry with a guess. Each edit is
recorded in the document’s provenance as made by an agent through mcp.