Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add ability to intercept tool call executions.

Open
#720 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java, spring
Domain
api, backend

Research direction

Start at mcp-spring/mcp-spring-webmvc/src/main/java/io/modelcontextprotocol/server/transport/WebMvcSseServerTransportProvider.java around line 328. Trace how contextExtractor receives the request and how the body stream is consumed, then clarify the expected interceptor timing and body-access behavior with maintainers. Done means tool call executions can be intercepted without losing the required request context.

Written by the indexing model from the issue text.

Description

enhancement feature/repositories P3

https://github.com/modelcontextprotocol/java-sdk/blob/082444e18f1cb9269bcc7a3ecb6ec860e0159d1b/mcp-spring/mcp-spring-webmvc/src/main/java/io/modelcontextprotocol/server/transport/WebMvcSseServerTransportProvider.java#L328
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.

Dominant language
Java
Stars
3.7k
Forks
1.1k
Avg merge
1d 15h
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from modelcontextprotocol/java-sdk

All issues in modelcontextprotocol/java-sdk

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.