Skip to main content

MainContentProps

Agent Runtimes


Agent Runtimes / examples/components/MainContent / MainContentProps

Interface: MainContentProps

Defined in: examples/components/MainContent.tsx:12

Properties

agentId?

optional agentId?: string

Defined in: examples/components/MainContent.tsx:18

Agent ID for updating the running agent


baseUrl?

optional baseUrl?: string

Defined in: examples/components/MainContent.tsx:16

Base URL for MCP API


enableCodemode?

optional enableCodemode?: boolean

Defined in: examples/components/MainContent.tsx:20

Whether codemode is enabled


isConfigured?

optional isConfigured?: boolean

Defined in: examples/components/MainContent.tsx:28

Whether the agent is configured and running


onMcpServersChange?

optional onMcpServersChange?: () => void

Defined in: examples/components/MainContent.tsx:26

Callback when MCP servers are added/removed (for codemode regeneration)

Returns

void


onSelectedMcpServersChange?

optional onSelectedMcpServersChange?: (servers) => void

Defined in: examples/components/MainContent.tsx:24

Callback when MCP server selection changes

Parameters

servers

McpServerSelection[]

Returns

void


selectedMcpServers?

optional selectedMcpServers?: McpServerSelection[]

Defined in: examples/components/MainContent.tsx:22

Currently selected MCP servers


showWelcomeMessage?

optional showWelcomeMessage?: boolean

Defined in: examples/components/MainContent.tsx:14

Whether to show the welcome message