Skip to main content

MCP Integration

ralph-starter can run as an MCP (Model Context Protocol) server, allowing you to use it from Claude Desktop, Claude Code, or any MCP-compatible client.

What is MCP?

Model Context Protocol is a standard for connecting AI assistants to external tools and data sources. When ralph-starter runs as an MCP server, Claude can directly call ralph-starter tools.

Start the MCP Server

ralph-starter mcp

This starts ralph-starter as a JSON-RPC 2.0 server over stdio.

Available Tools

ToolDescription
ralph_initInitialize Ralph Playbook in a project
ralph_planCreate implementation plan from specs
ralph_runExecute autonomous coding loop
ralph_statusCheck playbook status and progress
ralph_validateRun tests/lint/build validation

ralph_init

Initialize Ralph Playbook files in a project.

Parameters:

  • path (required): Project path to initialize
  • name (optional): Project name

Example:

{
"tool": "ralph_init",
"arguments": {
"path": "/path/to/project",
"name": "my-app"
}
}

ralph_plan

Create an implementation plan from specs.

Parameters:

  • path (required): Project path
  • auto (optional): Run in automated mode

ralph_run

Execute the autonomous coding loop.

Parameters:

  • path (required): Project path
  • task (optional): Specific task to execute
  • auto (optional): Run in automated mode
  • commit (optional): Auto-commit changes
  • validate (optional): Run validation after changes
  • from (optional): Source to fetch spec from
  • project (optional): Project filter for source
  • label (optional): Label filter for source

ralph_status

Check the current status of Ralph Playbook in a project.

Parameters:

  • path (required): Project path

Returns:

  • Files present (AGENTS.md, specs/, etc.)
  • Implementation progress
  • Available specs

ralph_validate

Run validation commands (tests, lint, build).

Parameters:

  • path (required): Project path

Available Resources

Resource URIDescription
ralph://project/implementation_planIMPLEMENTATION_PLAN.md content
ralph://project/agentsAGENTS.md content
ralph://project/prompt_buildPROMPT_build.md content
ralph://project/prompt_planPROMPT_plan.md content
ralph://project/specs/{name}Individual spec files

Available Prompts

PromptDescription
scaffold_projectInitialize and build a new project
continue_buildingContinue from implementation plan
check_progressCheck project status
fetch_and_buildFetch spec from source and build

Next Steps