Skip to content

feat: add mcpapps experiment flag and helper#10265

Open
joehan wants to merge 2 commits intomcp-sse-supportfrom
mcp-experiment-flag
Open

feat: add mcpapps experiment flag and helper#10265
joehan wants to merge 2 commits intomcp-sse-supportfrom
mcp-experiment-flag

Conversation

@joehan
Copy link
Copy Markdown
Member

@joehan joehan commented Apr 3, 2026

Adds mcpapps experiment flag and applyAppMeta helper function, which will be used later to omit the _meta.ui.reourceUri field when the experiment is disabled.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the applyAppMeta utility function to conditionally add MCP App metadata to CallToolResult objects, controlled by a new mcpapps experiment flag. The review feedback highlights a potential bug where existing metadata could be overwritten, suggests grouping the new experiment with related features for better maintainability, and identifies violations of the repository's style guide regarding the use of as any in unit tests.

@joehan joehan marked this pull request as ready for review April 3, 2026 23:56
@joehan joehan force-pushed the mcp-experiment-flag branch from 70135dd to c2a9818 Compare April 3, 2026 23:58
joehan added 2 commits April 3, 2026 17:09
### 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.
### 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.
@joehan joehan force-pushed the mcp-experiment-flag branch from c2a9818 to 6c30145 Compare April 4, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants