Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MCP Server Resource Templates #4231

ben-gineer started this conversation in General
Discussion options

Hi,

I'm trying to implement a resource template in my MCP Server. I've looked at the example here:

https://docs.spring.io/spring-ai/reference/1.1-SNAPSHOT/api/mcp/mcp-stdio-sse-server-boot-starter-docs.html#_resources

And here:

https://medium.com/@tanbumails/exposing-resources-in-mcp-server-with-spring-ai-efbdfab1eaeb

But I'm not clear on how Resource Templates would be exposed. I see this blog related to this:

https://dzone.com/articles/logging-mcp-protocol-when-using-stdio-part-ii

And the source: https://github.com/teq-niq/mcp-stdio-logging/blob/main/mymcpserver/src/main/java/com/eg/mcp/providers/others/StoreMcpResourceProvider.java

But this isn't pure Spring AI MCP.

Are there any basic examples that show how I would define a resource template?

Many thanks,

Ben

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /