Flutter Tools MCP Server
Flutter 工具 MCP 服务器
概述
flutter-tools MCP 服务器提供了与 Flutter SDK 交互的工具。它主要提供两个工具: get_diagnostics和apply_fixes 。这两个工具有助于分析和修复 Dart/Flutter 文件。
Related MCP server: Pub.dev MCP Server
工具
获取诊断
**描述:**获取文件的 Flutter/Dart 诊断。
输入模式:
{
"type": "object",
"properties": {
"file": {
"type": "string",
"description": "Path to the Dart/Flutter file"
}
},
"required": ["file"]
}示例用法:
{
"name": "get_diagnostics",
"arguments": {
"file": "/path/to/your/file.dart"
}
}应用修复
**描述:**将 Dart 修复建议应用于文件。
输入模式:
{
"type": "object",
"properties": {
"file": {
"type": "string",
"description": "Path to the Dart/Flutter file"
}
},
"required": ["file"]
}示例用法:
{
"name": "apply_fixes",
"arguments": {
"file": "/path/to/your/file.dart"
}
}依赖项
@modelcontextprotocol/sdk: ^1.0.0node-pty: ^1.0.0which:^4.0.0
开发依赖项
@types/node:^18.19.0@types/which:^3.0.3typescript:^5.3.3
脚本
build:编译 TypeScript 代码并在编译后的 JavaScript 文件上设置可执行权限。prepare:运行build脚本。watch:编译 TypeScript 代码并监视更改,然后自动重新编译。
安装
要安装 MCP 服务器,请将以下配置添加到您的 MCP 设置文件中:
{
"mcpServers": {
"flutter-tools": {
"command": "node",
"args": ["/path/to/flutter-tools/build/index.js"],
"env": {}
}
}
}将/path/to/flutter-tools/build/index.js替换为已编译 JavaScript 文件的实际路径。
用法
确保 Flutter SDK 已安装并在您的 PATH 中可用。
使用配置的命令启动 MCP 服务器。
根据需要使用
get_diagnostics和apply_fixes工具。
例子
node /path/to/flutter-tools/build/index.jsTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Manage files and folders directly from your workspace. Read and write files, list directories, cre…
The official Svelte MCP server providing docs and autofixing tools for Svelte development
Provides tools for searching Google Workspace documentation and much more.
Get up-to-date, version-specific documentation and code examples from official sources directly in…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides advanced Flutter development tools via Model Context Protocol with features including widget analysis, documentation search, performance optimization, and code generation.19-
- AlicenseAqualityCmaintenanceEnables AI assistants to search, analyze, and retrieve detailed information about Dart and Flutter packages from pub.dev. Supports package discovery, version management, dependency analysis, and documentation access.6225MIT
- AlicenseCqualityCmaintenanceEnables comprehensive control of Android devices via ADB for Flutter development, UI testing, and visual QA workflows. Provides 60+ tools for device management, UI inspection, app testing, performance profiling, and debugging through natural language.77MIT
- FlicenseNot gradedqualityDmaintenanceProvides Flutter best practices, code analysis, and state management recommendations for senior developers.-
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dkpoulsen/flutter-tools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server