Skip to content

Provide high-level interface to Server #27

Open
@mattt

Description

@mattt

The current implementation of Server focuses on a low-level interface. API consumers create a server instance with defined capabilities, call withMethodHandler and pass a closure that's called in response to requests of the specified type. This is in line with the TypeScript SDK's low-level interface.

It'd be nice to provide a simpler, high-level API for use cases that don't require this level of control. Looking again at the TS SDK, we could provide an alternative interface that let API consumers specify the prompts, resources, and/or tools to serve, and let the implementation take care of the rest (including automatically determining capabilities #12).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions