Skip to content

Allow customising server/message context #27

@sd2k

Description

@sd2k

It would be useful to be able to manipulate the context used when handling messages, to e.g. extract config in a transport-specific way and inject it into context so that tools can access it. This can be used to e.g. update settings from environment variables or headers depending on the transport (stdio vs sse).

I have a commit which does something like this and works fine, but I'm unsure on the naming. Happy to create a PR if you'd accept it though.

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