Skip to main content
Connect your coding agent to the Offline Protocol MCP server. The agent can then find compatible packages, read integration guidance, plan an implementation and, in local mode, scaffold project files. It works on your code. It does not discover peers, operate devices or read device telemetry; build and test device communication with the Mesh SDK. The developer portal shows the same steps in each application’s Connect tab, under Agents, with your app ID filled in.

Choose how to connect

The plugins package the local MCP server with the Build with Offline Protocol integration guidance. They are being validated client by client. To join the preview, email support@offlineprotocol.com and name your client. Until your client’s plugin is available, use local MCP; it gives the agent the same tools. Local MCP starts the published CLI through npx, so no global installation is needed:
The first launch downloads that release from npm; later launches use the npm cache. It needs no login or API key. scaffold_project, integrate_packages and init_project write local files and are available only in local mode. Hosted MCP runs at https://mcp.offlineprotocol.com/mcp. Send an application API key as a bearer token and the matching app ID in x-app-id. Organization keys are rejected. Hosted mode offers the 15 read-only tools. See Hosted MCP for limits. Configure one mode per client under the offline-protocol name, not both.

Set up your client

Replace app_your_application_id with your application’s ID. Keep API keys out of files you commit.
Local MCP. Run once:
Or commit this as .mcp.json in your project:
Hosted MCP. With OFFLINE_API_KEY set in your environment, a project .mcp.json can keep an environment reference:
Restart the client after changing its configuration, then check that offline-protocol is connected.

Try a first request

Ask your agent for a concrete integration, for example:
Add an encrypted local handoff to this React Native app. Explain the device requirements, choose compatible packages, and show how the receiving app will persist the handoff.
Give it your platform, SDK version and target devices, as described in Build with an AI agent. Then compile the changed application and test on the target devices; a successful agent session does not establish radio delivery. For the full command reference and the globally installed offline command, see CLI and MCP.