Skip to content

Conversation

@MatKuhr
Copy link
Member

@MatKuhr MatKuhr commented Jul 24, 2025

Context

SAP/ai-sdk-java-backlog#305

Adds sample code for MCP support. Disabled by default.

Feature scope:

  • File System MCP Server
  • Dedicated Spring profile (since it requires npx to run)
  • Tests

Definition of Done

  • Functionality scope stated & covered
  • Tests cover the scope above
  • Error handling created / updated & covered by the tests above
  • Aligned changes with the JavaScript SDK
  • Documentation updated
  • Release notes updated

Comment on lines +16 to +20
command: npx
args:
- "-y"
- "@modelcontextprotocol/server-filesystem"
- "."
Copy link
Contributor

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?

Copy link
Member Author

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.

@MatKuhr MatKuhr merged commit 5a0fafe into main Aug 4, 2025
7 checks passed
@MatKuhr MatKuhr deleted the poc/mcp branch August 4, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants