Skip to content
Open
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
6 changes: 3 additions & 3 deletions examples/basic-host/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getToolUiResourceUri, McpUiToolMetaSchema } from "@modelcontextprotocol/ext-apps/app-bridge";
import type { Tool } from "@modelcontextprotocol/client";
import { getDisplayName, type Tool } from "@modelcontextprotocol/client";
import { Component, type ErrorInfo, type ReactNode, StrictMode, Suspense, use, useEffect, useMemo, useRef, useState } from "react";
import { createRoot } from "react-dom/client";
import { callTool, connectToServer, hasAppHtml, initializeApp, loadSandboxProxy, log, newAppBridge, type ServerInfo, type ToolCallInfo, type ModelContext, type AppMessage } from "./implementation";
Expand Down Expand Up @@ -339,9 +339,9 @@ function ToolCallInfoPanel({ toolCallInfo, isDestroying, onRequestClose, onClose
className={styles.toolCallInfoPanel}
style={isDestroying ? { opacity: 0.5, pointerEvents: "none" } : undefined}
>
{/* Row 1: Header with server:tool name and close button */}
{/* Row 1: Header with server name, tool display name, and close button */}
<div className={styles.appHeader}>
<span>{toolCallInfo.serverInfo.name}:<span className={styles.toolName}>{toolCallInfo.tool.name}</span></span>
<span>{toolCallInfo.serverInfo.name}:<span className={styles.toolName}>{getDisplayName(toolCallInfo.tool)}</span></span>
{onRequestClose && !isDestroying && (
<button
className={styles.closeButton}
Expand Down