purple-codens-mcp
v0.3.2[DEPRECATED — use codens-mcp instead] MCP server for Purple Codens — AI Development Orchestration.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
purple_login
Log in to Purple Codens. Three login methods are available (in priority order): 1. Browser OAuth (default when auth_service_url provided): Opens a browser for Google OAuth via Auth Codens. Requires a browser on the local machine. Not suitable for headless/SSH environments. 2. Device Code Flow (set use_device_code=True): Displays a short code and URL in the terminal. Open the URL on any device (phone, laptop), enter the code, and log in via Google. Works on headless servers and SSH sessions — no browser…
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
auth_service_url | string | |
email | string | |
password | string | |
use_device_code | boolean |
purple_whoami
Return current authenticated user and organization information. Args: api_url: Purple Codens API base URL
| Parameter | Type | Description |
|---|---|---|
api_url * | string |
purple_analyze_repo
Scan the current working directory and return a structured analysis. Detects: CLAUDE.md, .claude/rules/, package.json scripts, pytest config, .github/workflows/, git remote (GitHub owner/repo), language stack. Args: cwd: Directory to analyze. Defaults to current working directory.
| Parameter | Type | Description |
|---|---|---|
cwd |
purple_list_projects
List all projects in the authenticated organization. Args: api_url: Purple Codens API base URL
| Parameter | Type | Description |
|---|---|---|
api_url * | string |
purple_init_project
Initialize a Purple Codens project for the current repository. Orchestrates: 1. Analyze the local repo 2. Create the project 3. Link the GitHub repository 4. Create purple project settings 5. Import CLAUDE.md + .claude/rules/ as instruction files 6. Return suggested verify commands Args: api_url: Purple Codens API base URL name: Project name cwd: Local repo directory (defaults to cwd) github_owner: GitHub owner (auto-detected from git remote if omitted) github_…
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
name * | string | |
branch | string | |
cwd | ||
github_owner | ||
github_repo | ||
workflow_type | string |
purple_add_repository
Link a GitHub repository to a Purple Codens project. Args: api_url: Purple Codens API base URL project_id: Target project ID github_owner: GitHub organization or user name github_repo: GitHub repository name branch: Default branch (default: main) workflow_type: One of: github_flow, git_flow, trunk_based, custom
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
github_owner * | string | |
github_repo * | string | |
project_id * | string | |
branch | string | |
workflow_type | string |
purple_list_repositories
List all repositories linked to a project. Args: api_url: Purple Codens API base URL project_id: Project ID
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
project_id * | string |
purple_import_instructions
Import CLAUDE.md and .claude/rules/ from the linked GitHub repository into Purple Codens as instruction files. Args: api_url: Purple Codens API base URL project_id: Project ID repository_id: Repository ID to import from
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
project_id * | string | |
repository_id * | string |
purple_list_instructions
List all instruction files for a project. Args: api_url: Purple Codens API base URL project_id: Project ID
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
project_id * | string |
purple_sync_instructions
Read local CLAUDE.md and .claude/rules/, diff with Purple Codens, and update files that have changed. Args: api_url: Purple Codens API base URL project_id: Project ID cwd: Local repo root directory (defaults to cwd)
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
project_id * | string | |
cwd |
purple_create_workflow
Create a new workflow in Purple Codens. Args: api_url: Purple Codens API base URL organization_id: Organization ID project_id: Target project ID name: Workflow name spec: Workflow specification dict (steps, triggers, etc.)
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
name * | string | |
organization_id * | string | |
project_id * | string | |
spec * | object |
purple_get_run_status
Get current status of a workflow run. Args: api_url: Purple Codens API base URL organization_id: Organization ID run_id: Workflow run ID
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
organization_id * | string | |
run_id * | string |
purple_list_runs
List workflow runs scoped to organization, optionally filtered by project and status. Args: api_url: Purple Codens API base URL organization_id: Organization ID project_id: Optional project ID filter status: Optional status filter (e.g. running, pending)
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
organization_id * | string | |
project_id | ||
status |
purple_cancel_run
Cancel a running workflow. Args: api_url: Purple Codens API base URL organization_id: Organization ID run_id: Workflow run ID to cancel reason: Optional cancellation reason
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
organization_id * | string | |
run_id * | string | |
reason |
purple_inject_message
Inject an instruction message into a running heartbeat run. Args: api_url: Purple Codens API base URL organization_id: Organization ID project_id: Project ID run_id: Heartbeat run ID message: Instruction message to inject
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
message * | string | |
organization_id * | string | |
project_id * | string | |
run_id * | string |
purple_subscribe_run_events
Subscribe to SSE events for a workflow run. Collects up to max_events events or until timeout_seconds elapses, then returns the collected events as a list. Args: api_url: Purple Codens API base URL run_id: Workflow run ID max_events: Maximum number of events to collect (default: 50) timeout_seconds: Timeout in seconds (default: 30)
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
run_id * | string | |
max_events | integer | |
timeout_seconds | integer |
purple_get_run_logs
Get VPS job logs for a workflow run. Returns a list of all VPS jobs associated with the run, including each job's log URL (S3 presigned URL, valid for 1 hour), status, and timing. Args: api_url: Purple Codens API base URL organization_id: Organization ID run_id: Workflow run ID
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
organization_id * | string | |
run_id * | string |
purple_get_task_log_url
Get the log URL for the latest Claude Code job of a task. Returns an S3 presigned URL (valid for 1 hour) that points to the Claude Code execution log for the specified task. Args: api_url: Purple Codens API base URL organization_id: Organization ID project_id: Project ID task_id: Task ID
| Parameter | Type | Description |
|---|---|---|
api_url * | string | |
organization_id * | string | |
project_id * | string | |
task_id * | string |