Skip to content

Request: new release (3.4.0) — middleware and Context features unreleased for 6 months #78

@branzoni

Description

@branzoni

Summary

There are 11 commits on main since the last release (3.3.0, Jul 12 2025) including two significant features that have been unreleased for ~6 months:

  1. feat: pass ServerRequestInterface as CallContext to Tool calls (Jul 16) — renamed to Context, extended to prompts and resources
  2. feat: add middleware support to HttpServerTransport and StreamableHttpServerTransport (Aug 9)

Why this matters

We're building an OAuth-protected MCP server (RFC 9728) and need to:

  • Serve /.well-known/oauth-protected-resource metadata endpoint
  • Validate Bearer tokens before MCP processing

The middleware feature on main is exactly what we need. Without a release, the only options are:

  • Depend on dev-main (risky for production)
  • Copy the entire 600+ line StreamableHttpServerTransport class to add pre-request logic

Commits since 3.3.0

Commit Description
feat Pass ServerRequestInterface as Context to tool/prompt/resource calls
feat Add middleware support to HTTP transports
fix Handle parameter-level schema definition override
tests Context, middleware, parameter schema tests
chore Changelog, gitignore, naming cleanup

Request

Could you tag a new release (3.4.0 or 4.0.0 if there are breaking changes from Context introduction)?

Thank you for the library — it's the most mature PHP MCP server SDK available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions