Commit c6028b0
authored
feat(types): add isMcpRegistry field to MCP protocol types (#710)
## Problem
MCP registry UI handling was using hacky type casts like `(params as
any).isRegistryActive` to determine if a server is from the registry.
This approach is not type-safe and makes the code harder to maintain and
understand.
## Solution
Add `isMcpRegistry` optional boolean field to MCP protocol types:
- `ListMcpServersParams`
- `ListMcpServersResult`
- `McpServerClickParams`
- `McpServerClickResult` (inherited from `McpServerClickParams`)
This allows proper type-safe tracking of MCP registry state throughout
the protocol communication between server and client.
<!---
REMINDER:
- Read CONTRIBUTING.md first.
- Add test coverage for your changes.
- Link to related issues/commits.
- Testing: how did you test your changes?
- Screenshots if applicable
-->
## License
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.1 parent 97f90cb commit c6028b0
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| 579 | + | |
579 | 580 | | |
580 | 581 | | |
581 | 582 | | |
| |||
660 | 661 | | |
661 | 662 | | |
662 | 663 | | |
| 664 | + | |
663 | 665 | | |
664 | 666 | | |
665 | 667 | | |
| |||
677 | 679 | | |
678 | 680 | | |
679 | 681 | | |
| 682 | + | |
680 | 683 | | |
681 | 684 | | |
682 | 685 | | |
| |||
0 commit comments