Skip to content

Reusable server "specs" - don't re-create the server from scratch for each transport #296

@rnett

Description

@rnett

Is your feature request related to a problem? Please describe.

With how each MCP server instance is limited to a single transport, you need to re-create the server instance (and any components, i.e. tools) for each different transport (and maybe session?). This can get decently expensive, especially if you're creating a bunch of JSON schemas.

Describe the solution you'd like

It would be great to be able to create a "spec" like object, quite like what Server is today, and then create an "instance" for each transport. That way you don't need to re-create all the tools and everything else.

Describe alternatives you've considered

Re-creating the server and any tools for each transport is currently the only alternative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions