Codebahn

io.github.codebahn由 GitHub 账号 codebahn 发布v0.4.2更新于 Oct 25, 2026

Codebahn is the private GitHub alternative: fast Git and CI for developers and teams.

已验证Streamable HTTP可网页运行云端与基础设施开发者工具

概览

AI 生成的概览

Codebahn 的托管 MCP 服务器把 AI 编程助手连接到私有 Git 平台,可操作仓库、议题、拉取请求、CI、发布与搜索。

可以做什么
创建、列出和读取仓库、文件、分支、提交、差异及引用比较,并搜索代码、仓库、议题和拉取请求;创建、列出和合并拉取请求,查看差异、提交和评审;创建和列出议题,管理评论、标签和里程碑;触发 CI 工作流、列出运行、读取日志并管理密钥和变量;管理发布、附件、标签、Webhook 和分支保护。
适用场景
适合让助手直接处理团队托管在 Codebahn 上的代码:逐个提交评审拉取请求、提交或分类议题、查看 CI 运行与日志,或在对话中完成发布。
运行要求
需要在 MCP 客户端中添加远程端点 codebahn.net/mcp,首次使用时在浏览器中完成 OAuth 登录授权。MCP 端点本身不需要 API 密钥或环境变量。
安装前请注意
该服务器可以写入和修改数据:创建与合并拉取请求、创建议题和评论、触发 CI 工作流、管理密钥和变量、发布、Webhook 及分支保护。OAuth 授权会访问你的 Codebahn 账户,请只批准你需要的权限范围。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Codebahn,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.codebahn%2Fcodebahn/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "codebahn": {
      "type": "http",
      "url": "https://codebahn.net/mcp"
    }
  }
}

README

Codebahn CLI

Codebahn is the private GitHub alternative: fast Git and CI for developers and teams. Your code is stored and served. Not scanned, not trained on, not tracked. Swedish company, EU-only infrastructure, every sub-processor EU-incorporated. Built on Forgejo, easy to leave.

Command-line interface for Codebahn.

codebahn auth logincodebahn pr listcodebahn issue create --title "ship it"codebahn ci dispatch --workflow ci.yml

One binary. OAuth login. No config files.

Install

Linux and macOS

bash
curl -fsSL https://releases.codebahn.net/cli/install.sh | sh

This detects your platform, downloads the latest binary, verifies its SHA256 checksum, and installs to ~/.local/bin. Override the location with INSTALL_DIR:

bash
curl -fsSL https://releases.codebahn.net/cli/install.sh | INSTALL_DIR=/usr/local/bin sh

Windows

powershell
irm https://releases.codebahn.net/cli/install.ps1 | iex

This downloads the latest binary, verifies its SHA256 checksum and GPG signature (if gpg is installed), installs to %LOCALAPPDATA%\Programs\codebahn, and adds it to your PATH. Override the install location with $env:INSTALL_DIR. Restart your terminal after install.

From source

Install from source (note: source builds skip auto-update):

bash
go install github.com/codebahn/codebahn-cli/cmd/codebahn@latest

Updates

The CLI checks for new versions once every 24 hours and prints a notice when one is available. To update in place:

bash
codebahn update

This downloads the new binary from releases.codebahn.net, verifies its GPG signature and SHA256 checksum, and replaces itself. No external tools required.

To check without installing: codebahn update --check. To silence the periodic check: set CODEBAHN_NO_UPDATE_CHECK=1 or add "check_updates": false to the config file (~/.config/codebahn/config.json, or %APPDATA%\codebahn\config.json on Windows).

Authentication

Log in through the browser. Tokens are saved to ~/.config/codebahn/config.json (%APPDATA%\codebahn\config.json on Windows).

bash
codebahn auth logincodebahn auth status

For CI, set CODEBAHN_TOKEN instead.

Commands

GroupWhat
repoCreate, list, read files, branches, commits, diffs, compare refs
issueCreate, list, comment, labels, milestones
prCreate, list, merge, diff, commits, reviews
ciDispatch workflows, list runs, read logs, secrets/variables
releaseReleases, attachments, tags
webhookManage webhooks
protectionManage branch protections
searchCode, repos, issues

When you run inside a Git repo, --owner and --repo are detected from the remote.

bash
codebahn pr merge --index 42 --style squashcodebahn repo cat --ref main --filePath README.mdcodebahn ci logs --run_id 7

Review a pull request commit by commit:

bash
codebahn pr commits --index 42codebahn repo show --sha 1a2b3c4 --file_path internal/foo.gocodebahn repo compare --base main --head feat/foocodebahn repo log --path internal/foo.go --limit 10

Every subcommand accepts --help.

MCP and AI agents

Codebahn has a built-in, hosted MCP server that connects AI coding agents to your repos, issues, pull requests, and CI:

https://codebahn.net/mcp

The tools/ package in this repo is the shared source of truth for both this CLI and the MCP endpoint. 103 tools, one set of types, zero drift.

The server authenticates over OAuth, discovered via /.well-known/oauth-protected-resource. Add the URL to your MCP client and approve the OAuth prompt in your browser on first use.

Claude Code

bash
claude mcp add --transport http codebahn https://codebahn.net/mcp

Codex

bash
codex mcp add codebahn --url https://codebahn.net/mcp

VS Code (Copilot)

Create .vscode/mcp.json in your project root:

json
{  "servers": {    "codebahn": {      "type": "http",      "url": "https://codebahn.net/mcp"    }  }}

Cursor

Create .cursor/mcp.json in your project root:

json
{  "mcpServers": {    "codebahn": {      "type": "http",      "url": "https://codebahn.net/mcp"    }  }}

Full docs: codebahn.net/docs/mcp/.

Release infrastructure

Codebahn is an EU-hosted Git platform. We apply that principle to our own tooling: the CLI's release artifacts are hosted on our own EU infrastructure, not on GitHub or any third-party CDN.

How releases work:

  1. Source code lives here on GitHub (public, for discoverability).
  2. When we tag a release, GitHub Actions cross-compiles binaries for Linux and macOS (amd64 and arm64).
  3. The workflow uploads the binaries, a SHA256 checksums file, and a detached GPG signature to Scaleway Object Storage in fr-par (Paris, France), served at releases.codebahn.net.
  4. codebahn update fetches from releases.codebahn.net. It never contacts GitHub.

Release artifacts are hosted on our own EU infrastructure so the CLI's update check stays within the EU. Source code is on GitHub because it's the standard home for open-source projects. GitHub Actions compiles the public source; no customer data is involved in the build.

Verifying releases

Every release includes a checksums.txt file signed with our GPG release key. The CLI verifies both the signature and the checksum automatically during codebahn update.

To verify manually:

bash
# Import the public keycurl -sS https://codebahn.net/release-signing-key.asc | gpg --import
# Download and verifycurl -O https://releases.codebahn.net/cli/v0.1.0/checksums.txtcurl -O https://releases.codebahn.net/cli/v0.1.0/checksums.txt.ascgpg --verify checksums.txt.asc checksums.txt
# Check the binarysha256sum -c checksums.txt --ignore-missing

The public key is also embedded in the CLI binary itself, so codebahn update does not need to fetch it separately.

Cutting a release

Tag and push:

bash
git tag v0.1.0git push origin v0.1.0

The GitHub Actions workflow runs tests, builds with GoReleaser (parallel cross-compilation, GPG signing), and uploads everything to releases.codebahn.net. The latest.json manifest is updated so existing installs pick up the new version within 24 hours.

For a local release (bypassing CI): ./scripts/release.sh v0.1.0. Requires goreleaser, gpg (with the release key), and aws CLI configured for Scaleway.

Contributing

See CONTRIBUTING.md.

License

MIT

来源:README.md,提交 1e6094f

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

5
  1. v0.4.2最新Oct 22, 2026
  2. v0.4.1Oct 13, 2026
  3. v0.4.0Oct 6, 2026
  4. v0.3.1Sep 23, 2026
  5. v0.2.2Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分