@agent-native/core 0.22.10 → 0.22.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mcp/build-server.d.ts.map +1 -1
- package/dist/mcp/build-server.js +159 -17
- package/dist/mcp/build-server.js.map +1 -1
- package/dist/mcp/embed-app.js +4 -4
- package/dist/mcp/embed-app.js.map +1 -1
- package/dist/server/embed-session.d.ts.map +1 -1
- package/dist/server/embed-session.js +112 -15
- package/dist/server/embed-session.js.map +1 -1
- package/dist/server/open-route.d.ts.map +1 -1
- package/dist/server/open-route.js +22 -0
- package/dist/server/open-route.js.map +1 -1
- package/docs/content/actions.md +2 -2
- package/docs/content/external-agents.md +3 -1
- package/docs/content/mcp-protocol.md +5 -3
- package/package.json +1 -1
|
@@ -72,11 +72,13 @@ POST https://your-app.example.com/_agent-native/mcp
|
|
|
72
72
|
|
|
73
73
|
The server supports the standard MCP handshake: `initialize` → `initialized` → `tools/list` → `tools/call`.
|
|
74
74
|
|
|
75
|
-
If an action declares `mcpApp`, the server also advertises the official MCP Apps extension (`io.modelcontextprotocol/ui`) and supports `resources/list`, `resources/templates/list`, and `resources/read` for the app resource. Hosts that render MCP Apps can show the UI inline; hosts that do not can still call the tool and use the deep-link fallback. Product UIs should use `embedApp()` so the inline surface is the real React app route, or a focused route that renders a shared React component such as an Analytics chart, not a separate plain HTML implementation. The current official extension matrix includes Claude, Claude Desktop, VS Code GitHub Copilot, Goose, Postman, MCPJam, ChatGPT, and Cursor; host support varies by version and plan, so use the [External Agents MCP Apps notes](/docs/external-agents#mcp-apps-compatibility) for the user-facing guidance.
|
|
75
|
+
If an action declares `mcpApp`, the server also advertises the official MCP Apps extension (`io.modelcontextprotocol/ui`) and supports `resources/list`, `resources/templates/list`, and `resources/read` for the app resource. Hosts that render MCP Apps can show the UI inline; hosts that do not can still call the tool and use the deep-link fallback. Product UIs should use `embedApp()` so the inline surface is the real React app route, or a focused route that renders a shared React component such as an Analytics chart, not a separate plain HTML implementation. The server emits both standard MCP Apps metadata and ChatGPT Apps SDK compatibility metadata so app-capable hosts can find the same `ui://` resource. The current official extension matrix includes Claude, Claude Desktop, VS Code GitHub Copilot, Goose, Postman, MCPJam, ChatGPT, and Cursor; host support varies by version and plan, so use the [External Agents MCP Apps notes](/docs/external-agents#mcp-apps-compatibility) for the user-facing guidance.
|
|
76
76
|
|
|
77
77
|
## Tools {#tools}
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
Stdio/static-token developer clients see all connected app actions as MCP tools. OAuth callers that request `mcp:apps` get a compact app-host catalog: app-facing builtins and actions with `mcpApp`. `publicAgent.expose` remains the opt-in for safe read/ingest tools outside that compact app catalog. This keeps ChatGPT/Claude app-host discovery small while preserving the full developer surface for local agents.
|
|
80
|
+
|
|
81
|
+
The mapping is direct:
|
|
80
82
|
|
|
81
83
|
| Action property | MCP tool property |
|
|
82
84
|
| ------------------ | ----------------- |
|
|
@@ -84,7 +86,7 @@ All actions registered in your app are exposed as MCP tools. The mapping is dire
|
|
|
84
86
|
| `tool.parameters` | `inputSchema` |
|
|
85
87
|
| Action name | Tool name |
|
|
86
88
|
|
|
87
|
-
When `mcpApp` is present, the tool entry also includes `_meta.ui.resourceUri` and `_meta["
|
|
89
|
+
When `mcpApp` is present, the tool entry also includes `_meta.ui.resourceUri`, `_meta["ui/resourceUri"]`, and `_meta["openai/outputTemplate"]`, and the corresponding `ui://` resource is returned as `text/html;profile=mcp-app`.
|
|
88
90
|
|
|
89
91
|
### The `ask-agent` tool {#ask-agent}
|
|
90
92
|
|
package/package.json
CHANGED