Skip to content

How to read file uploaded/attached by MCP client? #283

Answered by Tyler-R-Kendrick
wizd asked this question in Q&A
Discussion options

You must be logged in to vote

This should be a community discussion topic instead of an issue since its just a question. @PederHP, do you agree?

@wizd, this is already handled. When you implement a sampling handler on the client, you can implement whatever custom logic you want for ingested content. Look at Line 363 of ClientIntegrationTests to see how to set that up.

To parse the data, just make sure the Request.Content is of the BlobContent type as parse as needed.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PederHP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #243 on April 11, 2025 16:46.