Repository navigation
Conversation
`npx codeceptjs init:agent [claude|codex|cursor|opencode]` registers the CodeceptJS MCP server and installs CodeceptJS skills for the chosen agent. Claude and Codex use their own `mcp add` commands; Cursor and OpenCode get their project MCP file merged. `init` gains `--agent` and a final prompt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 tasks done
One agents table and execSync with the agents' own commands. Drop the runner injection, CLI detection, mcp get check and CODECEPTJS_CONFIG handling. Tests use fake binaries on PATH. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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
Adds
npx codeceptjs init:agent [agent](aliasinit-agent). It registers the CodeceptJS MCP server and installs the CodeceptJS skills for a coding agent, using the agent's own commands where it has them.Base branch is
4.x: the MCP server and agent docs exist only there.What each agent gets
claude mcp add codeceptjs -- npx codeceptjs-mcpnpx skills add codeceptjs/skills -a claude-code -ycodex mcp add codeceptjs -- npx codeceptjs-mcpnpx skills add codeceptjs/skills -a codex -ymcpServers.codeceptjsto.cursor/mcp.jsonnpx skills add codeceptjs/skills -a cursor -ymcp.codeceptjstoopencode.jsonnpx skills add codeceptjs/skills -a opencode -yexecSync. If one fails, the error and the command to run by hand are printed, and setup continues.initgets--agent <name>and ends with "Set up an AI coding agent?" (default none). With-yand no--agentit's skipped.docs/agents.mdleads withinit:agent, manual steps moved under "Manual setup";docs/mcp.mdanddocs/commands.mdmention it.Test plan
test/unit/command/initAgent_test.js: fakeclaude/codex/npxbinaries onPATHrecord their arguments. Covers claude and codex commands, skills still installed when MCP fails, cursor/opencode merge, same file on second run, invalid JSON untouched, unknown agent and-ywithout agent.npx mocha test/unit/command: 34 passing🤖 Generated with Claude Code