Skip to content

Conversation

@ashishrp-aws
Copy link
Contributor

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.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ashishrp-aws ashishrp-aws requested a review from a team as a code owner November 10, 2025 23:59
@ashishrp-aws ashishrp-aws merged commit c6028b0 into aws:main Nov 11, 2025
4 checks passed
ashishrp-aws pushed a commit that referenced this pull request Nov 11, 2025
🤖 I have created a release *beep* *boop*
---


<details><summary>chat-client-ui-types: 0.1.68</summary>

##
[0.1.68](chat-client-ui-types/v0.1.67...chat-client-ui-types/v0.1.68)
(2025-11-11)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @aws/language-server-runtimes-types bumped from ^0.1.61 to ^0.1.62
</details>

<details><summary>language-server-runtimes: 0.3.6</summary>

##
[0.3.6](language-server-runtimes/v0.3.5...language-server-runtimes/v0.3.6)
(2025-11-11)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @aws/language-server-runtimes-types bumped from ^0.1.61 to ^0.1.62
</details>

<details><summary>language-server-runtimes-types: 0.1.62</summary>

##
[0.1.62](language-server-runtimes-types/v0.1.61...language-server-runtimes-types/v0.1.62)
(2025-11-11)


### Features

* **types:** add isMcpRegistry field to MCP protocol types
([#710](#710))
([c6028b0](c6028b0))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants