{"_id":"@logi-auth/mcp-approval","_rev":"5-43b521e1218239b201e35e57b4fe8942","name":"@logi-auth/mcp-approval","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.0":{"name":"@logi-auth/mcp-approval","version":"0.1.0","keywords":["mcp","logi","agent","approval","human-in-the-loop","ai-safety","1pass","ciba"],"author":{"name":"Dcode","email":"support@1pass.dev"},"license":"MIT","_id":"@logi-auth/mcp-approval@0.1.0","maintainers":[{"name":"2seo","email":"iyu974895@gmail.com"}],"homepage":"https://github.com/seunghan91/logi#readme","bugs":{"url":"https://github.com/seunghan91/logi/issues"},"bin":{"logi-mcp-approval":"dist/index.js"},"dist":{"shasum":"6d0e68132e4fb0a3c9615f8d8f074844bf901931","tarball":"https://registry.npmjs.org/@logi-auth/mcp-approval/-/mcp-approval-0.1.0.tgz","fileCount":8,"integrity":"sha512-+OUqRQhykikGKTqaZdWnWKaI2GEMCTjBm1d3FfVrigmV3xP4yru7o4g5hkW/es0BkR5wnvxM7Mg4OZm5aF0ziQ==","signatures":[{"sig":"MEUCIQDSS/Gqq8c8+gzjcbs1IECCyi7pWXbaY0DgkRRBcJFRjwIgVlFOPYh40vTI7tOuUN+TZR5u1nDTjhHhqg3BoJwQSF0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16888},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20"},"gitHead":"4524c83d07ffdd3a40f1b890558905445f157ac9","scripts":{"dev":"tsc --watch","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"2seo","email":"iyu974895@gmail.com"},"repository":{"url":"git+https://github.com/seunghan91/logi.git","type":"git","directory":"mcp-approval"},"_npmVersion":"10.9.2","description":"MCP server for logi Agent Approval Gate — request human approval before high-risk actions","directories":{},"_nodeVersion":"22.14.0","dependencies":{"zod":"^3.23.0","@modelcontextprotocol/sdk":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp-approval_0.1.0_1786102558585_0.05040720095621487","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@logi-auth/mcp-approval","version":"0.1.1","keywords":["mcp","logi","agent","approval","human-in-the-loop","ai-safety","1pass","ciba"],"author":{"name":"Dcode","email":"support@1pass.dev"},"license":"MIT","_id":"@logi-auth/mcp-approval@0.1.1","maintainers":[{"name":"2seo","email":"iyu974895@gmail.com"}],"homepage":"https://docs.1pass.dev/agent-approval/quickstart","bugs":{"url":"https://github.com/dcode-co/logi-plugins/issues"},"bin":{"logi-mcp-approval":"dist/index.js"},"dist":{"shasum":"6c6ec6eb37d5fe041515eb325d2a05e403c92c2f","tarball":"https://registry.npmjs.org/@logi-auth/mcp-approval/-/mcp-approval-0.1.1.tgz","fileCount":9,"integrity":"sha512-f4x9RhTuDBVQMA4Att0bx0jL0hW6/pbY1n2Rje8oHQtqijFpfJMMiEl2zJfbCdVwh44JLyRQAT4B3atoaIYcSQ==","signatures":[{"sig":"MEYCIQCV+HH1w56vEaHdKchqwAjrGrKVDH4AI+XgxlH2ubAbYAIhAPclKpknL1MJID76h1m2HF+WVMhmJrrH9CFups8zmJHF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18120},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20"},"gitHead":"181213333c404b6c301ef20aeb83dc36ea0bb134","mcpName":"io.github.dcode-co/logi-approval","scripts":{"dev":"tsc --watch","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"2seo","email":"iyu974895@gmail.com"},"repository":{"url":"git+https://github.com/dcode-co/logi-plugins.git","type":"git"},"_npmVersion":"10.9.2","description":"MCP server for logi Agent Approval Gate — request human approval before high-risk actions","directories":{},"_nodeVersion":"22.14.0","dependencies":{"zod":"^3.23.0","@modelcontextprotocol/sdk":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp-approval_0.1.1_1786109692205_0.373438172920201","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@logi-auth/mcp-approval","version":"0.1.2","keywords":["mcp","logi","agent","approval","human-in-the-loop","ai-safety","1pass","ciba"],"author":{"name":"Dcode","email":"support@1pass.dev"},"license":"MIT","_id":"@logi-auth/mcp-approval@0.1.2","maintainers":[{"name":"2seo","email":"iyu974895@gmail.com"}],"homepage":"https://docs.1pass.dev/agent-approval/quickstart","bugs":{"url":"https://github.com/dcode-co/logi-plugins/issues"},"bin":{"logi-mcp-approval":"dist/index.js"},"dist":{"shasum":"0ab589f35023b91d07d9d1d07aeeff52fdd3ed13","tarball":"https://registry.npmjs.org/@logi-auth/mcp-approval/-/mcp-approval-0.1.2.tgz","fileCount":9,"integrity":"sha512-z82aBWAquvxVpI/amo49Ij4557tpgtGQsHFY2lyUVtAKsJumSWjzwK17gU/FgFKfUzlmSFY5wjSFN2QryfytbQ==","signatures":[{"sig":"MEQCIGXTSArAj+DyeVGYhgWzRrgr7xujbWEFnvvd5QBZ2B9IAiAS8tn+MBxvtk1IODfa1EwBkWHZhXb2jhf+5aAptm9frA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18111},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20"},"gitHead":"34d16443228cb7eb2503afa872208409badf0a2f","mcpName":"dev.1pass/logi-approval","scripts":{"dev":"tsc --watch","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"2seo","email":"iyu974895@gmail.com"},"repository":{"url":"git+https://github.com/dcode-co/logi-plugins.git","type":"git"},"_npmVersion":"10.9.2","description":"MCP server for logi Agent Approval Gate — request human approval before high-risk actions","directories":{},"_nodeVersion":"22.14.0","dependencies":{"zod":"^3.23.0","@modelcontextprotocol/sdk":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp-approval_0.1.2_1786113117547_0.009646138542808824","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@logi-auth/mcp-approval","version":"0.1.3","keywords":["mcp","logi","agent","approval","human-in-the-loop","ai-safety","1pass","ciba"],"author":{"name":"Dcode","email":"support@1pass.dev"},"license":"MIT","_id":"@logi-auth/mcp-approval@0.1.3","maintainers":[{"name":"2seo","email":"iyu974895@gmail.com"}],"homepage":"https://docs.1pass.dev/agent-approval/quickstart","bugs":{"url":"https://github.com/dcode-co/logi-plugins/issues"},"bin":{"logi-mcp-approval":"dist/index.js"},"dist":{"shasum":"844d44002aec2b7e4582246cba3cc984f44821d3","tarball":"https://registry.npmjs.org/@logi-auth/mcp-approval/-/mcp-approval-0.1.3.tgz","fileCount":11,"integrity":"sha512-ogU2e4vxhZcEM+TsC8J1be1qllXkC7hw53Wx5oD+NSuNg21lqCs4FnFrT5C52AM1NctpKG7N+Xhty9VsdDnoWQ==","signatures":[{"sig":"MEUCICa+02dzlDXIUIHikTH9Mc9gbJBFsY6sBx5TM2a2XN2tAiEAhJ17VWkcbSbjJ7b0t05LTiFsBrRB/VsI6CM6PzEX9Qc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIGM55S1llsUQbm/TW9AuHF5Yz7YCA20wEGRUcv6xUy4rAiAEgN1rcUy/uCz+y0hEgeiAfTpqzd5Y844bE2tfSZkmIQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30189},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20"},"mcpName":"dev.1pass/logi-approval","scripts":{"dev":"tsc --watch","test":"tsc && node --test test/*.test.mjs","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"2seo","email":"iyu974895@gmail.com"},"repository":{"url":"git+https://github.com/dcode-co/logi-plugins.git","type":"git"},"_npmVersion":"10.9.8","description":"MCP server for logi Agent Approval Gate — request human approval before high-risk actions","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.6.7","@modelcontextprotocol/sdk":"^1.32.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp-approval_0.1.3_1794301906485_0.991035911367708","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"_id":"@logi-auth/mcp-approval@0.1.4","bin":{"logi-mcp-approval":"dist/index.js"},"bugs":{"url":"https://github.com/dcode-co/logi-plugins/issues"},"dist":{"shasum":"b53b23fcc4f1554ba82995c729eaf0d91514674c","tarball":"https://registry.npmjs.org/@logi-auth/mcp-approval/-/mcp-approval-0.1.4.tgz","fileCount":11,"integrity":"sha512-MCegNbsG02vXv7sp/38Aebpws1b4UDysTuBM17iU6pAPP6CuTubrmZAv5LhgA+Hs3NfHDmTco98jdd2lHu0dRg==","signatures":[{"sig":"MEYCIQDo1grb+8ma4DRJ2zDrByKUyqsXoQpmzL5r+HaPy5mNyAIhANS8IRS6Lt9KDcRq9Udsrhh++jtjc42wfhaFIrY+XxO5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCeHXmXs43c5bBUCBXAffA+U5bXVlLNLoTTXMG2ccfx/AIhAJ0vwE7xIoumhwabFR5JtaCVZ2PJnISGCkiXizfs7hMa"}],"unpackedSize":30386},"main":"dist/index.js","name":"@logi-auth/mcp-approval","type":"module","types":"dist/index.d.ts","author":{"name":"Dcode","email":"support@1pass.dev"},"engines":{"node":">=20"},"license":"MIT","mcpName":"dev.1pass/logi-approval","scripts":{"dev":"tsc --watch","test":"tsc && node --test test/*.test.mjs","build":"tsc","prepublishOnly":"npm run build"},"version":"0.1.4","_npmUser":{"name":"2seo","email":"iyu974895@gmail.com"},"homepage":"https://docs.1pass.dev/agent-approval/quickstart","keywords":["mcp","logi","agent","approval","human-in-the-loop","ai-safety","1pass","ciba"],"repository":{"url":"git+https://github.com/dcode-co/logi-plugins.git","type":"git"},"_npmVersion":"10.9.8","description":"MCP server for logi Agent Approval Gate — request human approval before high-risk actions","directories":{},"maintainers":[{"name":"2seo","email":"iyu974895@gmail.com"}],"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.6.7","@modelcontextprotocol/sdk":"^1.32.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-approval_0.1.4_1794303940087_0.02891035050093438"}}},"time":{"created":"2026-08-07T11:35:58.381Z","modified":"2026-11-10T09:45:41.053Z","0.1.0":"2026-08-07T11:35:58.725Z","0.1.1":"2026-08-07T13:34:52.362Z","0.1.2":"2026-08-07T14:31:57.685Z","0.1.3":"2026-11-10T09:11:46.562Z","0.1.4":"2026-11-10T09:45:40.183Z"},"bugs":{"url":"https://github.com/dcode-co/logi-plugins/issues"},"author":{"name":"Dcode","email":"support@1pass.dev"},"license":"MIT","homepage":"https://docs.1pass.dev/agent-approval/quickstart","keywords":["mcp","logi","agent","approval","human-in-the-loop","ai-safety","1pass","ciba"],"repository":{"url":"git+https://github.com/dcode-co/logi-plugins.git","type":"git"},"description":"MCP server for logi Agent Approval Gate — request human approval before high-risk actions","maintainers":[{"name":"2seo","email":"iyu974895@gmail.com"}],"readme":"# @logi-auth/mcp-approval\n\nMCP server for the logi Agent Approval Gate. Lets AI agents (Claude Code,\nCodex, Cursor, custom) request **human approval** on a user's phone before\nperforming high-risk actions — budget changes, production deploys, payments,\nmass communications, etc.\n\n> The user sees: \"Codex wants to change Meta budget from 500K → 50M KRW.\n> Confirm with Face ID and the 6-digit code.\" They tap [거절] or [승인],\n> the assertion is signed with the device passkey, and the agent receives\n> the verdict.\n\n## Setup\n\n1. **Register an agent** in the logi developer console (`start.1pass.dev`).\n   You'll get a Bearer token and (for `signed` mode) an Ed25519 private key\n   — both shown **once**. Save them in a secret manager.\n\n2. **Configure the MCP host** (Claude Code shown):\n\n   ```jsonc\n   {\n     \"mcpServers\": {\n       \"logi-approval\": {\n         \"command\": \"npx\",\n         \"args\": [\"-y\", \"@logi-auth/mcp-approval\"],\n         \"env\": {\n           \"LOGI_AGENT_TOKEN\": \"logi_agt_...\",\n           \"LOGI_AGENT_PRIVATE_KEY\": \"-----BEGIN PRIVATE KEY-----\\n...\",\n           \"LOGI_AGENT_PUBLIC_ID\": \"agt_xxxxxx\",\n           \"LOGI_API_URL\": \"https://api.1pass.dev\"\n         }\n       }\n     }\n   }\n   ```\n\n3. **Tell the agent the rules** (in `AGENTS.md`, `CLAUDE.md`, or your\n   system prompt):\n\n   ```markdown\n   You have the logi__request_approval tool. ALWAYS call it BEFORE:\n   - Changing any ads budget by >20% or absolute >1,000,000 KRW\n   - Running migrations on production databases\n   - Sending more than 100 emails or SMS messages in one batch\n   - Spending >100,000 KRW on any external API\n   - Deploying to production\n\n   If the tool returns status != \"approved\", ABORT and tell the user.\n   NEVER proceed without explicit approval for these categories.\n   ```\n\n## Tools\n\n- **`logi__request_approval`** — send a prompt; by default blocks until the\n  user decides or the wait runs out. Returns `{ auth_req_id, status, ... }`.\n  Optional arguments:\n  - `wait_for_decision` (default `true`) — set `false` to return right away\n    with `status: \"pending\"`, then poll `logi__check_approval` with the same\n    `auth_req_id`.\n  - `idempotency_key` — sent as the `Idempotency-Key` header. Retrying with\n    the same key and payload returns the existing request instead of\n    prompting the user again (a different payload returns 409).\n  - `ttl_seconds` (30–1800), `context` (free-form object).\n- **`logi__check_approval`** — poll a previously created prompt by id.\n- **`logi__cancel_approval`** — withdraw a prompt you no longer need; the\n  server marks it `revoked`. Already-decided prompts are returned unchanged.\n\nEvery result carries a text summary and the same fields as\n`structuredContent`.\n\nOnly `status: \"approved\"` means proceed. `pending`, `delivered`, `timeout`,\n`rejected`, `expired` and `revoked` all mean stop. `timeout` is reported by\nthis server when its local wait ends first — it is **not** an approval, and\nthe prompt may still be open on the phone (poll it or cancel it). One approval\ncovers one execution of the described action; never reuse it for another.\n\nNon-blocking example:\n\n```text\nlogi__request_approval { title, body, action_type, wait_for_decision: false }\n  → { auth_req_id: \"ar_…\", status: \"pending\", number_match: \"123456\" }\nlogi__check_approval { auth_req_id: \"ar_…\" }   # repeat until terminal\n  → { status: \"approved\" }                     # only now proceed\nlogi__cancel_approval { auth_req_id: \"ar_…\" }  # if the plan changed\n```\n\n## Auth modes\n\n- **`signed`** (recommended): Bearer + Ed25519 signature on every request.\n  Token theft alone cannot mint approvals — the private key is also required.\n- **`bearer_only`**: Bearer only. Convenient (one-liner curl) but a leaked\n  token is a full compromise. Disabled in production by default.\n\n## How replay / fatigue is prevented\n\n- Every request carries a nonce + timestamp + body digest in the signature;\n  the server rejects nonce reuse within a 5-minute window.\n- An in-flight prompt for the same `(user, agent, action_type)` is reused\n  instead of stacking up — defeats MFA bombing.\n- A rejected `action_type` triggers a 10-minute cool-down before the same\n  prompt can be re-issued.\n- The user's phone shows a 6-digit `number_match` the agent also displays;\n  mismatch → reject.\n\n## Changelog\n\n### 0.1.4\n- No code changes. Republished so the npm page shows the current README.\n\n### 0.1.3\n- `logi__request_approval`: when the local wait expires, returns\n  `status: \"timeout\"` (not approved) instead of the last pending status.\n- New optional `idempotency_key` argument (1–255 printable ASCII, no\n  leading/trailing spaces), forwarded as `Idempotency-Key`.\n- If polling fails after the request was created, the error result still\n  carries the `auth_req_id` (`status: \"error\"`) so it can be checked or\n  cancelled.\n- New `logi__cancel_approval` tool.\n- Tool results include `structuredContent`; tools declare an `outputSchema`.\n- Tool input schemas now advertise lengths, pattern, integer bounds and\n  defaults.\n- HTTP requests time out after 15s; the server reports its package version.\n- `wait_for_decision` still defaults to `true`.\n- Built on zod 4 and `@modelcontextprotocol/sdk` 1.32; tool input schemas\n  are generated with `z.toJSONSchema`.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}