external-agents
What it does
This skill explains how external agents and MCP hosts connect to an Agent-Native app, and how their results can open back in the app through deep links. It covers setup for many hosts. It is for people who want to use an outside AI tool with their app.
When to use it
- ✓When you want Claude, ChatGPT or Cursor to work with data in an Agent-Native app.
- ✓When you want a link from an outside tool to open a specific item in the app.
- ✓When you are setting up the connection page for an app's MCP access.
Skill link
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/external-agents/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you connect my Agent-Native app to Claude so Claude can create and update records in it?”
5 new skills a week. 1 minute to read.
How it works
The app exposes its actions over MCP. The outside host connects through a standard remote setup, and results can open in the app through a link or an inline MCP app view.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
External Agents (MCP bridge + deep links)
Rule
- The connected model is the author. Write content yourself with create/update tools; never delegate via
ask_appor wait on an unreachable in-app form — seeDEFAULT_AGENT_NATIVE_MCP_INSTRUCTIONS. - Result shape and key tools are in
actions(Return Values, Key Actions). - Artifacts fit in one call. Up to 500,000 characters; return a
storing-datahandle. - One tab, one id. WebMCP sends
X-Agent-Native-Browser-Tab; state resolves to the driving tab (context-awareness).
An agent-native app is reachable by any MCP-compatible host. Keep
setup simple: for workspace or cross-app access, add one remote MCP connector:
https://dispatch.agent-native.com/mcp. Dispatch's Agents page
controls whether that single connector reaches all apps or only selected apps,
and Dispatch filters list_apps, ask_app, and open_app to the granted set.
For a deliberately isolated app, add that app directly at
https://<app>.agent-native.com/mcp or
https://<your-host>/mcp.
In-app, the Agent page's Access tab (/agent#access) is the home for this:
it shows MCP/A2A URLs, client setup steps, and the full /mcp/connect page.
Point users there instead of dictating URLs in chat.
OAuth-capable hosts use the standard remote MCP OAuth flow — Claude, Claude
Code, and ChatGPT discover the protected resource and store their own tokens;
per-host steps are below. Local stdio proxying and older clients can still use
npx @agent-native/core connect <url>, which mints a per-user, scoped,
revocable token from a logged-in browser session; no shared secret is copied.
The framework serves MCP 2026-07-28 natively over stateless, per-request HTTP
and keeps the established stateless path for 2025-era clients. New MCP client
code uses the split @modelcontextprotocol/client package with
versionNegotiation: { mode: "auto" }; do not pin a protocol header or
hand-send initialize. OAuth callback handlers preserve state and pass the
RFC 9207 iss parameter to the v2 SDK for validation before exchanging a
code. The authorization server accepts HTTPS Client ID Metadata Documents after
strict URL, SSRF, size, redirect, schema, and exact callback validation; URL-like
client ids never fall back to dynamic registration. Traditional non-URL clients
continue to use public-client dynamic registration.
Actions marked needsApproval ask through MCP 2026 input_required
elicitation. A client that can't prompt (every stateless 2025-era client),
declines, or cancels gets a tool result linking to the app's review page, where
only the same signed-in user and org decide. After Approve, the identical call
runs once within ten minutes. Grants bind caller, action, arguments, expiry, and
fail closed.
Claude and ChatGPT can cache custom connector tool/resource metadata. After
changing MCP App metadata or the shared embedApp() shell, validate with a
fresh tool call; if the host still behaves like the old descriptor, reconnect
the Claude connector or rescan/review the ChatGPT connector.
Once connected, every action that produces or lists a navigable resource SHOULD
return a deep link from a link builder, so the external agent can surface an
"Open in <app> →" link that drops the user back into the running UI at the
right view and record. Actions can also declare mcpApp so hosts that support
MCP Apps render an inline interactive preview. The link is a pure pointer —
the record-focusing write is always scoped to the browser session, never
the agent's token.
Why
External agents are great at producing artifacts (a draft, an event, a
dashboard) but they live in a terminal, chat host, or another app. Without a
bridge, the user gets a wall of JSON and has to go find the thing. MCP Apps
give compatible hosts an inline review/edit surface; the deep-link bridge
closes the loop everywhere else by handing the user a single link that opens
the real app focused on exactly what was produced. It reuses the existing
navigate / application_state contract the UI already drains every 2s (see
context-awareness) — we never invent a second navigation mechanism.
App-facing MCP connectors
Apps can also consume connected remote MCP servers as a server-side API. The
framework stores each connector's OAuth client registration, discovery metadata,
access token, and refresh token in the encrypted oauth_tokens store, scoped to
the user or organization. The browser and sandboxed MCP App
FAQ
Do I need to write code to connect?
For a standard setup, you add one remote MCP connector address in the host, as the skill describes.
Can the outside agent ask the app to write a form for it?
No. The skill says the connected model should write content itself, rather than delegating to an in-app form.
How big can an artifact be?
The skill says artifacts can be up to 500,000 characters in one call.
Details
Original description by the author
Connect external agents and MCP hosts (Claude, Claude Desktop, Claude Code, ChatGPT custom MCP apps, Codex, Cursor, Claude Cowork, VS Code GitHub Copilot, Goose, Postman, MCPJam) to an agent-native app over MCP, and round-trip artifacts back into the UI with MCP Apps and deep links. Use when adding an action's `link` builder or `mcpApp`, wiring the `/_agent-native/open` route, exposing an "ingest" action to MCP/A2A, or scaffolding apps from an external agent.
repo: BuilderIO/agent-native
Popularity
- GitHub stars
- 7.6k
- Ranking position
- #13158
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
design-exploration
7.6kHelps your agent explore several UI design directions side by side, let you pick one, and then refine the chosen design.
visual-edit
7.6kHelps your agent open a running local app in a visual editor so you can review and edit its real screens together.
turn-into-app
7.6kTurns a workflow, spreadsheet or project into a polished visual app, with populated screens and an agent working behind the controls.
visual-plan
7.6kTurns a plain text plan into an interactive visual plan with diagrams, file maps, code snippets and open questions.
Similar skills
mcporter
394kHelps your agent list, call, and inspect MCP servers and their tools over HTTP or stdio, and manage their sign-in settings.
fastmcp
260kHelps you build, test, and deploy a Python MCP server that gives AI assistants access to your API, database, or files as tools.
mcp-oauth-remote-gateway
260kWalks you through OAuth sign-in for a remote MCP server when Hermes runs on a server, where the normal browser sign-in cannot reach it.