Skip to content

Discussion: Moving the type definitions into its own crate #449

@AhegaoBurger

Description

@AhegaoBurger

Is your feature request related to a problem? Please describe.
So I am working on a PR for Zed to integrate the rmcp sdk in order to replace their existing custom MCP implementation and one of the engineers from Zed asks if they could just use the types instead of pulling the entire dependancy tree, which sounds reasonable to me so I decided to see if I could make it happen

Describe the solution you'd like
I created a separate rmcp-types crate with minimal dependencies so that if someone wants to just use the upstream type definitions they can do that just that (apparently that's how the Zed team works with DAP and LSP protocols)

Describe alternatives you've considered
I didn't really consider alternatives besides moving the types into its own separate crate, I'm not an expert in Rust so there very well could be a better way of doing this than my implementation, would love to discuss alternatives and options

Additional context
This idea of moving types into their separate crate with minimal dependencies seems sound, especially if that's how DAP and LSP are implemented and are being used by organisations building clients that integrate them so I would imagine it be sensible for MCP implementation in Rust to also follow a similar pattern

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions