external-agents
Skill này làm gì
Skill này giải thích cách các agent bên ngoài và máy chủ MCP kết nối với ứng dụng Agent-Native, và cách kết quả của chúng có thể mở lại trong ứng dụng qua deep link. Nó bao gồm thiết lập cho nhiều máy chủ. Skill dành cho người muốn dùng một công cụ AI bên ngoài với ứng dụng của họ.
Khi nào nên dùng
- ✓Khi bạn muốn Claude, ChatGPT hoặc Cursor làm việc với dữ liệu trong một ứng dụng Agent-Native.
- ✓Khi bạn muốn một liên kết từ công cụ bên ngoài mở một mục cụ thể trong ứng dụng.
- ✓Khi bạn thiết lập trang kết nối cho quyền truy cập MCP của ứng dụng.
Liên kết skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/external-agents/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể kết nối ứng dụng Agent-Native của tôi với Claude để Claude tạo và cập nhật bản ghi trong đó không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Ứng dụng công khai các action qua MCP. Máy chủ bên ngoài kết nối qua một thiết lập từ xa chuẩn, và kết quả có thể mở trong ứng dụng qua một liên kết hoặc một khung xem MCP nội tuyến.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Tôi có cần viết code để kết nối không?
Với thiết lập chuẩn, bạn chỉ thêm một địa chỉ connector MCP từ xa vào máy chủ, như skill mô tả.
Agent bên ngoài có thể nhờ ứng dụng viết một biểu mẫu cho nó không?
Không. Skill nói mô hình được kết nối nên tự viết nội dung, thay vì ủy thác cho biểu mẫu trong ứng dụng.
Một artifact có thể lớn đến đâu?
Skill nói artifact có thể dài tới 500.000 ký tự trong một lần gọi.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 7.6k
- Vị trí xếp hạng
- #13158
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
design-exploration
7.6kGiúp agent của bạn khám phá nhiều hướng thiết kế giao diện song song, để bạn chọn một hướng rồi tinh chỉnh thiết kế đã chọn.
visual-edit
7.6kGiúp agent của bạn mở một ứng dụng cục bộ đang chạy trong trình chỉnh sửa trực quan, để bạn xem và sửa các màn hình thật cùng nhau.
turn-into-app
7.6kBiến quy trình, bảng tính hoặc dự án thành ứng dụng trực quan có màn hình đầy đủ dữ liệu, với agent làm việc phía sau các điều khiển.
visual-plan
7.6kBiến một kế hoạch viết bằng văn bản thuần thành kế hoạch trực quan tương tác, có sơ đồ, bản đồ file, đoạn code và các câu hỏi còn mở.
Skill tương tự
mcporter
394kGiúp agent của bạn liệt kê, gọi và kiểm tra các máy chủ MCP cùng công cụ của chúng qua HTTP hoặc stdio, và quản lý cài đặt đăng nhập.
fastmcp
260kGiúp bạn xây dựng, kiểm thử và triển khai một máy chủ MCP bằng Python, cấp cho trợ lý AI quyền truy cập API, cơ sở dữ liệu hoặc file của bạn dưới dạng công cụ.
mcp-oauth-remote-gateway
260kHướng dẫn bạn đăng nhập OAuth cho máy chủ MCP từ xa khi Hermes chạy trên máy chủ, nơi đăng nhập bằng trình duyệt thông thường không thể truy cập được.