Skip to content

support session termination via DELETE #25

Description

@mikaelkaron

When LiteLLM’s MCP Gateway uses the Streamable HTTP transport, the client (LiteLLM) will send an HTTP DELETE to the MCP endpoint with the Mcp-Session-Id header to explicitly close the session once it’s done. That behavior comes straight from the MCP transport spec (“clients … SHOULD send an HTTP DELETE … to explicitly terminate the session”). Servers are allowed to reply 405 Method Not Allowed if they don’t support client-initiated termination.
Model Context Protocol
GitHub

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions