OPLINK is an MCP server you run alongside your editor. It reads workflows from a .mcp-workflows directory and exposes them as tools to your IDE/agent.
There are two typical ways to install it:
If you just want to use workflows (not scaffold templates), you can:
.mcp-workflows directory in your project..mcp-workflows/workflows.yaml (and servers.json if using external servers)..mcp-workflows/.env if you need environment variables (API keys, tokens, etc.).npx -y oplink@latest server --config ./.mcp-workflows
You never have to run init if you're comfortable creating those files yourself.
Note: The .env file should be placed inside the .mcp-workflows directory (the same directory you pass to --config). Oplink automatically loads .env files from this directory before expanding ${VAR} placeholders in servers.json.
⚠️ Security Warning: Never commit
.envfiles to version control. Add.mcp-workflows/.envto your.gitignorefile to prevent accidentally committing sensitive credentials.
If you want the CLI helpers (init, validate, add examples, bundled JSON Schemas), run:
npx -y oplink@latest init
This will:
.mcp-workflows directory (if needed).workflows.yaml and servers.json examples.schema/ for editor validation.After that:
.mcp-workflows/.env if you need environment variables (API keys, tokens, etc.)..mcp-workflows (and schema/ if you want schema validation in CI). Do not commit .env files — add them to .gitignore.--config ./.mcp-workflows.Note: The .env file must be placed inside the .mcp-workflows directory (the same directory you pass to --config). Oplink automatically loads .env files from this directory before expanding ${VAR} placeholders in servers.json.
⚠️ Security Warning: Never commit
.envfiles to version control. Add.mcp-workflows/.envto your.gitignorefile to prevent accidentally committing sensitive credentials.
Use these minimal, copy‑pasteable setups. Each IDE section is collapsible.
Cursor supports MCP via a global or project mcp.json.
Paths:
~/.cursor/mcp.json%USERPROFILE%\\.cursor\\mcp.json.cursor/mcp.json in your repoRun with a local workflows directory:
{
"mcpServers": {
"oplink": {
"command": "npx",
"args": ["oplink@latest", "server", "--config", "./.mcp-workflows"],
"env": {}
}
}
}
Add Oplink as an MCP server:
codex mcp add oplink -- npx -y oplink@latest server --config /absolute/path/to/.mcp-workflows
Register via CLI:
claude mcp add oplink -- npx -y oplink@latest server --config /absolute/path/to/.mcp-workflows
Alternatively with JSON:
claude mcp add-json oplink '{"type":"stdio","command":"npx","args":["oplink@latest","server","--config","/absolute/path/to/.mcp-workflows"]}'
Cline uses cline_mcp_settings.json.
Example:
{
"mcpServers": {
"oplink": {
"command": "npx",
"args": ["oplink@latest", "server", "--config", "./.mcp-workflows"],
"transportType": "stdio",
"timeout": 60,
"env": {}
}
}
}
Workspace .vscode/mcp.json (stdio):
{
"servers": {
"oplink": {
"type": "stdio",
"command": "npx",
"args": ["oplink@latest", "server", "--config", "./.mcp-workflows"]
}
}
}
To add example workflows from a remote (giget) source:
npx oplink@latest add github:user/repo/path#ref
Enable completions/validation for your YAML files:
.mcp-workflows/workflows.yaml:
# yaml-language-server: $schema=../schema/oplink-workflows.schema.json
$schema to .mcp-workflows/servers.json:
{ "$schema": "../schema/oplink-servers.schema.json", "servers": { /* ... */ } }
{
"yaml.schemas": {
"./schema/oplink-workflows.schema.json": ".mcp-workflows/workflows.yaml",
"./schema/oplink-servers.schema.json": ".mcp-workflows/servers.json"
}
}