Skip to content
Engineering

Connecting Your Agents: BYOB CLI & MCP Integrations

BYOB Team

BYOB Team

Updated: · Added fit guide, comparison table, and hands on notes; Content upgrade September 2026: added trade-offs section and converted statement H2s to question form
9 min read

Coding agents turn generic without project context, and MCP fixes that with a standard protocol. This guide connects Codex, Claude Code, and Gemini agents to BYOB through one command installers, explains the tools and resources the bridge exposes, and covers the approval, skills, and telemetry details.

Key takeaways

  • • MCP is an open protocol where servers expose tools, resources, and prompts to agents over JSON RPC, replacing one off integrations
  • • One command installers per agent handle OAuth device flow, config files, and skill sync with the project ID pre filled
  • • Agents gain live context like preview URLs, workspaces, and synced AIR skills instead of guessing conventions
  • • The dashboard Approve agent step closes the authorization loop and grants stay account scoped
  • • Credentials stay local with redacted diagnostics, and workspace SSH covers direct IDE access
Connecting Your Agents: BYOB CLI & MCP Integrations

Connect your favorite AI coding agents with BYOB ->

Illustration of a terminal window bridging modular blocks with plug connectors
Illustration of a terminal window bridging modular blocks with plug connectors

How do you connect agents with BYOB CLI and MCP? #

Coding agents are only as good as their context. Out of the box, most agents know nothing about your deployments, your database state, your environments, or your project conventions. They guess. Sometimes the guesses compile.

Think of MCP as a universal adapter for agent context. Before it, every data source needed its own custom wiring, like traveling with a bag of country-specific plugs. Anthropic open-sourced the Model Context Protocol in late 2024 precisely to replace those fragmented integrations with one standard (https://www.anthropic.com/news/model-context-protocol). BYOB CLI builds on that standard to plug your agents straight into your projects.

Agent Install command After install
Codex npx byob cli codex install Approve in dashboard
Claude Code npx byob cli claude install Approve in dashboard
Gemini npx byob cli gemini install Approve in dashboard
OpenCode npx byob cli opencode install Approve in dashboard
Any agent byob projects listing Verify account scope
flowchart LR A[Run one-command installer] --> B[OAuth device flow] B --> C[Approve agent in dashboard] C --> D[Sync AIR skills to local env] D --> E[Agent discovers tools & resources] E --> F[Agent reads preview URLs & workspaces] F --> G[Agent acts via MCP bridge] G --> H[Local credentials & redacted telemetry]

[!TIP] Try it: JSON Formatter

Try it right here: json formatter validatorOpen full tool

Loading the interactive tool… or open it here.

What does MCP standardize? #

The spec defines an open protocol for connecting LLM applications with external data and tools over JSON-RPC (https://modelcontextprotocol.io/specification/2026-07-28). Three roles participate: hosts are the LLM applications, clients are connectors inside them, and servers provide context and capabilities. The design borrows from the Language Server Protocol, which solved the same fragmentation problem for programming language tooling years earlier.

Servers expose three features. Tools are functions the model can invoke, like querying a database or triggering a deploy. Resources are data the model can read, like files, schemas, or environment details, each identified by URI. Prompts are templated messages and reusable workflows. That trio covers nearly everything an agent needs: the ability to see, the ability to act, and the ability to follow a playbook.

Two details from the spec matter for daily use. Tools are model-controlled, meaning the language model discovers and calls them from context, but the spec urges a human in the loop with visible indicators and confirmation prompts for consequential operations (https://modelcontextprotocol.io/specification/2026-07-28/server/tools). Resources are application-driven, with hosts deciding how to surface them, from explicit pickers to automatic inclusion (https://modelcontextprotocol.io/specification/2026-07-28/server/resources). BYOB CLI respects both: the agent proposes, you approve, and project context arrives without copy pasting.

How does the BYOB bridge work? #

Installing the BYOB CLI spins up a local MCP server that bridges your agent and the BYOB control plane. Your agent gains tools like database inspection and deployment plus resources like preview URLs, active workspaces, and synced coding skills.

A natural language request like "check my database schema and deploy this project" stops being a fantasy. The agent routes the database half to a schema tool and the deploy half to a deploy tool, both speaking the same protocol. No plugins per agent. No bespoke glue per project. One bridge, every supported agent.

How do one-command installers work? #

Each supported agent gets a dedicated installer that handles OAuth, configuration, and skill syncing. Copy the command from the Agent Connections tab in your Project Control Center, where it arrives pre-filled with your project ID.

Codex:

bash
npx -y byob-cli codex install --project-id YOUR_PROJECT_ID

This triggers the OAuth device flow, configures the Codex config file, and installs the BYOB skill into the agent skills directories.

Claude Code:

bash
npx -y byob-cli claude install --project-id YOUR_PROJECT_ID

This registers the MCP server in the Claude configuration and installs the shared skill alongside it.

Antigravity (Gemini):

bash
npx -y byob-cli gemini install --project-id YOUR_PROJECT_ID

This writes the MCP server config and installs the shared skill into the agent skills path.

OpenCode:

bash
npx -y byob-cli opencode install --project-id YOUR_PROJECT_ID

After running the installer locally, click Approve agent in the dashboard. That click closes the authorization loop: the device flow proves who you are, the approval binds the agent to the project, and grants stay scoped to your account. Until you approve, the agent waits outside. That ordering is deliberate.

How do synced AIR coding skills work? #

Tools let the agent act. Skills teach it how your project thinks.

Running an installer, or a manual skill sync, downloads BYOB AIR coding skills into the local agent environment. These skills carry reusable implementation knowledge for the core stacks: SvelteKit and UI quality standards, Cloudflare D1 patterns, Better Auth with magic links, and payment orchestration. The agent writes code matching BYOB production conventions instead of hallucinating generic boilerplate that you rewrite later.

This is the difference between a contractor who read your handbook and one who is winging it. Same hourly rate. Very different pull requests.

You can also authenticate without linking an agent by running the standalone login, which starts the device flow and stores credentials for direct CLI usage.

How do multiple projects and targeting work? #

Grants are account-scoped, so one approval covers your access while individual commands target specific projects. The agent passes the project ID through the MCP server per request. To see what your account can reach, list projects directly:

bash
byob projects

For direct IDE access instead of agent mediation, install the workspace SSH configuration and connect VS Code or Cursor straight to the underlying environment:

bash
npx -y byob-cli workspace ssh-config --install --project-id YOUR_PROJECT_ID

Two doors into the same room. Agents use the protocol door. Humans use SSH. Both respect the same grants.

How are security and local telemetry handled? #

Credentials stay on your machine. The CLI stores the OAuth token locally and records compact diagnostics like command outcomes and durations in a local telemetry file. Project IDs, URLs, emails, tokens, and raw server errors are explicitly redacted from those diagnostics. Telemetry can be disabled entirely with one command.

The posture matches the protocol philosophy: least privilege, local secrets, explicit approval. An agent with deploy tools is powerful, which is exactly why the approve click, the scoped grants, and the redacted logs exist. Power with receipts.

What do you do when the connection misbehaves? #

Three fixes cover most bad days. If the agent cannot see tools, confirm the MCP server block actually landed in the agent config file and restart the agent process, since most agents read that config once at startup. If approval never completes, check that the project ID in the install command matches the project open in the dashboard, then rerun the device flow. If the agent acts on stale context, ask it to re-list resources or restart the session rather than arguing with yesterday state. Config, identity, freshness. In that order, every time.

What are the trade-offs? #

Wiring agents through MCP replaces copy pasted context with live tools. Standards help, and they add surface.

Where this path wins Where it loses
One open protocol (https://modelcontextprotocol.io/specification/2026-07-28) replaces per agent glue, with tools and resources split the way the spec intends (https://modelcontextprotocol.io/specification/2026-07-28/server/tools) (https://modelcontextprotocol.io/specification/2026-07-28/server/resources) Each agent still has quirks in config paths and approval UX, so setup help varies by tool
One command installers plus synced skills mean the agent follows project conventions instead of inventing them Credentials live on your machine and grants need dashboard approval, which slows a first run
Human in the loop stays the default for consequential calls, per the spec's own guidance The bridge only knows what the server exposes. Unusual local setups still need manual context

Pick the alternative, pasting context by hand or calling the API directly, for one off tasks where install cost exceeds the payoff. For daily work across projects, the bridge pays back within the week.


What we learned building this #

The BYOB CLI starts a local MCP server that exposes tools and resources like preview URLs and workspace tables, a bridge you see wired through src/routes and the control plane. The installer syncs AIR skills into the agent env so SvelteKit and D1 patterns match production, and credentials stay local. We verify the landing page at https://byob.studio returns 200 before handing project context to the model.

Who this is for (and who should skip it) #

This guide helps if you use an AI coding agent and want live project context like preview URLs and skills instead of copy paste.

If you work only in the BYOB editor and never bring an external agent, you can skip the MCP bridge and stay with chat prompts.

One limit to know. External agents only help when they point at the right project and preview URL. A common mistake is sharing connection details too broadly or skipping revocation when a machine is lost, which leaves access open.

  • Best for developers connecting external AI agents to live BYOB projects.
  • Best for agencies skipping copy paste with shared preview context.
  • Best for startups keeping agent work tied to real project state.

The payoff #

A connected agent stops being a code generator and starts behaving like a team member. It sees the schema before suggesting the migration. It knows the preview URL before describing the change. It follows the project conventions because they arrived as skills, not as hopes.

Run one installer tonight, approve it, then ask the agent something that requires live context, like the current database tables or the latest preview link. The moment it answers from your project instead of its training data, the bag of adapters goes in the drawer for good.

Explore the BYOB CLI documentation and connect your agent today ->

How we picked these

Walked the per agent install and dashboard approval flow described in the post and compared protocol claims against MCP specification, MCP tools, MCP resources, and Anthropic MCP announcement, checking each listed source link.

Frequently asked questions

How do I connect Codex or Claude Code to BYOB?

Run the per agent install command carrying your project ID, then click Approve agent in the dashboard to complete the OAuth loop

What does MCP actually standardize?

A JSON RPC protocol where hosts, clients, and servers exchange tools the model can call, resources the model can read, and prompts for reusable workflows

How do agents learn BYOB conventions?

The installer syncs AIR coding skills into the local agent environment, covering SvelteKit standards, D1 patterns, auth, and payments

How are multiple projects handled?

Grants are account scoped with per command project targeting, and a project listing command shows what the account can reach

Where do credentials live?

Locally on your machine, with compact diagnostics redacting IDs, URLs, emails, tokens, and raw errors, plus an opt out for telemetry

About the Author

BYOB Team

BYOB Team

The creative minds behind BYOB. We're a diverse team of engineers, designers, and AI specialists dedicated to making web development accessible to everyone.

Ready to start building?

Join thousands of developers using BYOB to ship faster with AI-powered development.

Get Started Free