MCP Onedev

MCPAI代理

提供方 theonedev

AI代理 未标注 API Key 社区 / 第三方

Interact with OneDev for CI/CD spec editing, pull request review, and issue workflow automation etc.

一句话选型结论

按资料字段整理

MCP Onedev 属于AI代理类 MCP 服务器,传输方式未标注,API Key,没有现成安装命令,需按官方文档接入。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类AI代理 传输方式未标注 鉴权API Key 部署方式未标注
GitHub 星标 未标注 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

AI代理
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

安装与配置

未标注 API Key
上游未给出传输方式
  1. 1
    准备运行环境

    按官方文档确认运行环境(常见为 Node.js 或 Python),装好后再执行安装命令。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
给代理接外部能力

让代理在任务中途调用搜索、数据库等真实工具。

多步任务编排

把一串操作拆成步骤,由代理按顺序执行。

自动化重复流程

把固定流程交给代理跑,减少手工操作。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 基础信息齐全,可以先按官方文档接入试跑。

先想清楚的地方

  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 使用前要准备好API Key对应的凭据,并按最小权限配置。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在AI代理场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
MCP Onedev当前 未标注 未标注 未标注 无 2026-05-17
Filesystem 560c4363 13 未标注 本地部署 无 2026-05-17
Server Everything (everything) 11 stdio · 本地进程 本地部署 有 2026-05-17
Time 7365cb6d 2 SSE · 服务端推送 远程部署 有 2026-05-18
Everything Claude Code 未标注 stdio · 本地进程 本地部署 有 2026-05-17
Openmemory 557e1585 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

AI代理
字段来自项目仓库与公开索引,中文说明由本站标注
提供方theonedev上游标注的维护方 theonedev
分类AI代理本站按上游分类展示
连接方式未标注上游未给出传输方式
鉴权方式API Key远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型未标注上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

8.0 KB
来自项目仓库与上游目录的原文,未做删改

TOD - TheOneDev CLI Tool

TOD (TheOneDev) is a powerful command-line tool for OneDev 16.9.5+
that streamlines your development workflow by letting you run CI/CD jobs
against local changes, check out pull requests into a local working
directory, query and edit issues/PRs/builds, and drive all of the above from
AI agents via shipped skill files.

Features

  • Query and edit OneDev entities — issues, pull requests, and builds —
    directly from the shell.
  • Inspect build diagnostics including logs, recent changes, and code
    problem reports.
  • Run CI/CD jobs against local changes, branches, or tags with real-time
    log streaming (tod build run --local, --branch, or --tag).
  • Check out issues and pull requests locally (tod issue checkout,
    tod pr checkout), including already retrieved submodules.
  • Check and migrate .onedev-buildspec.yml to the latest version
    (tod build check-spec).
  • Agent skills under skills/ that teach Claude Code, Cursor,
    and other SKILL.md-aware agents to drive OneDev workflows via tod.
  • Cross-platform support (Windows, macOS, Linux).

Installation

macOS, Linux, and FreeBSD```bash

curl -fsSL 'https://code.onedev.io/onedev/tod/~raw?revision=main&file=install.sh' | bash


The script detects your platform and architecture, downloads the matching
binary, and installs it to a directory on your `PATH` (overwriting an existing
`tod` if one is already installed). To choose a different location, set
`INSTALL_DIR`:```bash
curl -fsSL 'https://code.onedev.io/onedev/tod/~raw?revision=main&file=install.sh' | INSTALL_DIR="$HOME/bin" bash

Windows```powershell

irm 'https://code.onedev.io/onedev/tod/~raw?revision=main&file=install.ps1' | iex


The script downloads `tod.exe` for your architecture and installs it to a
directory on your `PATH` (overwriting an existing install if found). To choose
a different location:```powershell
$env:INSTALL_DIR = "$HOME\bin"; irm 'https://code.onedev.io/onedev/tod/~raw?revision=main&file=install.ps1' | iex

Build from source

Requirements: Go 1.22.1 or higher.```bash
git clone https://code.onedev.io/onedev/tod.git
cd tod
go build


## Configuration

Run `tod config set` to create or update the config file interactively. Each
property is prompted for in turn — the current server URL is shown in
`[brackets]` as a default (press Enter to keep it, or type a new value to
replace it), and the access-token prompt is always blank (press Enter to
keep the existing token, or type a new one to replace it):```bash
tod config set
# OneDev server URL [https://onedev.example.com]: ...
# OneDev personal access token (press Enter to keep existing): ...

For scripts and other non-interactive setups, pass the property name and
value positionally to update one property at a time without prompts:```bash
tod config set server-url https://onedev.example.com
tod config set access-token your-personal-access-token
tod config set trust-certs-file /path/to/trust-certs.pem


`tod config get` prints the active configuration (with the token redacted)
and `tod config get ` prints a single property. Property
names are `server-url`, `access-token`, and `trust-certs-file`.
`tod config path` prints the path being used.

Set `trust-certs-file` when the OneDev server uses a self-signed certificate
or a CA root not trusted by your system. The file should contain one or more
Base64 encoded PEM certificates, beginning with
`-----BEGIN CERTIFICATE-----` and ending with `-----END CERTIFICATE-----`.

The config file is searched at the following locations (first match wins):

1. `$XDG_CONFIG_HOME/tod/config`
2. `~/.config/tod/config`

It uses INI format and is written with mode `0600`:```ini
server-url=https://onedev.example.com
access-token=your-personal-access-token
trust-certs-file=/path/to/trust-certs.pem

The ONEDEV_SERVER_URL, ONEDEV_ACCESS_TOKEN, and
ONEDEV_TRUST_CERTS_FILE environment variables override their corresponding
config-file properties.

Quick start```bash

Run CI job 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

Check out issue PROJ-456 into the current working directory

tod issue checkout PROJ-456

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 'not(successful)' --count 1
tod build get <ref>
tod build get-log <ref>


API commands also work outside a local checkout. Use qualified references for
existing entities and explicit projects when creating issues, pull requests,
or builds:```bash
tod issue get &#x27;myproject#123&#x27;
tod issue create &#x27;Fix login&#x27; --project myproject
tod issue create-branch &#x27;myproject#123&#x27;
tod pr create &#x27;Fix login&#x27; --source-project myproject --source-branch issue-123
tod build run ci --project myproject --branch main

Issue, pull request, and build lists query all accessible projects when neither
--project nor a current project inferred from the working directory is
available.

Both checkout commands also move already retrieved submodules to the commits
recorded by the checked out revision, fetching from the remote of the submodule
when a commit is missing locally. Submodules that have not been retrieved stay
untouched; retrieve them with git submodule update --init when needed.

See cli.md for the full command reference.

Agent skills

TOD ships eight tool-agnostic SKILL.md files under skills/ that
teach AI agents how to drive common OneDev workflows through the CLI:

  • using-tod — perform general OneDev queries and actions
  • edit-build-spec — author and validate .onedev-buildspec.yml
  • fix-failed-build — fix a failed build from a prompt-provided build
    reference
  • generate-commit-message — compose a message that satisfies OneDev
    requirements
  • work-on-issue — check out and implement issue work
  • submit-issue-work — submit issue code changes and/or saved comments,
    updating or creating a pull request when submitting code
  • work-on-pull-request — review a pull request or implement follow-up work
  • submit-pull-request-work — submit code changes and/or saved discussion,
    review, and merge actions for an existing pull request

See skills/README.md for how to install these into Claude
Code, Codex, Cursor, or any other agent that reads SKILL.md files.

Notes for local CI runs

Nginx configuration

If OneDev is running behind Nginx, disable HTTP buffering for log streaming:nginx location /~api/streaming { proxy_pass http://localhost:6610/~api/streaming; proxy_buffering off; }

See the OneDev Nginx setup documentation
for details.

Security considerations

If the job accesses job secrets, make sure the authorization field is cleared
to allow all jobs. Setting authorization to allow all branches is not
sufficient — local changes are pushed to a temporal ref that does not belong
to any branch.

When initialized submodules contain local changes, tod build run --local
collects and sends their snapshots recursively before sending the parent
repository. A submodule that needs to be sent must point to a project on the
configured OneDev server, and the access token must have permission to push to
that project. When the command is started anywhere inside a submodule, it uses
the outermost superproject as its working directory by default. Pass
--working-dir explicitly to run against the submodule itself.

Performance tips

  1. Large repositories — use an appropriate clone depth in checkout steps
    instead of full history.
  2. External dependencies — use
    caching for downloads
    and intermediate files.
  3. Build optimization — cache slow-to-generate intermediate files.

Contributing

TOD is part of the OneDev ecosystem. For contributions, issues, and feature
requests, visit the OneDev project.

License

See license.txt.

常见问题

5 问
答案由本站依据条目字段整理,不引用上游原文
MCP Onedev 怎么安装?

资料没有给出安装命令,请到官方仓库或文档按说明接入;这类条目多数是生态应用,或尚未发布可安装包。

MCP Onedev 怎么在客户端里配置?

它的传输方式未标注,在客户端 MCP 配置里按官方文档填写启动命令和参数,保存后重启客户端生效。

MCP Onedev 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

MCP Onedev 需要 API Key 吗?

资料标注需要API Key认证,使用前准备好对应凭据,并按最小权限配置。

MCP Onedev 能提供哪些能力?

资料显示能力标签包括 API密钥、AI代理、工作流自动化。具体工具清单以官方文档为准。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。