mcp-onedev
TOD – Das OneDev CLI-Tool
TOD (TheOneDev) ist ein leistungsstarkes Befehlszeilen-Tool für OneDev 13+, das Ihren Entwicklungsworkflow optimiert. Es ermöglicht Ihnen, CI/CD-Jobs für lokale Änderungen auszuführen, Pull Requests in ein lokales Arbeitsverzeichnis auszuchecken, Issues/PRs/Builds abzufragen und zu bearbeiten sowie all dies über KI-Agenten mithilfe bereitgestellter Skill-Dateien zu steuern.
Funktionen
Abfrage und Bearbeitung von OneDev-Entitäten — Issues, Pull Requests und Builds — direkt aus der Shell.
Ausführung von CI/CD-Jobs für lokale Änderungen, Branches oder Tags mit Echtzeit-Log-Streaming (
tod build run --local,--branchoder--tag).Auschecken von Pull Requests lokal (
tod pr checkout).Überprüfung und Migration von
.onedev-buildspec.ymlauf die neueste Version (tod build check-spec).Agent-Skills unter
skills/, die Claude Code, Cursor und andere SKILL.md-fähige Agenten anleiten, OneDev-Workflows übertodzu steuern.Plattformübergreifende Unterstützung (Windows, macOS, Linux).
Related MCP server: AlibabaCloud DevOps MCP Server
Installation
Um tod zu installieren, fügen Sie das Binary zu Ihrem PATH hinzu.
Herunterladen vorgefertigter Binaries
https://code.onedev.io/onedev/tod/~builds?query=%22Job%22+is+%22Release%22
Aus dem Quellcode erstellen
Voraussetzungen: Go 1.22.1 oder höher.
git clone https://code.onedev.io/onedev/tod.git
cd tod
go buildKonfiguration
Führen Sie tod config set aus, um die Konfigurationsdatei interaktiv zu erstellen oder zu aktualisieren:
tod config set
# OneDev server URL (e.g. https://onedev.example.com): ...
# OneDev personal access token (input is visible): ...Oder übergeben Sie alles als Flags für nicht-interaktive Setups:
tod config set \
--server-url https://onedev.example.com \
--access-token your-personal-access-token \
--non-interactivetod config get gibt die aktive Konfiguration aus (wobei das Token maskiert ist), tod config get <Eigenschaftsname> gibt eine einzelne Eigenschaft aus und tod config set <Eigenschaftsname> <Eigenschaftswert> aktualisiert eine Eigenschaft. Die Eigenschaftsnamen sind server-url und access-token. tod config path gibt den verwendeten Pfad aus.
Die Konfigurationsdatei wird an folgenden Orten gesucht (der erste Treffer zählt):
$XDG_CONFIG_HOME/tod/config~/.config/tod/config~/.todconfig(Legacy-Fallback)
Sie verwendet das INI-Format und wird mit dem Modus 0600 geschrieben:
server-url=https://onedev.example.com
access-token=your-personal-access-tokenSchnellstart
# Run CI against your uncommitted changes
cd /path/to/onedev-git-repository
tod build run --local ci
# Run ci job against the main branch
tod build run --branch main ci
# Check out pull request PROJ-123 into the current working directory
tod pr checkout PROJ-123
# Query open issues assigned to you
tod issue list --query 'assignee is me and state is "Open"'
# Inspect the most recent failing build for a project
tod build list --query 'successful is false' --count 1
tod build get <ref>
tod build get-log <ref>Siehe cli.md für die vollständige Befehlsreferenz.
Agent-Skills
TOD liefert vier tool-agnostische SKILL.md-Dateien unter skills/, die KI-Agenten beibringen, wie sie gängige OneDev-Workflows über die CLI steuern können:
using-tod— allgemeiner Leitfaden für jede OneDev-Interaktion übertodedit-build-spec— Erstellen oder Bearbeiten von.onedev-buildspec.ymlinvestigate-build-problems— Debuggen eines fehlerhaften Buildsreview-pull-request— Durchführen eines strukturierten Pull-Request-Reviews
Siehe skills.md für Informationen zur Installation in Claude Code, Cursor oder jeden anderen Agenten, der SKILL.md-Dateien liest.
Hinweise für lokale CI-Läufe
Nginx-Konfiguration
Wenn OneDev hinter Nginx läuft, deaktivieren Sie das HTTP-Buffering für das Log-Streaming:
location /~api/streaming {
proxy_pass http://localhost:6610/~api/streaming;
proxy_buffering off;
}Weitere Details finden Sie in der OneDev Nginx-Setup-Dokumentation.
Sicherheitshinweise
Wenn der Job auf Job-Secrets zugreift, stellen Sie sicher, dass das Autorisierungsfeld gelöscht ist, um alle Jobs zuzulassen. Die Autorisierung auf alle Branches zu beschränken reicht nicht aus — lokale Änderungen werden auf eine temporäre Referenz gepusht, die zu keinem Branch gehört.
Performance-Tipps
Große Repositories — verwenden Sie eine geeignete Clone-Tiefe in Checkout-Schritten anstelle der vollständigen Historie.
Externe Abhängigkeiten — verwenden Sie Caching für Downloads und Zwischendateien.
Build-Optimierung — cachen Sie langsam zu generierende Zwischendateien.
Mitwirken
TOD ist Teil des OneDev-Ökosystems. Für Beiträge, Probleme und Funktionsanfragen besuchen Sie das OneDev-Projekt.
Lizenz
Siehe license.txt.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -licenseBqualityNot gradedmaintenanceEnables comprehensive Git and GitHub operations through 30 DevOps tools including repository management, file operations, workflows, and advanced Git features. Provides complete Git functionality without external dependencies for seamless integration with Gitea and GitHub platforms.18819
- AlicenseBqualityAmaintenanceEnables AI assistants to interact with Alibaba Cloud Yunxiao DevOps platform for managing projects, code repositories, work items, pipelines, deployments, and testing workflows through comprehensive organization, development, and delivery tools.773,216156Apache 2.0
- AlicenseNot gradedqualityDmaintenanceAutomates iteration management and code review submission workflows with DingTalk authentication. Supports interactive 5-step iteration creation, Git integration, smart time estimation, and automatic submission to company CodeReview systems.411ISC
- AlicenseNot gradedqualityDmaintenanceAutomates routine DevOps tasks like Jenkins builds and GitLab merge requests through the MCP protocol, simplifying daily operations.201MIT
Related MCP Connectors
Multi-CI security scanner with a live threat-intel feed of compromised CI components
One PAT, any MCP agent: Vercel, GitHub, Cloudflare, Supabase, GCP — unified dev infra gateway.
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/theonedev/tod'
If you have feedback or need assistance with the MCP directory API, please join our Discord server