MCP Server
@app-appplayer
关于 MCP Server
暂无概览
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Server?
MCP Server is a Dart plugin for implementing Model Context Protocol (MCP) servers. It allows Flutter applications to expose data, functionality, and interaction patterns to Large Language Model (LLM) applications in a standardized way.
How to use MCP Server?
Install the package and create a Server instance with a name, version, and capabilities. Add handlers for tools, resources, and prompts, then connect to a transport (stdio, SSE, or Streamable HTTP). Use the simplified McpServer.createAndStart API or the classic connect method. Configuration of transports is done via TransportConfig objects.
Key features of MCP Server
- Multi-revision MCP support with per-version capability gating
- Core primitives: Resources, Tools, Prompts, and Completions
- Server-initiated requests (sampling, roots, elicitation)
- OAuth 2.1 Resource Server (RFC 9728) with Bearer token validation
- Structured tool output and resource links (2025-06-18+)
- Icons on tools, resources, and prompts (2025-11-25)
- List-changed notifications and progress/cancellation support
- Multiple transports: stdio, SSE, Streamable HTTP
- Cross-platform: Android, iOS, web, Linux, Windows, macOS
Use cases of MCP Server
- Expose application data to LLMs via static or templated resources
- Give LLMs the ability to perform actions with tools (e.g., calculators, file access)
- Provide reusable prompt templates that guide LLM interactions
- Build custom MCP servers that integrate with existing Dart/Flutter apps
FAQ from MCP Server
What protocol versions does MCP Server support?
It supports four revisions: 2024-11-05 (original), 2025-03-26 (earlier 2025 revision), 2025-06-18 (adds elicitation, structured tool output, OAuth), and 2025-11-25 (adds icons, sampling tool calling).
What transport options are available?
STDIO, SSE, and Streamable HTTP (with SSE streaming or JSON response mode). Each is configurable via TransportConfig constructors.
Does MCP Server work on multiple platforms?
Yes, it supports Android, iOS, web, Linux, Windows, and macOS.
How do I configure server capabilities?
Capabilities can be set with simple booleans via ServerCapabilities.simple() or with advanced object-based configuration using ServerCapabilities with detailed sub-capabilities.
What happens if a tool handler returns an error?
Handlers can return CallToolResult with isError: true to signal failure to the LLM, as shown in the division-by-zero example.
其他 分类下的更多 MCP 服务器
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
IDA Pro MCP
mrexodiaAI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
Awesome Mlops
visengerA curated list of references for MLOps
ghidraMCP
LaurieWiredMCP Server for Ghidra
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
评论