mcp_playground_flutter library

Classes

Agent
An agent definition containing its configurations, prompts, and tools.
AgentAssistantResultEvent
Assistant LLM response event.
AgentErrorEvent
Error event.
AgentEvent
Base class for all agent execution events.
AgentFinalResultEvent
Final result event — emitted once at the end of agent execution.
AgentLogEvent
Log/chronology message event.
AgentTextChunkEvent
Token-by-token text delta from the LLM — emitted during streaming.
AgentToolResultEvent
Tool call result event.
ChatMessage
LlmConfig
LLMResponse
Represents the completion response returned by the LLM.
LLMService
Service provider class wrapping client integrations for various LLM SDKs.
LLMStreamChunk
Represents a chunk of text or progress emitted during a streaming LLM call.
LLMToolCall
Represents a tool call requested by the LLM.
LocalInstallProgress
LocalMCPClient
Stub client for platforms that do not support stdio subprocess execution.
LocalMcpRuntime
Stub — local server installation and runtime detection are not supported on this platform.
LocalMcpServerSetup
McpAgentEngine
McpChangeNotifier
A lightweight, pure-Dart implementation of the ChangeNotifier pattern. Allows classes in pure Dart packages to notify listeners without depending on Flutter.
MCPClient
Core client connection class to communicate with MCP servers over HTTP/HTTPS.
MCPClientDef
Dynamic wrapper representing an MCP server definition in the multi-server manager.
MCPContent
MCPError
McpLocalTool
Base class representing a Dart-native local tool.
MCPMessage
MCPNotification
McpPlayground
An interactive AI Agent Playground widget for Flutter.
McpPlaygroundSkillMetadata
mcp_playground-specific metadata embedded in SKILL.md.
McpPlaygroundStorageDelegate
Abstract delegate for storing and loading LLM configuration, server registry, and saved setups.
MCPRequest
MCPResource
MCPResponse
McpServerConfig
MCPTool
MCPToolResult
MessageAttachment
MultiMCPManager
Manager coordinating multiple MCP server connections.
PlaygroundController
Controller managing the state of the AI Agent Playground, chat messages, active tool loop execution, and server manager.
SavedPlaygroundSetup
SharedPreferencesStorageDelegate
A default implementation of McpPlaygroundStorageDelegate using SharedPreferences.
SkillExporter
Converts SavedPlaygroundSetup or conversation history into agentskills.io compatible SkillManifest and SKILL.md strings.
SkillImporter
Parses agentskills.io compatible SKILL.md content into SkillManifest and converts it back to SavedPlaygroundSetup.
SkillManifest
Represents a parsed agentskills.io compatible SKILL.md manifest.
SkillPromptStep
A single step in a multi-prompt skill workflow.
SkillStorageAdapter
Abstract adapter for persisting skill ZIP files.
SkillToolDeclaration
Declaration of a tool in the SKILL.md manifest.
StoredSkillInfo
Info about a stored skill returned by the adapter.
SubPromptStep

Properties

subPromptSepRegex RegExp
final

Typedefs

AssistantResultCallback = void Function(String prompt, String response)
ErrorCallback = void Function(Object error)
FinalResultCallback = void Function(String response)
LogCallback = void Function(String response)
McpLogCallback = void Function(String message, {bool isError})
Callback signature for logging output.
ToolResultCallback = void Function(String toolName, Map<String, dynamic> parameters, String result)

Exceptions / Errors

LocalMcpException
Progress tracking for local install steps.