Skip to content

Need Way To Trigger 401 Response From Tools, Middleware, or Wrapper? #1527

@Norcim133

Description

@Norcim133

Enhancement

For situations where the Server needs to try and access protected resources with access tokens passed by client, we need a way to propagate the 401s from API calls from inside tools.

I tried to do it in my context wrapper and in a middleware but I think the respones are happening in a different layer.

Might exist already but I could find this in the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    authRelated to authentication (Bearer, JWT, OAuth, WorkOS) for client or server.enhancementImprovement to existing functionality. For issues and smaller PR improvements.serverRelated to FastMCP server implementation or server-side functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions