ralph-loop-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ralph-loop-mcpstart Phase 1 workflow for authentication module"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Ralph Loop MCP (Node + TypeScript)
This MCP server turns the repo's .ralph/ folder into a 3-phase workflow:
Phase 1: Create or refine plan documents under
.github/plans/. Phase 1 produces plan files only.Phase 2: Generate/refine specs under
.ralph/specs/**and tasks in.ralph/fix_plan.md.Phase 3: Iterate one task at a time with strict verification (npm run ci + npm run test:e2e).
See docs/DESIGN.md for architecture and positioning.
Phase 1 generator script
ralph.generate_phase1 bootstraps .ralph/phase1.sh and seeds .github/plans/project-plan.md when missing.
The generated Phase 1 session is intentionally constrained to planning output only:
It writes plan documents only under
.github/plans/It does not create
.ralph/specs/**It does not create
.ralph/fix_plan.mdtask itemsRun directly:
bash ./.ralph/phase1.shRun via MCP tool:
ralph.generate_phase1
Related MCP server: Spec-driven Development MCP Server
Phase 2 generator script
ralph.generate_phase2 scaffolds .ralph/phase2.sh and creates the baseline Phase 2 artifacts:
.ralph/specs/*.md.ralph/fix_plan.md.ralph/config.json.ralph/logs/progress.txt.ralph/logs/learnings.mdRun directly:
bash ./.ralph/phase2.shRun via MCP tool:
ralph.generate_phase2
ralph.generate_phase2 performs a lightweight schema validation of .ralph/config.json.
If the file exists and is invalid, the tool reports validation errors without executing the script.
Phase 3 generator script
ralph.generate_phase3 scaffolds .ralph/phase3.sh and creates the Phase 3 prompt files.
It fails with a clear error if .ralph/fix_plan.md does not yet exist.
When the fix plan has fewer than five unchecked active tasks, it seeds Phase 2 planning items as checkboxes automatically.
Artifacts created:
.ralph/phase3.sh.ralph/phase3-plan-prompt.md.ralph/phase3-dev-prompt.md.ralph/phase3-dev-signoff-prompt.md.ralph/phase3-qa-prompt.md.ralph/phase3-qa-close-prompt.md.ralph/logs/phase3-feedback.mdRun directly:
bash ./.ralph/phase3.shRun via MCP tool:
ralph.generate_phase3
Prerequisites
Node.js 20 or later
npm
Build the package before running or testing (see Build section below)
Install
Standalone (this repo cloned directly as the package root):
npm installNested (package embedded under a parent monorepo, e.g. at ./mcp/ralph_loop_mcp):
npm install --prefix ./mcp/ralph_loop_mcpBuild
Standalone:
npm run buildNested:
npm run --prefix ./mcp/ralph_loop_mcp buildRun (stdio)
Standalone:
node dist/index.jsNested:
node ./mcp/ralph_loop_mcp/dist/index.jsVS Code MCP registration
Set cwd to the target project -- the repo whose .ralph/ folder the server will manage. This is typically the project you are actively developing, not the directory where this MCP package lives.
Example configuration for a standalone clone (open the target project folder in VS Code so ${workspaceFolder} resolves to it):
{
"mcpServers": {
"ralph-loop": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "${workspaceFolder}"
}
}
}Example for a nested layout where the package lives at ./mcp/ralph_loop_mcp inside the target project:
{
"mcpServers": {
"ralph-loop": {
"command": "node",
"args": ["./mcp/ralph_loop_mcp/dist/index.js"],
"cwd": "${workspaceFolder}"
}
}
}If VS Code reports ${workspaceFolder} cannot be resolved, open the repository with File -> Open Folder..., or set cwd to an absolute path pointing at the target project root.
Verification prereqs
ralph.run_verification runs npm run ci followed by npm run test:e2e on the target repo (the project under cwd). Both scripts must be defined in that repo's package.json, or the tool will reject them by design.
To extend the allowlist for additional scripts, add an allowedNpmScripts array to .ralph/config.json in the target repo:
{
"allowedNpmScripts": ["lint", "type-check"]
}Conventions
.ralph/fix_plan.mdis the task source of truth.Blocked tasks live under a dedicated heading:
## Blocked(or## Blocked Tasks).Phase 1 planning documents live under
.github/plans/.Phase 2 generator script lives at
.ralph/phase2.shand is auto-created byralph.generate_phase2when absent.Phase 3 generator script lives at
.ralph/phase3.shand is auto-created byralph.generate_phase3when absent.
Dev tests
Standalone:
npm testNested:
npm run --prefix ./mcp/ralph_loop_mcp testNote: Run
npm run buildbefore running tests for the first time sodist/index.jsexists for integration tests.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAdvanced task automation system that reads codebases, divides complex tasks into specific steps, and rigorously executes them with complete testing, documentation, validation and automatic correction.Last updatedMIT
- AlicenseBqualityDmaintenanceEnables AI-guided spec-driven development workflow that transforms ideas into implementation through structured stages: goal collection, requirements gathering in EARS format, technical design documentation, task planning, and systematic code execution.Last updated91621MIT
- Alicense-qualityCmaintenanceImplements GitHub's Spec-Driven Development methodology, transforming natural language requirements into executable specifications, technical plans, and ordered task lists with contract-based validation and progress tracking.Last updated642MIT
- AlicenseAqualityCmaintenanceEnables AI coding tools to follow a structured spec-driven development workflow with three phases: requirements, design, and tasks, ensuring approval before advancing.Last updated10MIT
Related MCP Connectors
Adaptive plan/build/review cycles for AI coding assistants, persisted across sessions.
Turns vague automation requests into tool stacks, prompts, QA checks, and human boundaries.
Design spec + milestones AI coding agents read before building; drift flagged, changes reviewed.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hpractv/ralph-loop-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server