Skip to content

How to add an interceptor for mcp tool? #720

@24kpure

Description

@24kpure

final McpTransportContext transportContext = this.contextExtractor.extract(request);

I want to add interceptors for MCP tool, but I don't know how to add them.If I want to get something from request'body, I can't get them through this contextExtractor for the body stream can only be read once.

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