Skip to content

Quick Start

This guide helps you connect Moira to your AI client and run your first workflow.

  • An MCP-compatible AI client (see supported clients below)
  • Moira account (sign up at Moira)
  1. Get your MCP endpoint

    For Moira Cloud: https://moira.witqq.ru/mcp

    For self-hosted, use your server’s MCP endpoint.

  2. Configure your AI client

    Recommended: Use CLI command

    Terminal
    claude mcp add --transport http moira https://moira.witqq.ru/mcp

    Then authenticate:

    OAuth Flow
    # After adding, authenticate within claude
    /mcp
    # → Select "moira"
    # → Click "Authenticate"
    # → Browser opens for OAuth
    Alternative: Manual JSON config
    # Alternative: Manual JSON config
    # ~/.config/claude/mcp.json
    {
      "mcpServers": {
        "moira": {
          "type": "http",
          "url": "https://moira.witqq.ru/mcp"
        }
      }
    }
    
    # Then: /mcp → Authenticate
    Authentication without OAuth

    For CI/CD, Docker, or environments without a browser — use an API token instead of OAuth.

    1. Log in to Moira web UI → Settings → API Tokens
    2. Create a token (starts with moira_)
    3. Replace moira_YOUR_TOKEN below with your token
    ~/.config/claude/mcp.json
    {
      "mcpServers": {
        "moira": {
          "url": "https://moira.witqq.ru/mcp",
          "headers": {
            "Authorization": "Bearer moira_YOUR_TOKEN"
          }
        }
      }
    }
  3. Authenticate the MCP server

    After adding the server configuration, complete OAuth authentication. Most clients will prompt you automatically or have an “Authenticate” button.

  4. Verify connection

    Ask your AI client to list available Moira workflows:

    List available Moira workflows

    You should see a list of workflows you have access to.

  5. Start the user onboarding

    Now simply type in the chat:

    Start user onboarding flow

    The agent will guide you through an interactive onboarding experience that:

    • Explains Moira by demonstrating a workflow in action
    • Shows you key workflows available
    • Helps you get started with your first real task

    This is the recommended way to learn Moira!

Once connected, your AI client has access to these Moira tools:

ToolDescription
list_workflowsList available workflows
start_workflowStart a new workflow execution
execute_stepSubmit step result and get next directive
get_helpGet documentation and help
manage_settingsManage user settings

Here’s what a typical workflow session looks like:

Agent: I'll start the development workflow.
[calls start_workflow with workflowId: "development-flow"]
Moira: Process ID: abc-123
Your next task: Analyze the requirements document...
Success criteria: Requirements are documented...
Agent: [analyzes requirements, produces output]
[calls execute_step with processId: "abc-123" and result]
Moira: Process ID: abc-123
Your next task: Create implementation plan...
Success criteria: Plan covers all requirements...
[... workflow continues until completion]