flutter_mcp library
Re-export the new library for backward compatibility
This file is kept for backward compatibility with existing code. New code should import flutter_mcp_client_lib.dart directly.
Classes
- CallToolParams
- Call tool request parameters
- CallToolRequest
- Call tool request
- CallToolResponse
- Call tool response
- CallToolResult
- Call tool response result
- CapabilityConfig
- Base class for capability configurations
- ClientCapabilities
- Client capabilities configuration
- ContentItem
- A content item in a tool result
- GetPromptParams
- Get prompt request parameters
- GetPromptRequest
- Get prompt request
- GetPromptResponse
- Get prompt response
- GetPromptResult
- Get prompt response result
- InitializeParams
- Initialize request parameters
- InitializeRequest
- Initialize request
- InitializeResponse
- Initialize response
- InitializeResult
- Initialize response result
- JsonRpcErrorCodes
- Standard error codes defined by the JSON-RPC 2.0 specification
- JsonRpcMessage
- A JSON-RPC message
- ListPromptsRequest
- List prompts request
- ListPromptsResponse
- List prompts response
- ListPromptsResult
- List prompts response result
- ListResourcesRequest
- List resources request
- ListResourcesResponse
- List resources response
- ListResourcesResult
- List resources response result
- ListToolsRequest
- List tools request
- ListToolsResponse
- List tools response
- ListToolsResult
- List tools response result
- McpClient
- A client for the Model Context Protocol
- McpClientTransport
- A transport for MCP clients
- McpCodeResponseWidget
- Widget for displaying code-based MCP responses
- McpDataResponseWidget
- Widget for displaying structured data MCP responses
- McpError
- Error information for MCP responses
- McpErrorCodes
- MCP-specific error codes
- McpErrorResponseWidget
- Widget for displaying error MCP responses
- McpInfo
- Information about an MCP client or server
- McpMessage
- Base class for all MCP messages
- McpNotification
- Base class for all MCP notifications
- McpNotificationImpl
- A concrete implementation of McpNotification
- McpRequest
- Base class for all MCP requests
- McpRequestImpl
- A concrete implementation of McpRequest
- McpResponse
- Base class for all MCP responses
- McpResponseImpl
- A concrete implementation of McpResponse
- McpResponseRenderer
- A renderer for MCP responses
- McpResponseWidget
- Base widget for displaying MCP responses
- McpServerTransport
- A transport for MCP servers
- McpTextResponseWidget
- Widget for displaying text-based MCP responses
- McpTheme
- A theme for MCP UI components
- McpTransport
- A transport for MCP messages
- McpWebSocketClientTransport
- A WebSocket transport for MCP clients
- Message
- A message in a conversation
- MessageContent
- Message content in a conversation
- PromptArgument
- A prompt argument
- PromptCapabilityConfig
- Configuration for prompt capabilities
- PromptInfo
- Information about a prompt
- PromptListChangedNotification
- Prompt list changed notification
- PromptListChangedParams
- Prompt list changed notification parameters
- ReadResourceParams
- Read resource request parameters
- ReadResourceRequest
- Read resource request
- ReadResourceResponse
- Read resource response
- ReadResourceResult
- Read resource response result
- ResourceCapabilityConfig
- Configuration for resource capabilities
- ResourceContent
- A resource content item
- ResourceInfo
- Information about a resource
- ResourceListChangedNotification
- Resource list changed notification
- ResourceListChangedParams
- Resource list changed notification parameters
- SampleParams
- Sample request parameters
- SampleRequest
- Sample request
- SampleResponse
- Sample response
- SampleResult
- Sample response result
- SamplingCapabilityConfig
- Configuration for sampling capabilities
- ServerCapabilities
- Server capabilities configuration
- ToolArgument
- A tool argument
- ToolCapabilityConfig
- Configuration for tool capabilities
- ToolInfo
- Information about a tool
- ToolListChangedNotification
- Tool list changed notification
- ToolListChangedParams
- Tool list changed notification parameters
Enums
- ContentType
- Content type for tool results
- McpResponseType
- Types of MCP responses
- MessageRole
- Message role in a conversation
Extensions
- McpClientUiExtensions on McpClient
- Extension methods for McpClient to easily render responses
- McpThemeExtension on BuildContext
- Extension methods for BuildContext to easily access the MCP theme
Constants
- mcpProtocolVersion → const String
- The current version of the MCP protocol implemented by this package
Functions
-
generateRequestId(
) → String - Generate a random request ID
Typedefs
-
McpInteractionCallback
= void Function(String responseId, String interactionType, Map<
String, dynamic> data) - Callback for interaction events with MCP response widgets