path-terminal-init
v0.2.9
Published
One-line setup for the Path Terminal SDK integration assistant — connects the user's AI agent to the Path MCP server and installs the per-OS integration recipe (iOS, Android, Windows). The single source of truth for the bootstrap CLI and the recipes.
Maintainers
Readme
path-terminal-init
One-line setup for the Path Terminal SDK integration assistant. It connects the user's AI coding agent (Claude Code or Cursor) to the Path MCP help server and installs the right per-OS integration recipe into their EPOS project. The agent then wires the Path SDK in — a backend switcher for the emulator (Wi-Fi/IP by default, or Bluetooth) and a real Verifone terminal — guided by the recipe and the MCP server's tools.
This repo is the single source of truth for both the bootstrap CLI and the recipes.
Path-mcp-server serves them (/rules, /init.js) from here — there are no duplicate copies.
Tuning the install process? It's a pair of repos, not just this one:
Path-terminal-init(here) — the recipes/rules (rules/**/*.mdc) the agent follows + the CLI. Changes reach partners only afternpm publish(version bump + 2FA).Path-mcp-server— the code examples the agent pulls (get_code_example) + MCP prompts/tools. Changes go live only after a deploy to the box (mcp.path2ai.tech).A single behaviour change usually touches both (the rule says what, the MCP example gives the code) — tune one without the other and they drift. Then update the Terminal Bible (§12 Distribution & releases) so the docs stay current. Distribution/versioning specifics per platform live in the SDK repos.
Layout
src/cli.ts the bootstrap program
rules/
ios/path-integration.mdc iOS (Swift / SPM)
android/path-integration-android.mdc Android (Kotlin / Gradle)
windows-11/path-integration-windows11.mdc Windows 11 (WinUI 3 / .NET 10)
windows-10/path-integration-windows10.mdc Windows 10 (WPF / .NET Framework 4.8)
build.mjs builds dist/cli.js + dist/init.jsHow a customer runs it
Every platform (published to npm) — run from the project root:
npx path-terminal-initWorks on macOS, Linux and Windows (PowerShell or CMD). Needs Node installed. It
auto-detects iOS / Android / Windows 11 (WinUI 3) / Windows 10 (WPF). Add --agent cursor
for Cursor (default is Claude Code).
Alternative — fetch from the help server (no npm):
# macOS / Linux:
node <(curl -s https://mcp.path2ai.tech/init.js) --agent claude
# Windows PowerShell:
curl.exe -s https://mcp.path2ai.tech/init.js -o "$env:TEMP\path-init.js"; node "$env:TEMP\path-init.js" --agent claudeThe CLI writes a .mcp.json (connecting the agent to https://mcp.path2ai.tech), adds the
SDK dependency, and drops the matching recipe into .cursor/rules/ and/or CLAUDE.md.
Develop locally
npm install
npm run build # → dist/cli.js (installable) + dist/init.js (standalone bundle)
npm run typecheck
node dist/cli.js --helpTwo artifacts, one source
dist/cli.js— the installable CLI. Reads recipes from the localrules/<os>/folder.dist/init.js— a self-contained bundle for thecurl … | nodeone-liner. It runs with no localrules/folder, so it fetches the recipe from the server's/rulesendpoint.
Path-mcp-server serves dist/init.js at /init.js and the rules/ files at /rules*.
Its deploy copies them from this repo, so the server is never a stale duplicate.
Publishing updates to npm
Published as path-terminal-init (public).
To ship a new version: bump version in package.json, then:
npm login # if not already logged in
npm publish --access public # prepublishOnly rebuilds dist/ first
npm view path-terminal-init versionnpx path-terminal-init always fetches the latest published version.
