# MCPToolList

The tools an MCP server offers and the permissions they need.

- **Use it for**: The tools a server offers and the permissions they need.
- **Not for**: Connection state. Try [MCPServerCard](https://unseenui.com/components/mcp-server-card/).

## Installation

```bash
npm install @stackunseen/ui
```

## Usage

```tsx
import { MCPToolList } from '@stackunseen/ui';
import '@stackunseen/ui/styles.css';

<MCPToolList variant="list" tools={tools} query={query} onQueryChange={setQuery} />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `className` | `string` |  |
| `onQueryChange` (required) | `(query: string) => void` |  |
| `query` (required) | `string` |  |
| `tools` (required) | `MCPTool[]` |  |
| `variant` | `"list" \| "cards" \| "accordion"` |  |

## Keyboard

Tab reaches controls; Enter or Space activates buttons. Accordions use arrow keys, Home and End. Select menus support arrows and typeahead; Escape closes menus and dialogs and restores focus.

## Works with

[MCPServerCard](https://unseenui.com/components/mcp-server-card/), [MCPAppFrame](https://unseenui.com/components/mcp-app-frame/)

Page: https://unseenui.com/components/mcp-tool-list/
