-
Notifications
You must be signed in to change notification settings - Fork 795
-
Pre-submission Checklist
- I have checked that this question would not be more appropriate as an issue in a specific repository
- I have searched existing discussions and documentation for answers
Question Category
- Protocol Specification
- SDK Usage
- Server Implementation
- General Implementation
- Documentation
- Other
Your Question
I was looking into the java-sdk server implementations for HTTP but from what I understand there's only mcp-spring implementations available.
Would it be possible to implement a MCP Server in Java running inside Tomcat without Spring, just standard servlets?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 1 reply
-
Yes! This is possible today. See this sample: https://github.com/jamesward/hello-kotlin-mcp-server
It's in Kotlin but could easily be converted to Java.
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you, I will take a look 👍
Beta Was this translation helpful? Give feedback.
All reactions
-
Implemented a simple hello world server in java: https://github.com/i23098/mcp-server-java
Although, not sure if I have a bug or the SDK has (#650)
Beta Was this translation helpful? Give feedback.