- Prop
open- Type
boolean | undefined- Default
- —
- Requirement
- optional
Docs Components Assistant
McpConfigDialog
React example follows below.
Vue example follows below.
Angular example follows below.
Svelte example follows below.
Solid example follows below.
- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
import { McpConfigDialog } from "@grassroot/ui-react/assistant";import { assistantDemoConnectors } from "@grassroot/demo-fixtures"; export default function McpConfigDialogDemo() { return <McpConfigDialog open={true} connectors={assistantDemoConnectors} />;}- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
<script setup lang="ts">import { McpConfigDialog } from "@grassroot/ui-vue/assistant";import { assistantDemoConnectors } from "@grassroot/demo-fixtures";</script> <template> <McpConfigDialog :open="true" :connectors="assistantDemoConnectors" /></template>- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
import "./ensure-compiler";import { ChangeDetectionStrategy, Component } from "@angular/core";import { GrassrootMcpConfigDialog } from "@grassroot/ui-angular/assistant";import { assistantDemoConnectors } from "@grassroot/demo-fixtures"; @Component({ selector: "app-mcp-config-dialog-demo", standalone: true, imports: [GrassrootMcpConfigDialog], changeDetection: ChangeDetectionStrategy.OnPush, template: `<grassroot-mcp-config-dialog [open]="open" [connectors]="connectors" />`,})export class McpConfigDialogDemoComponent { protected readonly open = true; protected readonly connectors = assistantDemoConnectors;} export default McpConfigDialogDemoComponent;- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
<script lang="ts"> import { McpConfigDialog } from "@grassroot/ui-svelte/assistant"; import { assistantDemoConnectors } from "@grassroot/demo-fixtures";</script> <McpConfigDialog open={true} connectors={assistantDemoConnectors} />- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
/** @jsxImportSource solid-js */import { McpConfigDialog } from "@grassroot/ui-solid/assistant";import { assistantDemoConnectors } from "@grassroot/demo-fixtures"; export default function McpConfigDialogDemo() { return <McpConfigDialog open={true} connectors={assistantDemoConnectors} />;}Installation
API Reference
Import
import { McpConfigDialog } from "@grassroot/ui-react/assistant";
import { assistantDemoConnectors } from "@grassroot/demo-fixtures";
Props
Prop
Type
Default
Requirement
openboolean | undefined—
optional
connectorsreadonly McpConnector[] | undefined—
optional
onOpenChange((open: boolean) => void) | undefined—
optional
onConnect((serverId: string) => void) | undefined—
optional
onDisconnect((serverId: string) => void) | undefined—
optional
onAddServer((url: string) => void) | undefined—
optional
- Prop
connectors- Type
readonly McpConnector[] | undefined- Default
- —
- Requirement
- optional
- Prop
onOpenChange- Type
((open: boolean) => void) | undefined- Default
- —
- Requirement
- optional
- Prop
onConnect- Type
((serverId: string) => void) | undefined- Default
- —
- Requirement
- optional
- Prop
onDisconnect- Type
((serverId: string) => void) | undefined- Default
- —
- Requirement
- optional
- Prop
onAddServer- Type
((url: string) => void) | undefined- Default
- —
- Requirement
- optional
Events
| Event | Payload |
|---|---|
onOpenChange | ((open: boolean) => void) | undefined |
onConnect | ((serverId: string) => void) | undefined |
onDisconnect | ((serverId: string) => void) | undefined |
onAddServer | ((url: string) => void) | undefined |
Content regions
childrentitle
Native attributes
Standard DOM and ARIA attributes not listed above spread onto the root element.
Import
import { McpConfigDialog } from "@grassroot/ui-vue/assistant";
import { assistantDemoConnectors } from "@grassroot/demo-fixtures";
Props
Prop
Type
Default
Requirement
openbooleanfalseoptional
titlestring"MCP connections"optional
connectorsMcpConnector[]() => []optional
- Prop
open- Type
boolean- Default
false- Requirement
- optional
- Prop
title- Type
string- Default
"MCP connections"- Requirement
- optional
- Prop
connectors- Type
McpConnector[]- Default
() => []- Requirement
- optional
Events
| Event | Payload |
|---|---|
update:open | (boolean) => void |
openChange | (boolean) => void |
connect | (string) => void |
disconnect | (string) => void |
addServer | (string) => void |
Content regions
default
Import
import "./ensure-compiler";
import { ChangeDetectionStrategy, Component } from "@angular/core";
import { GrassrootMcpConfigDialog } from "@grassroot/ui-angular/assistant";
import { assistantDemoConnectors } from "@grassroot/demo-fixtures";
Props
Prop
Type
Default
Requirement
openbooleanfalseoptional
titlestring"MCP connections"optional
connectorsreadonly McpConnector[][]optional
- Prop
open- Type
boolean- Default
false- Requirement
- optional
- Prop
title- Type
string- Default
"MCP connections"- Requirement
- optional
- Prop
connectors- Type
readonly McpConnector[]- Default
[]- Requirement
- optional
Events
| Event | Payload |
|---|---|
openChange | boolean |
connect | string |
disconnect | string |
addServer | string |
Content regions
default
Import
import { McpConfigDialog } from "@grassroot/ui-svelte/assistant";
import { assistantDemoConnectors } from "@grassroot/demo-fixtures";
Props
Prop
Type
Default
Requirement
openbooleanfalseoptional
titlestring"MCP connections"optional
connectorsreadonly Connector[]—
optional
onOpenChange(open: boolean) => void—
optional
onConnect(serverId: string) => void—
optional
onDisconnect(serverId: string) => void—
optional
onAddServer(url: string) => void—
optional
- Prop
open- Type
boolean- Default
false- Requirement
- optional
- Prop
title- Type
string- Default
"MCP connections"- Requirement
- optional
- Prop
connectors- Type
readonly Connector[]- Default
- —
- Requirement
- optional
- Prop
onOpenChange- Type
(open: boolean) => void- Default
- —
- Requirement
- optional
- Prop
onConnect- Type
(serverId: string) => void- Default
- —
- Requirement
- optional
- Prop
onDisconnect- Type
(serverId: string) => void- Default
- —
- Requirement
- optional
- Prop
onAddServer- Type
(url: string) => void- Default
- —
- Requirement
- optional
Events
| Event | Payload |
|---|---|
onOpenChange | (open: boolean) => void |
onConnect | (serverId: string) => void |
onDisconnect | (serverId: string) => void |
onAddServer | (url: string) => void |
Content regions
children
Import
import { McpConfigDialog } from "@grassroot/ui-solid/assistant";
import { assistantDemoConnectors } from "@grassroot/demo-fixtures";
Props
Prop
Type
Default
Requirement
openboolean—
optional
titlestring"MCP connections"optional
connectorsreadonly McpConnector[]—
optional
onOpenChange(open: boolean) => void—
optional
onConnect(serverId: string) => void—
optional
onDisconnect(serverId: string) => void—
optional
onAddServer(url: string) => void—
optional
- Prop
open- Type
boolean- Default
- —
- Requirement
- optional
- Prop
title- Type
string- Default
"MCP connections"- Requirement
- optional
- Prop
connectors- Type
readonly McpConnector[]- Default
- —
- Requirement
- optional
- Prop
onOpenChange- Type
(open: boolean) => void- Default
- —
- Requirement
- optional
- Prop
onConnect- Type
(serverId: string) => void- Default
- —
- Requirement
- optional
- Prop
onDisconnect- Type
(serverId: string) => void- Default
- —
- Requirement
- optional
- Prop
onAddServer- Type
(url: string) => void- Default
- —
- Requirement
- optional
Events
| Event | Payload |
|---|---|
onOpenChange | (open: boolean) => void |
onConnect | (serverId: string) => void |
onDisconnect | (serverId: string) => void |
onAddServer | (url: string) => void |
Content regions
children
Native attributes
Standard DOM and ARIA attributes not listed above spread onto the root element.