cookiy-mcp
v1.9.1
Published
One-command bootstrap for Cookiy local skills and MCP connections in your AI coding clients
Maintainers
Readme
Cookiy MCP — Cookiy Bootstrap CLI
One-command bootstrap for Cookiy in your AI coding clients.
Cookiy gives your AI agent user-research skills — design interview guides, conduct AI-moderated interviews with real or simulated participants, and generate analysis reports.
This CLI now bootstraps two layers:
- a local Cookiy skill copy where the client supports local skill folders
- an MCP connection to Cookiy's live tools
Quick Start
npx cookiy-mcpThat's it. The CLI auto-detects your installed AI clients, installs a local Cookiy skill where supported, and then configures MCP.
macOS Standalone Binary
For a macOS release build, this package can also be compiled into a standalone cookiy executable using Node's Single Executable Applications (SEA) flow. This keeps the current npm / npx cookiy-mcp path intact while enabling a Homebrew-style binary distribution for macOS.
Build the macOS artifact from this package directory:
npm install
npm run build:macosIf your machine has multiple Node installations and the default one is not SEA-capable, point the build at a specific LTS Node binary:
COOKIY_SEA_NODE_BINARY="$(which node)" npm run build:macosThe build outputs:
dist/cookiy— standalone macOS executable for the current machine architecturedist/cookiy-v<version>-darwin-<arch>.tar.gz— release artifact suitable for a Homebrew bottle or direct downloaddist/cookiy-v<version>-darwin-<arch>.tar.gz.sha256— SHA256 checksum
Recommended Homebrew behavior:
- Install the
cookiybinary - Run
cookiy -yfrom the formulapost_installstep if you want install-time bootstrap - Let the CLI install a local Cookiy skill first where supported, then configure MCP
- Leave OAuth completion to first use in clients such as Codex / Claude Code rather than blocking
brew install - Keep the default user-facing command on production:
cookiy
Generate a Homebrew formula after building the macOS artifact:
npm run build:brew-formulaThis writes dist/cookiy.rb, ready to copy into a Homebrew tap repository.
Bootstrap Behavior By Client
| Client | Local skill install | MCP install | Notes |
|--------|---------------------|-------------|-------|
| Claude Code | ~/.claude/skills/cookiy | Automatic via CLI | Skill-first |
| Codex | ~/.agents/skills/cookiy | Automatic via CLI or TOML fallback | Skill-first |
| OpenClaw | ~/.openclaw/skills/cookiy | Resumable headless OAuth + script bundle | Skill-first |
| Cursor | Not installed by this CLI | JSON config | MCP-only fallback |
| VS Code (Copilot) | Not installed by this CLI | JSON config | MCP-only fallback |
| Windsurf | Not installed by this CLI | JSON config | MCP-only fallback |
| Cline | Not installed by this CLI | JSON config | MCP-only fallback |
| Manus | Not installed by this CLI | Resumable headless OAuth + script bundle | MCP-only fallback |
Usage
# Default (production bootstrap)
npx cookiy-mcp
# Only configure one client
npx cookiy-mcp --client cursor
# OpenClaw (interactive OAuth flow)
npx cookiy-mcp --client openclaw
# Manus / sandbox-friendly headless OAuth flow
npx cookiy-mcp --client manus
# Preview without writing
npx cookiy-mcp --dry-run
# Remove configuration
npx cookiy-mcp --remove
# Skip confirmation
npx cookiy-mcp -yCookiy CLI (cookiy)
The same package installs a cookiy binary for terminal use against the hosted MCP JSON-RPC API.
cookiy login— Browser OAuth (PKCE). Writes tokens to~/.mcp/cookiy/credentials.jsonby default (orCOOKIY_CREDENTIALS). Same stable path for allcookiycommands. Optional:cookiy login devor--server-url.cookiy doctor/cookiy study …— Use after login.
Environment: COOKIY_MCP_URL (full MCP URL) overrides derived https://<api>/mcp for this process.
What You Get After Bootstrap
On supported clients, the CLI installs a local Cookiy skill copy first. That gives the agent workflow guidance and references before MCP tools are used.
After that, MCP is configured so the client can call Cookiy's live tools.
What You Get — tool groups
Once connected, your AI agent gains these skill modules:
Discovery
Use these tools when the client needs orientation before entering a workflow.
cookiy_introduce— Explain what Cookiy can do in plain languagecookiy_help— Return atomic MCP tool guidance and recommended chainscookiy_activity_get— Unified study progress and next-step summary (prefer for “how is recruitment?” / report readiness in natural language)
Study Creation
Describe your research goal in plain language, and Cookiy creates a complete study with an AI-generated discussion guide.
cookiy_study_create— Create a study asynchronouslycookiy_media_upload— Upload images as study attachmentscookiy_guide_status— Check guide generation statuscookiy_guide_get— Retrieve the guide once ready
AI Interview
Simulate user interviews with AI personas — no real participants needed. Get preliminary insights in minutes.
cookiy_simulated_interview_generate— Queue AI-to-AI interview simulationscookiy_simulated_interview_status— Check simulation job progresscookiy_interview_list— List interviews for a studycookiy_interview_playback_get— Get transcripts and recordings
Discussion Guide
Auto-generated interview scripts you can edit. Preview the impact of changes before applying.
cookiy_guide_get— Retrieve the current guidecookiy_guide_impact— Preview patch impact without savingcookiy_guide_patch— Apply changes with revision lockcookiy_guide_status— Check guide generation status
Recruitment
Recruit real respondents through Cookiy-managed recruitment flows to participate in AI-moderated interviews (including optional quantitative-survey modes when the server exposes them).
cookiy_recruit_create— Launch or reconfigure recruitmentcookiy_recruit_status— Monitor recruitment progress
Report & Insights
Auto-generate analysis reports from completed interviews. Manage studies and track usage.
cookiy_report_status— Check report readinesscookiy_report_share_link_get— Return a report share linkcookiy_study_get— Get study summarycookiy_study_list— List all studiescookiy_balance_get— Check account balancecookiy_billing_cash_checkout— Add cash credit (USD cents) via Stripe Checkout before other paid actions
Quantitative survey (optional)
When the deployment has quantitative survey integration configured:
cookiy_quant_survey_list— List surveyscookiy_quant_survey_create— Create a questionnairecookiy_quant_survey_detail— Public respondent URLs and optional structurecookiy_quant_survey_patch— Apply safe questionnaire editscookiy_quant_survey_report— Default summary/report entrypointcookiy_quant_survey_results— Fetch response payloadscookiy_quant_survey_stats— Legacy compatibility stats view
Recommended quantitative workflow: create or list -> detail -> patch when needed -> report after responses arrive. Use results only for raw row exports.
Example Workflow
After setup, ask your AI agent:
"Create a user research study about why users abandon shopping carts"The agent will use Cookiy MCP skills to:
- Create the study with AI-generated discussion guide
- Poll
cookiy_guide_statusand load the guide withcookiy_guide_get - Run interviews or recruitment
- Poll
cookiy_report_statuswhile the report is being generated automatically - When status is
PREVIEWorREADY, callcookiy_report_share_link_get
Options
npx cookiy-mcp [server-url] [options]
Arguments:
server-url MCP server base URL, or environment alias:
prod, dev, dev2, preview, staging, test
(default: prod → https://s-api.cookiy.ai)
Options:
--client <name> Target specific client
(claudeCode, cursor, vscode, codex, windsurf, cline, openclaw, manus)
--name <server-name> Override MCP server name (default: cookiy)
--scope <scope> Claude Code scope: user|project (default: user)
--remove Remove Cookiy MCP config
--dry-run Preview changes without writing
-y, --yes Skip confirmation
-h, --help Show help
-v, --version Show versionRequirements
- Node.js >= 18
- A Cookiy account (free to start)
Headless OAuth Notes
openclaw and manus use a resumable headless OAuth flow. The installer saves a pending session file before opening the authorization link, so rerunning the same command after a timeout or sandbox restart will reuse the same client_id, PKCE verifier, and state instead of creating a new OAuth session.
When the browser can reach the local callback, setup finishes automatically.
If the browser ends on a sandbox-unreachable 127.0.0.1 callback and the
terminal does not continue, paste either the full callback URL or just the
authorization code back into the installer prompt.
After token exchange, the installer verifies the MCP connection with a lightweight Cookiy tool call and prints a concise success confirmation instead of requiring a manual raw-JSON verification step.
After a successful exchange, the installer writes:
credentials.jsonwith the OAuth tokensmcp-call.sh/mcp-call.ps1for direct MCP tool callsREADME.txtwith usage notes
How It Works
- Validates the Cookiy MCP server via OAuth discovery endpoint
- Detects which AI clients are installed on your machine
- Installs a packaged local Cookiy skill for Codex, Claude Code, and OpenClaw
- Writes the appropriate MCP configuration for each client
- Each client handles OAuth login on first use, or completes resumable headless OAuth during setup for OpenClaw / Manus
Links
- Cookiy — AI-powered user research platform
- Cookiy Developer Portal — API keys and documentation
License
MIT
