feat(ask-project): endpoint + MCP tools + latest-deploy index pipeline#16
Merged
feat(ask-project): endpoint + MCP tools + latest-deploy index pipeline#16
Conversation
Add WorkOS Magic Auth as a second login path so AI agents can authenticate without a browser. Two-step non-interactive flow: 1. jack login --email agent@example.com (sends 6-digit code) 2. jack login --email agent@example.com --code 123456 (verifies) Auth worker: POST /auth/magic (rate-limited 5/min/IP) and POST /auth/magic/verify endpoints proxying to WorkOS API. CLI: startMagicAuth/verifyMagicAuth client functions, runMagicAuthFlow orchestrating send → verify → register → create jkt_* token. Supports --email flag, JACK_EMAIL env var, and CI=true for fully non-interactive mode. Token printed to stdout for programmatic capture; all human output on stderr. Existing device flow (browser OAuth) unchanged.
Update AI agents, OpenClaw, and troubleshooting docs to document the headless magic auth login flow (--email/--code flags), JACK_API_TOKEN, and JACK_EMAIL env var. Replace misleading "auth happens automatically" with concrete instructions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /v1/projects/:projectId/askendpoint with strict evidence response contractask_projecttool support in local CLI MCP and remote MCP workerjack_control_usage) + PostHog captureMetering/Analytics
jack_usageCONTROL_USAGE(jack_control_usage) and never falls back to runtime traffic datasetValidation
bun run --cwd apps/control-plane typecheckbun run --cwd apps/mcp-worker typecheckNotes
docs/internal/and are gitignored (not part of PR)