-
Notifications
You must be signed in to change notification settings - Fork 16
feat: Sample Code for MCP Support #513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
# Conflicts: # pom.xml # sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiOrchestrationService.java
| command: npx | ||
| args: | ||
| - "-y" | ||
| - "@modelcontextprotocol/server-filesystem" | ||
| - "." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Comment)
It feels awkward to assume NodeJS runtime at a Java application container.
There's no real alternative, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just an easy way to get a local MCP server that can be used as an example. Many MCP servers are just small node or python packages.
If we had a stable, external MCP server that does something useful for a small sample, we could also use that, but for now I didn't want to rely on a 3rd party server and rather go for a fully local setup.
Context
SAP/ai-sdk-java-backlog#305
Adds sample code for MCP support. Disabled by default.
Feature scope:
npxto run)Definition of Done
Tests cover the scope aboveRelease notes updated