Skip to content

Add sample for using Client Roots #5

Closed as not planned
Closed as not planned

Description

@e5l

Activity

  1. SeanChinJunKai commented on Mar 28, 2025

    @SeanChinJunKai
    Contributor

    @e5l I would like to work on this issue however im unable to access the link

  2. e5l commented on Mar 28, 2025

    @e5l
    ContributorAuthor

    Hey, thank you! It would be great 👍

    It looks like the link has changed, I also don't have access. 🙂
    Here is the updated link: https://modelcontextprotocol.io/docs/concepts/roots

  3. SeanChinJunKai commented on Mar 28, 2025

    @SeanChinJunKai
    Contributor

    Thank you @e5l. Ill read up on this first

  4. SeanChinJunKai commented on Mar 29, 2025

    @SeanChinJunKai
    Contributor

    @e5l Can I clarify that for this task i should be adding on to the kotlin-mcp-client in the samples folder?

  5. e5l commented on Mar 29, 2025

    @e5l
    ContributorAuthor

    Yep!

  6. SeanChinJunKai commented on Mar 29, 2025

    @SeanChinJunKai
    Contributor

    @e5l Thank you for the clarification. Ill take some time to digest the code and try setting up and then make the change.

  7. SeanChinJunKai commented on Mar 29, 2025

    @SeanChinJunKai
    Contributor

    @e5l I think this are the changes required please correct me if I am wrong:

    1. Create a data class called Root and include validation for uri
      @serializable
      data class Root(
      val name: String,
      val uri: String
      )

    2. Modify Roots to include an array/list of Root

    3. Modify the kotlin-mcp-client sample to declare some sample roots

  8. e5l commented on Mar 31, 2025

    @e5l
    ContributorAuthor

    it also would be nice to show how to consume exposed roots

  9. devcrocod commented on Apr 1, 2025

    @devcrocod
    Contributor

    Hi @SeanChinJunKai

    Modify the kotlin-mcp-client sample to declare some sample roots

    Please note that this sample is used in the quickstart-client. So if you make any changes, make sure the code in the documentation remains up to date

  10. SeanChinJunKai commented on Apr 1, 2025

    @SeanChinJunKai
    Contributor

    Thank you @devcrocod for the heads up

  11. SeanChinJunKai commented on Apr 9, 2025

    @SeanChinJunKai
    Contributor

    I am still trying to learn about how server can consume roots

  12. added theissue type on Jun 23, 2025
  13. aircode610 commented on Sep 21, 2025

    @aircode610

    @e5l @devcrocod Hello wanted to see if the issue is resolved or can I work on it?

  14. e5l commented on Sep 22, 2025

    @e5l
    ContributorAuthor

    It looks like it is still open :)

  15. added
    documentationImprovements or additions to documentation
    samplesSample projects and examples
    P3Nice to haves, rare edge cases
    and removed
    enhancementNew feature or request
    on Apr 8, 2026
  16. MichielDean commented on May 12, 2026

    @MichielDean

    I've opened #763 with a sample implementation for this.

  17. devcrocod commented on Jun 17, 2026

    @devcrocod
    Contributor

    Roots being deprecated in the new spec: #816

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Nice to haves, rare edge casesdocumentationImprovements or additions to documentationgood first issueGood for newcomerssamplesSample projects and examples

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions