@ikani.samani/workrail
v3.101.1
Published
Personal hardened fork of WorkRail (step-by-step workflow enforcement for AI agents via MCP)
Maintainers
Readme
WorkRail (personal fork)
This is a personal hardened fork of WorkRail,
a step-by-step workflow enforcement engine for AI agents delivered as an MCP
server. It is published publicly as @ikani.samani/workrail on the npm registry.
If you want the upstream public version, install @exaudeus/workrail from
npmjs.org instead.
Note: npm usernames cannot contain dots. If the registered scope ends up being
@ikani-samanirather than@ikani.samani, swap the package name accordingly in the steps below.
Prerequisites
- Node.js 22.14.0 (see
.tool-versions). Thepreinstallscript enforces a minimum of Node 20, but CI runs against 22.14.0 and so should you. - npm 11.11.1 or newer (set in
package.jsonvia thepackageManagerfield;corepackwill activate it automatically).
Install
npm install -g @ikani.samani/workrailNo .npmrc configuration or authentication token is needed. The package is
published publicly on the npm registry.
Verify
workrail --versionThis prints the published package version. If you see a 404 Not Found,
the package has not been published yet (a publish-time prerequisite is
still outstanding).
Wire up your MCP client
WorkRail is an MCP server. You point your client (Claude Code, Claude Desktop, Cursor, Firebender, etc.) at it. Pick the section that matches your client.
Claude Code CLI
Add the server to ~/.claude.json (or a project-local .mcp.json):
{
"mcpServers": {
"workrail": {
"command": "npx",
"args": ["-y", "@ikani.samani/workrail"]
}
}
}This launches WorkRail over stdio whenever Claude Code starts.
Claude Desktop
Add to claude_desktop_config.json (location varies by OS; see Anthropic's
docs):
{
"mcpServers": {
"workrail": {
"command": "npx",
"args": ["-y", "@ikani.samani/workrail"]
}
}
}Cursor / other MCP clients
WorkRail follows the standard stdio transport. Any client that supports an
MCP server with a command and args should work with the same shape as above.
See docs/integrations/ for client-specific notes (Firebender, Docker, etc).
Local dev binary (alternative to npx)
If you want a faster startup or do not want npx to fetch the package each
time, install once globally and then reference the binary directly:
{
"mcpServers": {
"workrail": {
"command": "workrail"
}
}
}First run
Once your client is wired up, ask the agent to list available workflows. It
should call WorkRail's discover_workflows tool and return the bundled set
(wr.*).
Then start one:
"Use the wr.discovery workflow on this codebase."
WorkRail creates a session under ~/.workrail/data/sessions/<id>/. The agent
will call continue_workflow between steps; you can see the live state in
the console (worktrain console if you have it).
Configuration
Environment variables, workflow source paths, and config file format are
documented in docs/configuration.md. The
env.example at the repo root lists every variable WorkRail reads, with
inline guidance.
Security posture
Read docs/security.md before deploying. It covers
the workflow trust model (workflow JSON is trusted code; the workflow repo
must be reviewed like production source), network exposure (MCP HTTP
transport binds loopback by default; WORKRAIL_HTTP_HOST overrides it and
logs a warning), and filesystem permissions (~/.workrail/ is mode 0o700).
Two rules worth lifting to the front:
- Do not sync
~/.workrail/to consumer cloud storage (Dropbox, iCloud Drive, Google Drive, OneDrive). Your HMAC signing keyring lives there. - Do not set
WORKRAIL_HTTP_HOSTto anything other than a loopback address unless you have an authenticated reverse proxy in front of WorkRail. The MCP endpoint has no built-in authentication.
Developing on the fork
If you are modifying WorkRail itself rather than just using it, see
docs/development.md. It covers the clone-build-run
loop, test conventions, the commit-msg hook quirk, and the upstream-merge
hot spots.
Reporting issues
File issues in the ikani-pdq/workrail
repository. Do not file bugs against upstream for issues that are specific to
this fork.
Do not include session manifests, keyring contents, or pasted credentials in issue reports.
Upstream
This fork tracks EtienneBBeaulac/workrail
periodically. The package name, registry, README, and release workflow are
the canonical divergence points. See docs/development.md for the
upstream-merge playbook.
