Commit a899bdd
committed
feat: add SSE mode support for MCP server (#10258)
* feat: add SSE mode support for MCP server
### Description
Adds support for running the MCP server in SSE (HTTP) mode, in addition to the default Stdio transport. This allows clients to connect over network or via tools that support SSE.
### Scenarios Tested
- Started server in SSE mode and verified log output.
* fix: add progressToken to McpContext interface to fix build error
### Description
Fixes a type error where progressToken was not defined on McpContext.
### Scenarios Tested
- Verified build succeeds.
* refactor: address PR comments on SSE support
### Description
Addresses PR comments by:
- Moving inline require calls to top-level imports.
- Replacing any types with specific interfaces or unknown.
### Scenarios Tested
- Verified build succeeds.
* fix: address remaining review comments on SSE support
### Description
- Reverts accidental GA4 tracking change in mcpListResources.
- Replaces console.error with this.logger calls for better logging.
- Changes default server binding from 0.0.0.0 to 127.0.0.1 for security.
### Scenarios Tested
- Verified build succeeds.
* style: lint and format fixes for SSE support
### Description
- Applied auto-formatting fixes from npm run format.
### Scenarios Tested
- Verified build succeeds.
* feat: add infrastructure for MCP Apps (#10259)
* feat: add infrastructure for MCP Apps
### Description
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.
### Scenarios Tested
- Verified build and file changes.
* fix: resolve build errors and address review comments on infra
### Description
- Removes imports and registry entries for UI resources that are not yet available in this branch (login, update_environment, deploy, init).
- Replaces as any in toContent with an intersection type for better type safety.
### Scenarios Tested
- Verified build succeeds.
* chore: avoid any for sessionId in SSE transport
### Description
- Defines a local interface extending SSEServerTransport to avoid using when accessing .
### Scenarios Tested
- Build succeeds.
- Lint passes for modified lines.
* feat: change sse flag to mode flag and fix build errors
### Description
- Replaced boolean flag with string flag (defaults to 'stdio').
- Added validation for to accept only 'stdio' or 'sse'.
- Fixed build errors by adding to interface and removing missing resource.
### Scenarios Tested
- Build succeeds.
- Lint passes with no new errors.
* 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
* added changelog'1 parent 1be7bfe commit a899bdd
14 files changed
Lines changed: 750 additions & 50 deletions
File tree
- src
- bin
- mcp
- apps/update_environment
- resources
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
88 | 97 | | |
89 | 98 | | |
90 | 99 | | |
| |||
103 | 112 | | |
104 | 113 | | |
105 | 114 | | |
106 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
107 | 119 | | |
108 | 120 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| |||
0 commit comments