---
title: "Messaging from OpenCode."
canonical: "https://bird.com/ai/opencode"
---

# Messaging from OpenCode.

Build customer messaging into your application and investigate delivery failures with the Bird plugin in your terminal.

[Get Started](/dashboard/signup)

[Contact Sales](/demo)

## From prompt to delivered.

Send messages and check delivery from your code, terminal, or AI assistant.

**MCP**: `Bird MCP`

Connect this hosted MCP endpoint with an [MCP client](/docs/ai/mcp-server#connect-a-client), then complete OAuth sign-in to your Bird workspace.

Example prompt: Send a welcome email to delivered@messagebird.dev from onboarding@messagebird.dev, then check it arrived.

```text
https://mcp.bird.com
```

Examples: [MCP](/ai/opencode.mcp.md) · [CLI](/ai/opencode.cli.md) · [TypeScript](/ai/opencode.ts.md) · [Python](/ai/opencode.py.md) · [Go](/ai/opencode.go.md) · [PHP](/ai/opencode.php.md) · [HTTP](/ai/opencode.http.md)

## Connect OpenCode to your Bird workspace in three terminal steps.

Install the Bird plugin, sign in to your Bird account in the browser, and verify your active workspace before running channel operations.

[Read the setup guide](/docs/ai/mcp-server#opencode)

Terminal

```
opencode plugin github:messagebird/bird-ai --global
opencode mcp auth bird
```

-

### Install the plugin

Run the global plugin install command to register Bird’s MCP server and agent skills in OpenCode. Because OpenCode loads connected tools into the model context, the plugin connects to Bird’s dynamic endpoint so your agent can discover and run the right API operation for each task without crowding your context window.

If you prefer project-scoped guidance without a live server connection, run npx skills add messagebird/bird-ai in your repository so OpenCode loads channel patterns and SDK conventions from .agents/skills/ alongside your code.

-

### Authorize the connection

Run the authentication command to sign in to Bird in your browser and delegate workspace permissions, then restart OpenCode to load the plugin. OpenCode prompts for confirmation before running operations that modify your workspace.

-

### Check the account

Ask OpenCode which Bird account and workspace it is connected to before starting your first task. When the agent returns your organization identity and configured channels, you are ready to inspect senders and build.

## Run live channel checks and wire messaging from your terminal prompt.

Ask OpenCode to audit failing email deliveries, verify SMS sender readiness, or inspect active Voice calls against your Bird workspace while you edit application code.

Understand a delivery issue

```
Check my recent email failures. Group them by reason, inspect the affected sending domain, and tell me what needs fixing before making changes.
```

Prepare a new channel

```
Help me set up SMS for order updates. Check my workspace and available senders, explain what is missing, then prepare a test for a number I provide.
```

See what is happening now

```
List the Voice calls that are active right now. Separate connected calls from calls that are still ringing, and show their IDs.
```

## How permissions, credentials, and troubleshooting work in OpenCode.

What to know about workspace authorization, production API keys, and reauthenticating your terminal session before you run live channel operations.

Does connecting MCP give my agent unrestricted access to my Bird workspace?

No. OpenCode operates within the Bird user role and workspace permissions you approve during browser sign-in, and it prompts for confirmation before running workspace actions. You can revoke delegated access from your Bird account settings at any time.

Do I need a Bird API key to connect OpenCode to hosted MCP?

Hosted MCP authenticates your interactive OpenCode session through browser sign-in, so you do not need to paste an API key to inspect your workspace or test senders. When your application sends production email, SMS, WhatsApp, or Voice traffic from your own servers, store a dedicated Bird application access key in your app environment.

Why do Bird tools appear in OpenCode when workspace calls fail?

Installing the plugin registers the server endpoint, while account sign-in is a separate step. Run the MCP authentication command in your terminal to complete browser sign-in, restart OpenCode, and ask the agent to confirm your active Bird account and workspace.

## Extend your Bird workflow

with MCP server architecture, portable skill packs, and integrations for the rest of your coding stack.

### MCP server

Inspect how Bird’s dynamic MCP endpoint discovers operations, scopes OAuth permissions, and executes workspace calls.

[MCP server](/ai/mcp)

### Agent skills

Install portable Bird skill packs so your agent follows verified API patterns for email, SMS, WhatsApp, and Voice.

[Agent skills](/ai/skills)

### Other AI tools

Connect the same Bird workspace to Claude Code, Cursor, Codex, Windsurf, and other AI coding environments.

[Other AI tools](/ai)



## Related resources

- [Setting up your coding agent](/learn/basics/setting-up-your-coding-agent) (video)
- [Set up your coding agent](/docs/ai/set-up-your-agent) (docs)
- [What is an MCP server, and how does an agent use one to send messages?](/explained/platform/what-is-an-mcp-server-and-how-does-an-agent-send-messages) (answer)
- [Build with AI agents](/learn/paths/agents) (course)

[Get an implementation brief](/learn/workspace?topic=agents)
