Skip to content

update server examples to cover external authentication servers #658

Open

Description

@ochafik

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

Describe the solution you'd like
Add a new example forked from src/examples/server/simpleStreamableHttp.ts to support an external authentication server (AS).

May want to cater to JWT cases and/or absence of the (optional) introspection_endpoint & revocation_endpoint.

Describe alternatives you've considered
Modifying simpleStreamableHttp to optionally support an external AS would probably trigger a rename to complexStreamableHttp 🙈

Additional context
Beyond external AS, a new example could be used as a testing ground for OICD support (see modelcontextprotocol/modelcontextprotocol#677)

Activity

  1. added
    enhancementRequest for a new feature that's not currently supported
    on Jun 18, 2025
  2. added
    good first issueGood for newcomers - can be tackled without deep knowledge of the codebase
    P3Nice to haves, rare edge cases
    authIssues and PRs related to Authentication / OAuth
    on Dec 16, 2025
  3. travisbreaks commented on Mar 17, 2026

    @travisbreaks

    I'll put together an example for this. Will base it on the existing simpleStreamableHttp example with RFC 8707 external auth server support.

  4. ghost added
    documentationImprovements or additions to documentation
    on Apr 17, 2026
  5. added 4 commits that reference this issue on Apr 28, 2026
    0df3379
    b1cdd1f
    351189f
    5d6bcaa
  6. adarsh6980 commented on Oct 20, 2026

    @adarsh6980

    Hi! I'd like to work on this. The earlier volunteer's plan from March never landed as a PR, so I'll pick it up: add a new example forked from src/examples/server/simpleStreamableHttp.ts that shows token validation against an external authorization server (RFC 8707 resource indicators), covering the JWT case and the case where the AS has no introspection or revocation endpoint. I'll keep the existing example untouched and follow the current auth middleware structure on main.

  7. adarsh6980 commented on Oct 20, 2026

    @adarsh6980

    Correction: I missed the linked PRs when checking this issue. #1693 was already submitted and closed, and #1967 is open with an external-AS example. I'll hold off on opening a duplicate. Sorry for the noise.

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

    P3Nice to haves, rare edge casesauthIssues and PRs related to Authentication / OAuthdocumentationImprovements or additions to documentationenhancementRequest for a new feature that's not currently supportedgood first issueGood for newcomers - can be tackled without deep knowledge of the codebase

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions