Lets agents debug Flutter apps by inspecting the widget tree, navigation and layout via visual and semantic snapshots.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add flutter --env LOG_LEVEL='<LOG_LEVEL>' --env PORT='<PORT>' -- node /path/to/your/cloned/flutter-inspector/mcp_server/build/index.js~/.codex/config.toml
[mcp_servers.flutter]
command = "node"
args = ["/path/to/your/cloned/flutter-inspector/mcp_server/build/index.js"]
env = { LOG_LEVEL = "<LOG_LEVEL>", PORT = "<PORT>" }
# codex mcp add flutter --env LOG_LEVEL='<LOG_LEVEL>' --env PORT='<PORT>' -- node /path/to/your/cloned/flutter-inspector/mcp_server/build/index.js~/.cursor/mcp.json
{
"mcpServers": {
"flutter": {
"command": "node",
"args": [
"/path/to/your/cloned/flutter-inspector/mcp_server/build/index.js"
],
"env": {
"LOG_LEVEL": "<LOG_LEVEL>",
"PORT": "<PORT>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"flutter": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/your/cloned/flutter-inspector/mcp_server/build/index.js"
],
"env": {
"LOG_LEVEL": "<LOG_LEVEL>",
"PORT": "<PORT>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"flutter": {
"command": "node",
"args": [
"/path/to/your/cloned/flutter-inspector/mcp_server/build/index.js"
],
"env": {
"LOG_LEVEL": "<LOG_LEVEL>",
"PORT": "<PORT>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"flutter": {
"command": "node",
"args": [
"/path/to/your/cloned/flutter-inspector/mcp_server/build/index.js"
],
"env": {
"LOG_LEVEL": "<LOG_LEVEL>",
"PORT": "<PORT>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"flutter": {
"command": "node",
"args": [
"/path/to/your/cloned/flutter-inspector/mcp_server/build/index.js"
],
"env": {
"LOG_LEVEL": "<LOG_LEVEL>",
"PORT": "<PORT>"
}
}
}
}需要的环境变量
LOG_LEVELPORT
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。