From 133119bb87196e19d26a0825391cf6498995965e Mon Sep 17 00:00:00 2001 From: Keerti Parthasarathy Date: Tue, 15 Sep 2026 14:14:50 -0700 Subject: [PATCH] Add env variable for plugin names to mcp configuration --- .claude-plugin/plugin.json | 17 ++++++++++++++--- .codex-plugin/plugin.json | 16 +++++++++++++--- .cursor-plugin/plugin.json | 16 +++++++++++++--- .mcp.json | 11 ----------- 4 files changed, 40 insertions(+), 20 deletions(-) delete mode 100644 .mcp.json diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index fd761445..e33e6e15 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "dart-flutter", "displayName": "Dart and Flutter", - "version": "1.0.4", + "version": "1.0.5", "description": "Official Claude plugin for Dart and Flutter that installs Flutter/Dart Skills and Dart MCP server for building natively compiled, visually stunning applications for mobile, web, desktop, and embedded devices from a single codebase", "author": { "name": "Dart and Flutter", @@ -14,5 +14,16 @@ "flutter", "dart", "mobile" - ] -} + ], + "mcpServers": { + "dart-mcp-server": { + "command": "dart", + "args": [ + "mcp-server" + ], + "env": { + "AGENT_PLUGIN": "claude-code" + } + } + } +} \ No newline at end of file diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index a2e0eb8c..bd2d0230 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "dart-flutter", - "version": "1.0.4", + "version": "1.0.5", "description": "Official Codex plugin for Dart and Flutter that installs Flutter/Dart Skills and Dart MCP server for building natively compiled, visually stunning applications for mobile, web, desktop, and embedded devices from a single codebase.", "author": { "name": "Dart and Flutter", @@ -18,7 +18,17 @@ "mcp" ], "skills": "./skills/", - "mcpServers": "./.mcp.json", + "mcpServers": { + "dart-mcp-server": { + "command": "dart", + "args": [ + "mcp-server" + ], + "env": { + "AGENT_PLUGIN": "codex" + } + } + }, "interface": { "displayName": "Dart and Flutter", "shortDescription": "Build and manage Dart and Flutter apps from Codex.", @@ -31,4 +41,4 @@ ], "websiteURL": "https://flutter.dev" } -} +} \ No newline at end of file diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index e5b1fe71..9594a6c9 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "dart-flutter", "displayName": "Dart and Flutter", - "version": "1.0.4", + "version": "1.0.5", "description": "Official Cursor plugin for Dart and Flutter that installs Flutter/Dart Skills and Dart MCP server for building natively compiled, visually stunning applications for mobile, web, desktop, and embedded devices from a single codebase.", "author": { "name": "Dart and Flutter Team", @@ -15,6 +15,16 @@ "dart", "mobile" ], - "mcpServers": "./.mcp.json", + "mcpServers": { + "dart-mcp-server": { + "command": "dart", + "args": [ + "mcp-server" + ], + "env": { + "AGENT_PLUGIN": "cursor" + } + } + }, "skills": "./skills/" -} +} \ No newline at end of file diff --git a/.mcp.json b/.mcp.json deleted file mode 100644 index c6487d71..00000000 --- a/.mcp.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "mcpServers": { - "dart-mcp-server": { - "command": "dart", - "args": [ - "mcp-server" - ], - "env": {} - } - } -}