The OPLINK CLI lets you scaffold configs and run the MCP server that exposes your workflows to IDEs/agents.
oplink init – create a minimal project config and .mcp-workflows folderoplink add <giget> – fetch example workflows from a remote sourceoplink server – start the MCP stdio server (used by IDE MCP integrations)oplink config get – print the resolved oplink.config.mjsoplink validate – validate .mcp-workflows/workflows.yaml and servers.jsonoplink scaffold workflow <name> – append a new prompt or scripted workflow blockTip: run any command with --help to see flags.
oplink init
Initialize Oplink in a project. Creates .mcp-workflows/ and oplink.config.mjs if missing.npx oplink init
--dir <directory> – target directory (default .)--ide <cursor|windsurf|cline|rootcode|headless> – prefill IDE hints (defaults to auto‑detect)--cwd <directory> – working directory (advanced)oplink add <giget>
Pull workflows from a remote (giget) source into .mcp-workflows.npx oplink add github:user/repo/path
--force – overwrite existing file/directory--cwd <dir> – custom working directoryoplink server
Start the MCP stdio server using your project workflows.npx oplink server --config ./.mcp-workflows
--config <path> – directory named .mcp-workflows or .workflows--cwd <dir> – working directory--logLevel <silent|info|verbose> – control diagnostic outputoplink config get
Print the resolved Oplink config (if present).npx oplink config get
oplink validate
Validate your .mcp-workflows files against the official schemas.npx oplink validate --config ./.mcp-workflows
oplink scaffold workflow <name>
Append a valid workflow block (prompt by default, add --scripted for steps).npx oplink scaffold workflow take_screenshot --scripted
my-project:
npx oplink init --dir my-project
npx oplink add github:username/workflows/coding
npx oplink server --config ./.mcp-workflows
.env files from your --config directory before expanding ${VAR} in .mcp-workflows/servers.json.
.env.{NODE_ENV}.local > .env.{NODE_ENV} > .env.local > .env..env..env, any unresolved ${VAR} placeholders will cause startup to fail with a clear error.oplink run command; IDEs call tools through the MCP server you start with oplink server.For more details, see Installation and Workflows.