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 分