Sign In

@papi-ai/server

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@papi-ai/server

PAPI MCP server — AI-powered sprint planning, build execution, and strategy review for software projects

Source
npmnpm
Version
0.3.0-alpha.1
Version published
Weekly downloads
768
-40.97%
Maintainers
1
Weekly downloads
 
Created
Source

@papi-ai/server

AI-powered sprint planning, build execution, and strategy review for software projects. PAPI is an MCP (Model Context Protocol) server that connects to Claude Code to manage your project's planning lifecycle.

Installation

npm install -g @papi/server

From source

git clone https://github.com/cathalos92/papi-ui.git
cd papi-ui
npm install
npm run mcp-build

The server bundles @papi-ai/adapter-md at build time — no separate adapter install needed.

Claude Code Setup

Add PAPI to your project's .mcp.json file:

If installed from npm

{
  "mcpServers": {
    "papi": {
      "command": "npx",
      "args": ["papi-server", "--project", "/path/to/your/project"],
      "env": {
        "PAPI_ADAPTER": "pg",
        "DATABASE_URL": "postgresql://...",
        "PAPI_PROJECT_ID": "your-project-uuid"
      }
    }
  }
}

If installed from source

{
  "mcpServers": {
    "papi": {
      "command": "node",
      "args": ["/path/to/papi-ui/packages/server/dist/index.js", "--project", "/path/to/your/project"],
      "env": {
        "PAPI_ADAPTER": "pg",
        "DATABASE_URL": "postgresql://...",
        "PAPI_PROJECT_ID": "your-project-uuid"
      }
    }
  }
}

For local-only usage with markdown files (no database), omit the PAPI_ADAPTER, DATABASE_URL, and PAPI_PROJECT_ID variables — the server defaults to the markdown adapter.

Environment Variables

VariableRequiredDefaultDescription
PAPI_PROJECT_DIRYes*Project root directory (alternative to --project flag)
PAPI_ADAPTERNomdStorage adapter: md (local markdown files) or pg (PostgreSQL/Supabase)
DATABASE_URLFor pgPostgreSQL connection string (required when PAPI_ADAPTER=pg)
PAPI_PROJECT_IDFor pgProject UUID in the database (required when PAPI_ADAPTER=pg)
PAPI_API_KEYNo**Anthropic API key for AI-powered commands (plan, strategy, setup)
PAPI_AUTO_COMMITNotrueAuto-commit .papi/ changes after plans and builds
PAPI_AUTO_PRNotrueAuto-create pull requests after completed builds
PAPI_BASE_BRANCHNomainBase branch for PR creation and plan sync (pull/push)
PAPI_SLACK_WEBHOOK_URLNoSlack incoming webhook URL for sprint notifications

* Either PAPI_PROJECT_DIR or --project flag is required.

** Not required when using the prepare/apply pattern (default). Only needed if calling the Anthropic API directly from the server.

Quick Start

Once configured in Claude Code, initialise your project:

  • Setupsetup creates a .papi/ directory with your Product Brief and planning files
  • Planplan runs a sprint planning cycle, generates BUILD HANDOFFs for recommended tasks
  • Buildbuild list shows available tasks, build execute <task-id> starts implementation
  • Report — After building, call build execute <task-id> again with completion details
  • Repeat — Run plan again when all sprint tasks are done

Commands

CommandDescriptionRequires API Key
setupInitialise a new PAPI project or regenerate Product BriefYes
planRun sprint planning — generates BUILD HANDOFFs for 1-5 tasksYes
buildList, describe, and execute build tasksNo
boardView sprint board, filter tasks, deprioritise stale workNo
strategyRun strategy review or apply a strategic changeYes
ideaCapture a backlog idea without interrupting the current sprintNo
healthSprint health dashboard — cadence, board stats, next actionNo
releaseCut a versioned release with git tag and changelogNo

How It Works

PAPI manages your project through markdown files in a .papi/ directory:

  • PRODUCT_BRIEF.md — Your project's vision, users, and roadmap
  • PLANNING_LOG.md — Sprint health, active decisions, sprint history
  • SPRINT_BOARD.md — All tasks with status, priority, and build handoffs
  • BUILD_REPORTS.md — Post-build reports tracking effort and discoveries

The AI planner reads this context each sprint to make informed recommendations that compound over time — sprint 20 is smarter than sprint 1 because it has 19 sprints of history to learn from.

License

MIT

Keywords

mcp

FAQs

Package last updated on 22 Mar 2026

Related posts