Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/guides/guide_a2ui_dynamic_mcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ To handle interactivity within the rendered A2UI surface, your MCP App must capt
**Example: Handling User Actions**

```typescript
// Subscribing to A2UI events in the MCP App ([main.ts](https://github.com/google/A2UI/blob/main/samples/agent/mcp/a2ui-in-mcpapps/server/apps/src/main.ts))
// Subscribing to A2UI events in the MCP App ([main.ts](https://github.com/google/A2UI/blob/main/samples/agent/mcp/a2ui-in-mcpapps/server/apps/src/src/main.ts))
this.processor.events.subscribe(async (event) => {
if (!event.message.userAction) return;

Expand Down
8 changes: 4 additions & 4 deletions docs/guides/mcp-apps-in-a2ui-surface.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,19 +120,19 @@ To run the samples, ensure you have the following installed:

There are two primary samples demonstrating MCP Apps integration:

### 1. Contact Multi-Surface Sample (Lit & ADK Agent)
### 1. MCP App Standalone Sample (Lit & ADK Agent)

This sample verifies the sandbox with a Lit-based client and an ADK-based A2A agent.

- **A2A Agent Server**:
- Path: [`samples/agent/adk/contact_multiple_surfaces/`](https://github.com/google/A2UI/tree/main/samples/agent/adk/contact_multiple_surfaces/)
- Path: [`samples/agent/adk/mcp-apps-in-a2ui-sample/`](https://github.com/google/A2UI/tree/main/samples/agent/adk/mcp-apps-in-a2ui-sample/)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider using a relative link instead of an absolute GitHub URL for internal repository references. This ensures the link remains functional across different branches, forks, and local environments.

Suggested change
- Path: [`samples/agent/adk/mcp-apps-in-a2ui-sample/`](https://github.com/google/A2UI/tree/main/samples/agent/adk/mcp-apps-in-a2ui-sample/)
- Path: [`samples/agent/adk/mcp-apps-in-a2ui-sample/`](../../samples/agent/adk/mcp-apps-in-a2ui-sample/)

- Command: `uv run .` (requires `GEMINI_API_KEY` in `.env`)
- **Lit Client App**:
- Path: [`samples/client/lit/contact/`](https://github.com/google/A2UI/tree/main/samples/client/lit/contact/)
- Path: [`samples/client/lit/mcp-apps-in-a2ui-sample/`](https://github.com/google/A2UI/tree/main/samples/client/lit/mcp-apps-in-a2ui-sample/)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider using a relative link instead of an absolute GitHub URL for internal repository references. This ensures the link remains functional across different branches, forks, and local environments.

Suggested change
- Path: [`samples/client/lit/mcp-apps-in-a2ui-sample/`](https://github.com/google/A2UI/tree/main/samples/client/lit/mcp-apps-in-a2ui-sample/)
- Path: [`samples/client/lit/mcp-apps-in-a2ui-sample/`](../../samples/client/lit/mcp-apps-in-a2ui-sample/)

- Command: `npm run dev` (requires building the Lit renderer first)
- URL: `http://localhost:5173/`

**What to expect**: A contact page where actions prompt an app interface on specific interactions.
**What to expect**: A simple interface loading the MCP App, with a button to trigger an action handled by the agent.

### 2. MCP Apps (Calculator + Pong) (Angular)

Expand Down
Loading