Skip to content

Commit 1999159

Browse files
authored
feat: add Update Environment MCP App (#10260)
* feat: add mcpapps experiment flag and helper ### Description - Adds mcpapps experiment flag to src/experiments.ts. - Adds applyAppMeta helper function to src/mcp/util.ts to conditionally add UI metadata. - Adds unit tests for applyAppMeta in src/mcp/util.spec.ts. ### Scenarios Tested - Unit tests passed. - Build succeeds. * chore: address PR comments on experiments and util ### Description - Fixes applyAppMeta to preserve existing metadata. - Moves mcpapps flag to be grouped with other MCP experiments. - Removes as any in util.spec.ts by importing CallToolResult. ### Scenarios Tested - Build succeeds. - Lint passes for modified files (ignoring pre-existing warnings). - Unit tests for applyAppMeta pass. * feat: add infrastructure for MCP Apps Adds support for returning structured content from tools, which is used by MCP Apps to pass complex data to the host. Also updates the resource index. - Verified build and file changes. * feat: add Update Environment MCP App ### Description Adds the Update Environment MCP App, allowing users to switch projects and directories from the UI. ### Scenarios Tested - Verified build and file changes. * fix: resolve compilation errors in mcp-update-env-app * fix: resolve remaining lint errors in mcp-update-env-app * refactor: extract app MIME type shared constant
1 parent 68600f6 commit 1999159

9 files changed

Lines changed: 658 additions & 45 deletions

File tree

npm-shrinkwrap.json

Lines changed: 100 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@
185185
"@angular-devkit/architect": "^0.1402.2",
186186
"@angular-devkit/core": "^14.2.2",
187187
"@google/events": "^5.1.1",
188+
"@modelcontextprotocol/ext-apps": "^1.3.2",
188189
"@types/archiver": "^6.0.0",
189190
"@types/async-lock": "^1.4.2",
190191
"@types/body-parser": "^1.17.0",

src/experiments.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,11 @@ export const ALL_EXPERIMENTS = experiments({
184184
default: false,
185185
public: true,
186186
},
187+
mcpapps: {
188+
shortDescription: "Enables MCP Apps features",
189+
fullDescription: "Enables MCP Apps features, including returning UI resource URIs.",
190+
public: true,
191+
},
187192
fdcift: {
188193
shortDescription: "Enable instrumentless trial for SQL Connect",
189194
default: true,

0 commit comments

Comments
 (0)