# BareCI > BareCI takes a pull request from its first push to its merge: CI on fast machines, tests from an agent's worktree, previews, AI end-to-end Flows, every reviewer's findings in one list, and one answer to "is this ready to merge?". Agents use it over MCP, a CLI or the /v1 JSON API. Connect an agent: MCP over Streamable HTTP at https://api.bareci.com/mcp with `Authorization: Bearer ` (protocol 2026-07-28, and the initialize handshake of 2025-11-25 and earlier). Get a token with `bareci login`. Every tool result names the next action. Every docs page is also Markdown: add `.md` to its URL or send `Accept: text/markdown`. - [Everything in one file](https://bareci.com/llms-full.txt): every docs page and every tool in full ## Start - [BareCI docs](https://bareci.com/docs.md): BareCI takes a pull request from its first push to its merge. Start here for setup, each module, the CLI, MCP for agents and the API reference. - [Getting started](https://bareci.com/docs/getting-started.md): Set a repository up with bareci init, check it with bareci doctor, and run its tests on a BareCI machine with bareci run. - [The pull request lifecycle](https://bareci.com/docs/concepts/lifecycle.md): How BareCI's modules fit together from the first push to the merge, and how the Gate turns them into one verdict. - [Organisations, tokens and spend](https://bareci.com/docs/concepts/accounts.md): How BareCI organisations follow GitHub, how agent tokens and scopes work, and how usage, the free tier and the hard monthly cap are counted. ## Modules - [Runners](https://bareci.com/docs/modules/runners.md): Run GitHub Actions jobs on fresh BareCI machines. Labels, sizes, hot, warm and cold tiers, images, the spend cap, fallback and repair. - [Runs](https://bareci.com/docs/modules/runs.md): Run any command from a worktree on a fresh BareCI machine with bareci run or the run_create tool. Upload, logs, artifacts, shards, limits and lifecycle. - [Tests](https://bareci.com/docs/modules/tests.md): How BareCI keeps JUnit results from every job and run, flags flaky tests, ranks the slowest and balances shards by recorded duration. - [Flows](https://bareci.com/docs/modules/flows.md): Write end-to-end tests as user goals in plain language. A model drives a real browser, steps are recorded, and CI replays them with no model call. - [Previews](https://bareci.com/docs/modules/previews.md): Keep a job's machine serving the change at its own private URL until its TTL, the branch's next push or the merge. Access tokens, lifetime and billing. - [Reviews](https://bareci.com/docs/modules/reviews.md): Gather findings from CodePanel, GitHub review bots, people and webhooks into one deduplicated list. Fix or dispute each, and BareCI answers the reviewer. - [Gate](https://bareci.com/docs/modules/gate.md): BareCI ready is one GitHub check per pull request head, green only when every enabled module agrees, with every reason it is not and the command that fixes it. - [Deploys](https://bareci.com/docs/modules/deploys.md): Run deploy jobs on BareCI's isolated on-demand machines, from the default branch or branches you list, with secrets as on GitHub-hosted runners. - [API budget](https://bareci.com/docs/modules/api-budget.md): How BareCI keeps many agents on one repository within GitHub's API limits by answering from webhooks and budgeting its own calls per installation. - [Spend](https://bareci.com/docs/modules/spend.md): What BareCI charges for, the monthly cap, budgets per run, pull request and repository, alerts and webhooks, and reading spend from the CLI, MCP or API. ## For agents - [MCP setup](https://bareci.com/docs/agents/mcp.md): Connect a coding agent to BareCI's MCP server over Streamable HTTP with an agent token, and run the local server for live browser tools. - [Docs for agents](https://bareci.com/docs/agents/llms.md): Every BareCI docs page as Markdown, llms.txt and llms-full.txt, and content negotiation with Accept text/markdown, all generated from the same sources. - [Wait on a pull request](https://bareci.com/docs/agents/wait.md): Hold one request on BareCI until a pull request's checks finish, it is ready, enters the merge queue, merges, closes or changes, instead of polling GitHub. - [CLI](https://bareci.com/docs/cli.md): The bareci command line: sign-in, init, runs, the Gate, findings, previews, spend, flows, the local MCP server and docs, with flags and exit codes. ## API reference - [API reference](https://bareci.com/docs/api.md): Every BareCI tool, over MCP and the /v1 JSON API: 31 tools in 8 groups, with arguments, answers, routes and scopes. - [Account API](https://bareci.com/docs/api/account.md): Who you are, your organisation's spend and cap, and repository settings. Every tool's arguments, answer, route and scope. - [Runs API](https://bareci.com/docs/api/runs.md): Run any command from your worktree on a fresh BareCI machine, and stream its output. Every tool's arguments, answer, route and scope. - [Tests API](https://bareci.com/docs/api/tests.md): Flaky and slow tests from every job and run, and duration-balanced shards. Every tool's arguments, answer, route and scope. - [Previews API](https://bareci.com/docs/api/previews.md): The change running at its own URL, until its TTL, the next push or the merge. Every tool's arguments, answer, route and scope. - [Flows API](https://bareci.com/docs/api/flows.md): AI end-to-end tests in plain language, recorded and replayed with no model in CI, and a live browser to write them. - [Reviews API](https://bareci.com/docs/api/reviews.md): Every reviewer's findings in one list; fix or dispute each, and BareCI answers the reviewer. Every tool's arguments, answer, route and scope. - [Gate API](https://bareci.com/docs/api/gate.md): One answer to "is this ready to merge?", with every reason it is not yet. Every tool's arguments, answer, route and scope. - [Runners API](https://bareci.com/docs/api/runners.md): GitHub Actions jobs on BareCI machines: why a job waits, and how the pools do. Every tool's arguments, answer, route and scope. ## Optional - [BareCI for agents: MCP server, CLI and agent-readable docs](https://bareci.com/agents): Agents use all of BareCI through an MCP server, a CLI that prints JSON, and docs in Markdown and llms.txt. Every answer is structured and names the next action. - [BareCI pricing: usage-based, with a hard monthly cap](https://bareci.com/pricing): BareCI bills by usage: machine time, preview time and Flows model tokens. A free tier needs no card, and every organisation sets its own hard monthly cap. - [BareCI changelog](https://bareci.com/changelog): What has changed in BareCI: modules, the CLI, the MCP server and the docs, newest first. - [BareCI vs GitHub-hosted runners](https://bareci.com/compare/github-hosted-runners): What changes when GitHub Actions jobs move from GitHub-hosted runners to BareCI: baked images, hot pools, a hard spend cap and fallback, and agent test runs. - [BareCI vs running your own self-hosted runners](https://bareci.com/compare/self-hosted-runners): Self-hosted runners give control and leave you the machines, images and cleanup. BareCI keeps the control, with a fresh machine per job and a hard cap. - [CI for AI coding agents](https://bareci.com/solutions/ci-for-ai-coding-agents): Coding agents push all day and wait on CI built for people. BareCI gives them test runs from the worktree, structured answers over MCP and one merge verdict. - [AI end-to-end testing that CI can trust](https://bareci.com/solutions/ai-end-to-end-testing): Write end-to-end tests as goals in plain language. A model drives the browser once, the actions are recorded, and CI replays them exactly with no model call. - [Manage findings from every AI code reviewer in one place](https://bareci.com/solutions/ai-code-review-findings): Several review bots and people each report in their own format. BareCI merges their findings into one list that agents work through, and answers each reviewer.