# Connect OneDev to Your AI Agent (Universal MCP)

> Use your AI to build software, run deployments, and track issues in OneDev — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http onedev https://api.universalmcp.app/mcp/onedev`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/onedev` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "onedev", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: OneDev | Category: DevOps & IT/Security (OneDev) | Auth: Encrypted API credentials or guided on-prem setup | Deployment: on-prem
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Repositories and PRs, CI/CD pipelines, Comments and assignments; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=onedev | Guide: https://universalmcp.app/mcp/onedev
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (17 actions: 6 Read, 11 Write)
Perform over 10 actions across code & reviews, pipelines & security, AI teammates, planning & packages, and workspaces & API. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Code & Reviews (5):** Search Code Symbols (read), Run Regular Expression Code Search (read), Create Pull Request (write), Review Pull Request Changes (read), Enforce Branch Protection Rules (write)
- **Pipelines & Security (4):** Create Reusable CI/CD Pipeline (write), Run Security and Compliance Scan (read), Detect Secret Exposure (read), Update Dependencies With Renovate (write)
- **AI Teammates (3):** Assign Issue to AI Teammate (write), Resolve Merge Conflicts With AI (write), Fix Failing CI/CD Pipeline (write)
- **Planning & Packages (3):** Create Issue (write), Edit Project Wiki (write), Publish Software Package (write)
- **Workspaces & API (2):** Launch Sandbox Workspace (write), Call RESTful API (read)

## Example Prompts for OneDev
- **PR triage:** "Summarize open pull requests in OneDev with failing CI/CD jobs, grouped by target branch and owner."
- **Release blockers:** "List the release blockers in OneDev for version 3.8, including open issues and unmerged pull requests."
- **Pipeline failures:** "Show the last five failed CI/CD runs in OneDev with the stage and error summary for each."
- **Draft fix request:** "Draft a comment assigning the merge conflict fix on PR #482 to the AI teammate for my approval."
