{{ message }}
Using MCP server with existing Tomcat hosted Java application #490
Answered
by
skanikdale
skanikdale
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
skanikdale
Aug 28, 2025
Replies: 2 comments 1 reply
-
|
I'm also interested in understanding the decision to make that class private and non-extensible. I forked the project and changed the access modifiers to make the classes public and extensible. You could also replicate the transport class and implement it yourself. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

You can implement a servlet that extends HTTPServlet and then in your class's service method delegate service call to one of the transport types available from MCP SDK.
Pseudocode -
class myServlet extends HTTPServlet {
private transient HttpServletStreamableServerTransportProvider transport;
}
}